:root {
  --ink: #050b45;
  --muted: #5d657c;
  --line: #e5ddcf;
  --paper: #fff8ec;
  --surface: #ffffff;
  --navy: #050b45;
  --navy-2: #101a66;
  --gold: #ffd51f;
  --orange: #f6a400;
  --coral: #df2529;
  --cream: #fff0b8;
  --family-default: #f6a400;
  --family-tortillers: #e91e86;
  --family-marisco: #8d62d9;
  --family-neptuniano: #45aee9;
  --family-agronauta: #43a856;
  --family-galegoide: #7d1230;
  --teal: var(--navy);
  --teal-dark: #020735;
  --mint: var(--cream);
  --shadow: 0 20px 50px rgba(5, 11, 69, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(229, 221, 207, 0.95);
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy);
  box-shadow:
    0 0 0 2px rgba(255, 213, 31, 0.42),
    0 10px 24px rgba(5, 11, 69, 0.14);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.04;
}

.brand small {
  max-width: 42vw;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.service-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(246, 164, 0, 0.36);
  border-radius: 999px;
  background: #fff2a8;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
}

.service-pill.closed {
  border-color: rgba(240, 100, 73, 0.22);
  background: #ffe7df;
  color: #a63f2d;
}

.shop-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(18px, 3vw, 32px);
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 34px);
}

.menu-pane {
  min-width: 0;
}

.hero {
  position: relative;
  min-height: clamp(290px, 40vw, 460px);
  overflow: hidden;
  border-radius: 8px;
  background: #dce8e5;
  box-shadow: var(--shadow);
}

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

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 11, 69, 0.74), rgba(5, 11, 69, 0.34) 48%, rgba(5, 11, 69, 0.06)),
    linear-gradient(0deg, rgba(5, 11, 69, 0.2), transparent 42%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  max-width: 760px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: clamp(22px, 5vw, 52px);
  color: white;
}

.hero-brand-lockup {
  display: grid;
  grid-template-columns: clamp(46px, 6vw, 64px) minmax(0, 1fr);
  align-items: center;
  width: min(100%, 520px);
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(5, 11, 69, 0.32);
  backdrop-filter: blur(10px);
}

.hero-brand-lockup img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.hero-brand-lockup span,
.hero-brand-lockup strong,
.hero-brand-lockup small {
  display: block;
  min-width: 0;
}

.hero-brand-lockup strong {
  font-size: clamp(0.98rem, 1.7vw, 1.2rem);
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero-brand-lockup small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-overlay p,
.hero-overlay h1 {
  margin: 0;
}

.hero-overlay p {
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.hero-overlay h1 {
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  line-height: 0.97;
  max-width: 720px;
}

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

.hero-meta span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.88rem;
}

.notice {
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid #f5cdb2;
  border-radius: 8px;
  background: #fff3e8;
  color: #794217;
  font-weight: 650;
}

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

.category-tabs button {
  --family: var(--family-default);
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--family) 38%, var(--line));
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
}

.category-tabs button.active {
  border-color: var(--family);
  background: color-mix(in srgb, var(--family) 14%, white);
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--family);
}

.category-tabs .category-tab--tortillers {
  --family: var(--family-tortillers);
}

.category-tabs .category-tab--marisco {
  --family: var(--family-marisco);
}

.category-tabs .category-tab--neptuniano {
  --family: var(--family-neptuniano);
}

.category-tabs .category-tab--agronauta {
  --family: var(--family-agronauta);
}

.category-tabs .category-tab--galegoide {
  --family: var(--family-galegoide);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding-bottom: 48px;
}

.item-card {
  --family: var(--family-default);
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-height: 238px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--family) 18%, var(--line));
  border-left: 5px solid var(--family);
  border-radius: 8px;
  background: var(--surface);
}

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

.item-visual-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.info-button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(5, 11, 69, 0.1);
  border-radius: 50%;
  background: rgba(5, 11, 69, 0.04);
  color: rgba(5, 11, 69, 0.62);
  font-size: 0.78rem;
  font-weight: 850;
}

.info-button:hover {
  border-color: color-mix(in srgb, var(--family) 52%, var(--line));
  background: color-mix(in srgb, var(--family) 10%, white);
  color: var(--navy);
}

.item-card--tortillers,
.recommendations-grid .recommendation-card--tortillers {
  --family: var(--family-tortillers);
}

.item-card--marisco,
.recommendations-grid .recommendation-card--marisco {
  --family: var(--family-marisco);
}

.item-card--neptuniano,
.recommendations-grid .recommendation-card--neptuniano {
  --family: var(--family-neptuniano);
}

.item-card--agronauta,
.recommendations-grid .recommendation-card--agronauta {
  --family: var(--family-agronauta);
}

.item-card--galegoide,
.recommendations-grid .recommendation-card--galegoide {
  --family: var(--family-galegoide);
}

.item-category {
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--family) 12%, white);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.74rem;
}

.item-price {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 850;
  font-size: 0.9rem;
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
}

.item-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-row span {
  padding: 5px 7px;
  border-radius: 999px;
  background: #eef3f4;
  color: #425562;
  font-size: 0.76rem;
  font-weight: 700;
}

.recommendation-pill {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 950;
}

.recommendations-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(246, 164, 0, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 213, 31, 0.18), rgba(255, 255, 255, 0.78));
}

.recommendations-section[hidden] {
  display: none;
}

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

.section-kicker span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-kicker strong {
  color: var(--navy);
  font-size: 1.12rem;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.recommendation-card {
  --family: var(--family-default);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--family) 22%, var(--line));
  border-left: 5px solid var(--family);
  border-radius: 8px;
  background: white;
}

.recommendation-card h3,
.recommendation-card p {
  margin: 7px 0 0;
}

.recommendation-card h3 {
  font-size: 1rem;
  line-height: 1.18;
}

.recommendation-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.recommendation-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.recommendation-actions strong {
  color: var(--navy);
}

.mini-add-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 950;
}

.allergen-panel {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #f0d8a8;
  border-radius: 8px;
  background: #fff8e6;
  color: #5d4614;
}

.allergen-panel[hidden] {
  display: none;
}

.allergen-panel strong,
.allergen-panel p {
  margin: 0;
}

.allergen-warning {
  font-size: 0.86rem;
  line-height: 1.35;
}

.modifier-field {
  margin: 0 15px 12px;
}

.modifier-field select {
  min-height: 42px;
}

.input-error {
  border-color: var(--coral) !important;
  outline: 3px solid rgba(240, 100, 73, 0.2) !important;
}

.item-actions {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  padding: 0 15px 15px;
}

.qty-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.qty-button:hover {
  border-color: var(--orange);
}

.qty-readout {
  display: grid;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8f5;
  font-weight: 850;
}

.cart-pane {
  position: sticky;
  top: 82px;
  display: flex;
  max-height: calc(100vh - 108px);
  flex-direction: column;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(23, 33, 43, 0.1);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2,
.cart-header p {
  margin: 0;
}

.cart-header h2 {
  font-size: 1.2rem;
}

.cart-header p,
.cart-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-compact-summary {
  display: none;
  min-width: 0;
  margin-left: auto;
  text-align: right;
}

.cart-compact-summary span,
.cart-compact-summary strong {
  display: block;
  white-space: nowrap;
}

.cart-compact-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.cart-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 950;
  font-size: 1.2rem;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.cart-lines {
  min-height: 150px;
  overflow: auto;
  padding: 6px 18px;
}

.empty-copy {
  margin: 26px 0;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #eef1ef;
}

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

.cart-line span {
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mini-button {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f9faf7;
  color: var(--ink);
  font-weight: 900;
}

.cart-summary {
  display: grid;
  gap: 9px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.cart-summary div,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary span,
.checkout-total span {
  color: var(--muted);
}

.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 18px 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 850;
}

.primary-button:hover:not(:disabled) {
  background: var(--orange);
}

.primary-button:disabled {
  background: #d9cda9;
  color: #6c644e;
}

.primary-button.as-link {
  margin: 0;
}

.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.secondary-button.as-link {
  margin: 0;
}

.cart-hint {
  min-height: 20px;
  margin: -8px 18px 18px;
}

.checkout-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.checkout-dialog::backdrop {
  background: rgba(23, 33, 43, 0.55);
}

.checkout-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

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

.dialog-title h2,
.dialog-title p {
  margin: 0;
}

.dialog-title p {
  margin-top: 4px;
  color: var(--muted);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  outline: 3px solid rgba(246, 164, 0, 0.2);
}

.checkout-total {
  padding: 13px;
  border-radius: 8px;
  background: #fff3bd;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #a63f2d;
  font-weight: 700;
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(720px, calc(100vw - 36px));
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner strong,
.consent-banner p {
  margin: 0;
}

.consent-banner p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

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

.consent-actions .primary-button {
  min-height: 44px;
  margin: 0;
}

.utility-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 213, 31, 0.22), transparent 42%),
    var(--paper);
}

.payment-card {
  display: grid;
  width: min(560px, 100%);
  gap: 22px;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.payment-card h1,
.payment-card p {
  margin: 0;
}

.payment-card h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.05;
}

.payment-card p {
  color: var(--muted);
  line-height: 1.5;
}

.payment-card .primary-button {
  margin: 0;
}

.tracker-card {
  width: min(680px, 100%);
}

.tracker-hero {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.tracker-hero span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tracker-hero h1,
.tracker-hero p {
  margin: 0;
  color: inherit;
}

.tracker-hero--ready {
  background: #075f60;
}

.tracker-hero--cancelled {
  background: #8a2118;
}

.tracker-order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.tracker-order-meta div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.tracker-order-meta span,
.tracker-progress,
.tracker-note {
  color: var(--muted);
  font-weight: 750;
}

.tracker-eta {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.tracker-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.tracker-step {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.tracker-step i {
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: white;
}

.tracker-step.active {
  border-color: rgba(246, 164, 0, 0.35);
  background: #fff6d4;
  color: var(--navy);
}

.tracker-step.active i {
  border-color: var(--navy);
  background: var(--gold);
}

.tracker-progress,
.tracker-note {
  margin-top: 14px;
}

.sumup-widget {
  display: grid;
  gap: 10px;
}

.sumup-widget[hidden] {
  display: none;
}

.sumup-submit-button {
  width: 100%;
  min-height: 52px;
  margin: 0;
}

.payment-alert {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 2px solid #d12f23;
  border-radius: 8px;
  background: #fff0eb;
  color: #5c120c;
  box-shadow: 0 14px 34px rgba(209, 47, 35, 0.14);
}

.payment-alert[hidden] {
  display: none;
}

.payment-alert strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.05;
}

.payment-alert p {
  margin-top: 7px;
  color: #741a12;
  font-weight: 750;
}

.payment-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-alert-actions .primary-button,
.payment-alert-actions .secondary-button {
  min-height: 46px;
  margin: 0;
}

.secondary-link {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.admin-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fff8ec;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: var(--ink);
  font-weight: 800;
}

.admin-nav button.active {
  border-color: rgba(246, 164, 0, 0.28);
  background: #fff2a8;
}

.admin-main {
  min-width: 0;
  padding: clamp(18px, 4vw, 36px);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: grid;
  gap: 16px;
}

.section-title h1,
.section-title p {
  margin: 0;
}

.section-title h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-title p {
  margin-top: 5px;
  color: var(--muted);
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

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

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

.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.toggle-line input {
  width: 22px;
  height: 22px;
}

.ordering-toggle strong,
.ordering-toggle small {
  display: block;
}

.ordering-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.schedule-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

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

.schedule-title h2,
.schedule-title p {
  margin: 0;
}

.schedule-title h2 {
  font-size: 1.1rem;
}

.schedule-title p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.schedule-title .secondary-button {
  min-height: 40px;
  margin: 0;
}

.schedule-grid {
  display: grid;
  gap: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 0.55fr) minmax(120px, 0.55fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #eef1ef;
  border-radius: 8px;
  background: white;
}

.compact-toggle {
  min-height: 48px;
  padding: 8px 10px;
}

.menu-admin-row {
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
}

.menu-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.star-toggle {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
}

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

.star-toggle span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: #b8b4aa;
  font-size: 1.35rem;
  line-height: 1;
}

.star-toggle input:checked + span {
  border-color: rgba(246, 164, 0, 0.44);
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(246, 164, 0, 0.2);
}

.star-toggle input:focus-visible + span {
  outline: 3px solid rgba(246, 164, 0, 0.26);
  outline-offset: 2px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  justify-content: space-between;
}

.admin-search {
  display: flex;
  width: min(560px, 100%);
  gap: 8px;
}

.admin-search input {
  min-width: 0;
}

.admin-search .primary-button {
  min-height: 44px;
  margin: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
}

.metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.analytics-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 14px;
}

.analytics-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.insight-panel h2,
.analytics-columns h2,
.analytics-showcase h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.insight {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  background: #f8faf9;
}

.insight + .insight {
  margin-top: 8px;
}

.insight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.insight--good {
  border-left-color: #43a856;
  background: #effaf0;
}

.insight--warning {
  border-left-color: var(--orange);
  background: #fff6d4;
}

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

.bar-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(18px, 1fr));
  min-height: 210px;
  gap: 8px;
  align-items: end;
}

.bar-column {
  display: grid;
  min-width: 0;
  height: 190px;
  grid-template-rows: 1fr auto;
  gap: 7px;
  align-items: end;
}

.bar-column span {
  display: block;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
}

.bar-column small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.hour-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.hour-cell {
  display: grid;
  min-height: 50px;
  place-items: center;
  border: 1px solid rgba(5, 11, 69, 0.08);
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) calc(var(--heat) * 82%), white);
}

.hour-cell span {
  color: rgba(5, 11, 69, 0.7);
  font-size: 0.68rem;
  font-weight: 850;
}

.hour-cell strong {
  font-size: 1rem;
}

.compact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #eef1ef;
}

.compact-list small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.funnel-row span {
  display: grid;
  flex: 1;
  gap: 5px;
}

.funnel-row i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--orange));
}

.event-row {
  font-size: 0.86rem;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-row h3,
.admin-row p {
  margin: 0;
}

.admin-row p {
  margin-top: 4px;
  color: var(--muted);
}

.order-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr) minmax(180px, auto);
}

.order-row--pending {
  border-color: #f5c25f;
  background: #fffaf0;
}

.order-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
}

.order-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 2px solid rgba(5, 11, 69, 0.12);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(5, 11, 69, 0.08);
}

.order-card--fresh {
  animation: adminFreshOrder 1100ms ease-in-out 6;
}

.order-card.is-warning {
  border-color: var(--orange);
}

.order-card.is-late {
  border-color: #d12f23;
  animation: latePulse 900ms ease-in-out infinite alternate;
}

.order-card--unpaid {
  border-color: #f5c25f;
  background: #fffaf0;
}

.order-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.order-card-header h3,
.order-card-header p,
.order-card-total strong,
.order-card-total small {
  margin: 0;
}

.order-card-header h3 {
  margin-top: 7px;
  font-size: 1.2rem;
}

.order-card-header p {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.order-card-total {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.order-card-total strong {
  font-size: 1.2rem;
}

.order-card-total small {
  color: var(--muted);
  font-weight: 800;
}

.eta-block {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 8px;
  background: #f8faf9;
}

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

.eta-row span {
  color: var(--muted);
  font-weight: 800;
}

.eta-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.eta-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eced;
}

.eta-bar span {
  display: block;
  width: var(--eta);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--navy));
}

.is-late .eta-bar span {
  width: 100%;
  background: #d12f23;
}

.prep-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(246, 164, 0, 0.28);
  border-radius: 8px;
  background: #fff6d4;
}

.prep-summary strong {
  font-size: 1.4rem;
}

.prep-summary span {
  color: var(--muted);
  font-weight: 800;
}

.order-item-checklist {
  display: grid;
  gap: 8px;
}

.prep-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.prep-line.is-complete {
  border-color: rgba(67, 168, 86, 0.45);
  background: #effaf0;
}

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

.prep-line input {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

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

.prep-line small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

.prep-counter {
  display: grid;
  grid-template-columns: 34px 46px 34px;
  gap: 6px;
  align-items: center;
}

.prep-counter button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff8ec;
  color: var(--navy);
  font-weight: 900;
}

.prep-counter strong {
  text-align: center;
}

.status-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-step {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.timeline-step.active {
  border-color: rgba(5, 11, 69, 0.28);
  background: var(--navy);
  color: white;
}

.order-lock {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff0c9;
  color: #75531b;
  font-weight: 850;
}

.order-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.order-actions .secondary-button,
.order-actions .danger-button {
  min-height: 42px;
  margin: 0;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef3f4;
  color: #425562;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-badge.confirmed,
.status-badge.preparing,
.status-badge.ready {
  background: var(--mint);
  color: var(--teal-dark);
}

.status-badge.preparing {
  background: #dff1ff;
  color: #124b75;
}

.status-badge.completed {
  background: #eef3f4;
  color: #425562;
}

.status-badge.pending_payment {
  background: #fff0c9;
  color: #75531b;
}

.status-badge.cancelled {
  background: #ffe7df;
  color: #a63f2d;
}

@keyframes latePulse {
  from {
    box-shadow: 0 0 0 rgba(209, 47, 35, 0);
  }
  to {
    box-shadow: 0 0 0 5px rgba(209, 47, 35, 0.14);
  }
}

@keyframes adminFreshOrder {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(246, 164, 0, 0.25);
  }
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d12f23;
  border-radius: 8px;
  background: #fff0eb;
  color: #8a2118;
  font-weight: 850;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background: var(--paper);
}

.login-card {
  display: grid;
  width: min(430px, 100%);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-card p {
  color: var(--muted);
}

.admin-message {
  min-height: 20px;
  margin: 0;
  color: #a63f2d;
  font-weight: 750;
}

@keyframes cartPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 32px rgba(5, 11, 69, 0.1);
  }
  35% {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 42px rgba(246, 164, 0, 0.35);
  }
  62% {
    transform: translateY(1px) scale(0.995);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes cartButtonPulse {
  0% {
    transform: scale(1);
  }
  34% {
    transform: scale(1.18) rotate(-4deg);
  }
  58% {
    transform: scale(0.96) rotate(3deg);
  }
  100% {
    transform: scale(1);
  }
}

.cart-pane.cart-pulse {
  animation: cartPulse 620ms ease;
}

.cart-pane.cart-pulse .cart-toggle {
  animation: cartButtonPulse 620ms ease;
}

@media (max-width: 980px) {
  .shop-shell {
    grid-template-columns: 1fr;
    padding-bottom: 112px;
  }

  .cart-pane {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    top: auto;
    z-index: 30;
    max-height: 74vh;
    overflow: hidden;
    transition:
      max-height 180ms ease,
      border-radius 180ms ease,
      transform 180ms ease;
  }

  .cart-pane.is-collapsed {
    max-height: 84px;
    border-radius: 999px;
  }

  .cart-pane.is-collapsed .cart-lines,
  .cart-pane.is-collapsed .cart-summary,
  .cart-pane.is-collapsed .primary-button,
  .cart-pane.is-collapsed .cart-hint {
    display: none;
  }

  .cart-pane.is-collapsed .cart-header {
    border-bottom: 0;
  }

  .cart-pane.is-collapsed .icon-button {
    display: none;
  }

  .cart-lines {
    max-height: 260px;
  }

  .cart-compact-summary,
  .cart-toggle {
    display: grid;
  }

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

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .analytics-showcase {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-row .compact-toggle {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    gap: 10px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
  }

  .brand strong {
    font-size: 1.08rem;
    white-space: normal;
  }

  .brand small {
    max-width: 58vw;
    font-size: 0.82rem;
  }

  .shop-shell {
    padding: 12px;
  }

  .hero {
    min-height: 390px;
  }

  .hero-overlay h1 {
    font-size: 2.45rem;
    line-height: 1.02;
  }

  .hero-brand-lockup {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 11px 9px 9px;
  }

  .hero-brand-lockup small {
    font-size: 0.78rem;
  }

  .section-kicker {
    display: grid;
    gap: 3px;
  }

  .recommendation-card {
    grid-template-columns: 1fr;
  }

  .recommendation-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

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

  .settings-grid,
  .admin-row,
  .order-row {
    grid-template-columns: 1fr;
  }

  .order-board,
  .order-card-header,
  .prep-line,
  .tracker-order-meta,
  .tracker-steps {
    grid-template-columns: 1fr;
  }

  .order-card-total {
    justify-items: start;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .hour-chart {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bar-chart {
    gap: 5px;
  }

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

  .consent-banner {
    grid-template-columns: 1fr;
  }

  .consent-actions {
    justify-content: stretch;
  }

  .consent-actions button {
    flex: 1;
  }
}
