:root {
  --yellow: #ffd43b;
  --yellow-soft: #fff4b8;
  --yellow-pale: #fff9dc;
  --ink: #161621;
  --ink-2: #252536;
  --muted: #71717f;
  --line: #ece7cf;
  --surface: #ffffff;
  --surface-2: #fffdf3;
  --success: #168c68;
  --danger: #d83f5a;
  --shadow: 0 18px 44px rgba(22, 22, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 212, 59, 0.52), transparent 260px),
    linear-gradient(180deg, #fff9df 0, #f7f7fb 360px, #f7f7fb 100%);
  padding-bottom: 102px;
}

button,
input,
textarea {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
  background: rgba(255, 249, 220, 0.86);
  border-bottom: 1px solid rgba(22, 22, 33, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: var(--yellow);
  background: var(--ink);
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(22, 22, 33, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1;
  font-size: 18px;
  font-weight: 950;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--yellow);
  background: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

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

.shell {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 30px;
}

.hero {
  position: relative;
  min-height: 258px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 20px;
  border-radius: 26px;
  color: white;
  background:
    linear-gradient(180deg, rgba(22, 22, 33, 0.12), rgba(22, 22, 33, 0.84)),
    url("https://images.unsplash.com/photo-1567206563064-6f60f40a2b57?auto=format&fit=crop&w=1200&q=86") center/cover;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -44px -58px auto;
  width: 172px;
  height: 172px;
  border-radius: 999px;
  background: rgba(255, 212, 59, 0.92);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
}

.hero-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 118px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 212, 59, 0.94);
  box-shadow: 0 14px 30px rgba(22, 22, 33, 0.18);
}

.hero-chip span {
  font-size: 11px;
  font-weight: 900;
}

.hero-chip strong {
  font-size: 13px;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 950;
}

.eyebrow.dark {
  color: #987100;
}

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

h1 {
  max-width: 310px;
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.06;
  letter-spacing: 0;
}

.sub {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.48;
}

.section-title,
.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 24px 2px 12px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.view.checkout.is-active {
  display: grid;
}

.cart-badge,
.panel-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(22, 22, 33, 0.08);
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 950;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}

.product,
.panel {
  border: 1px solid rgba(22, 22, 33, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(22, 22, 33, 0.08);
}

.product {
  overflow: hidden;
}

.product img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  background: var(--yellow-pale);
}

.product-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.product h3 {
  min-height: 39px;
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.product-actions strong {
  font-size: 14px;
  color: var(--ink);
}

.add,
.submit,
#locateBtn,
.app-footer button {
  border: 0;
  cursor: pointer;
  min-height: 44px;
  font-weight: 950;
}

.add {
  display: grid;
  place-items: center;
  min-width: 44px;
  border-radius: 15px;
  color: var(--yellow);
  background: var(--ink);
  padding: 0 13px;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(22, 22, 33, 0.16);
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  gap: 13px;
  align-items: start;
}

.checkout.view {
  display: none;
}

.checkout.view.is-active {
  display: grid;
}

.panel {
  padding: 15px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.step {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(22, 22, 33, 0.05);
  font-size: 11px;
  font-weight: 900;
}

.step.is-active {
  color: var(--ink);
  background: var(--yellow);
}

.step.is-done {
  color: var(--yellow);
  background: var(--ink);
}

.cart-panel {
  scroll-margin-top: 78px;
}

.next-step {
  margin-top: 14px;
}

.screen-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 14px;
}

.secondary {
  min-height: 48px;
  border: 1px solid rgba(22, 22, 33, 0.1);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(22, 22, 33, 0.04);
  cursor: pointer;
  font-weight: 950;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(22, 22, 33, 0.08);
}

.cart-line:first-child {
  margin-top: 7px;
}

.cart-line strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.qty {
  display: inline-grid;
  grid-template-columns: 35px 34px 35px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 22, 33, 0.1);
  border-radius: 14px;
  background: var(--yellow-pale);
}

.qty button {
  width: 35px;
  height: 35px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
}

.qty span {
  width: 34px;
  text-align: center;
  font-weight: 950;
}

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

.cart-empty {
  padding: 18px 0 6px;
  font-weight: 750;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(22, 22, 33, 0.08);
  font-size: 18px;
}

.total-row strong {
  color: var(--ink);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(22, 22, 33, 0.1);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffef8;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #d4a900;
  box-shadow: 0 0 0 4px rgba(255, 212, 59, 0.28);
}

input.is-invalid,
textarea.is-invalid {
  border-color: var(--danger);
  background: #fff7f8;
  box-shadow: 0 0 0 4px rgba(216, 63, 90, 0.1);
}

.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 850;
}

.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(22, 22, 33, 0.08);
  border-radius: 18px;
  color: var(--ink);
  background: var(--yellow-pale);
}

.final-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(22, 22, 33, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.final-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-2);
  font-size: 13px;
}

.final-row strong {
  color: var(--ink);
  white-space: nowrap;
}

.order-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-summary strong {
  font-size: 17px;
}

#locateBtn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--yellow);
  background: var(--ink);
  font-size: 13px;
}

#map {
  height: 240px;
  overflow: hidden;
  border: 1px solid rgba(22, 22, 33, 0.1);
  border-radius: 22px;
  background: #efe9c8;
}

.delivery-card {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(22, 22, 33, 0.08);
  border-radius: 18px;
  background: rgba(22, 22, 33, 0.04);
}

.delivery-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.delivery-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.submit {
  width: 100%;
  border-radius: 17px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 16px;
  box-shadow: 0 14px 26px rgba(255, 212, 59, 0.28);
}

.message {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.message.is-error {
  color: var(--danger);
}

.success-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 28px 18px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  color: var(--yellow);
  background: var(--ink);
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 16px 28px rgba(22, 22, 33, 0.2);
}

.success-panel h2 {
  margin: 0;
}

.success-panel p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(58px, 0.72fr)) minmax(118px, 1.28fr);
  gap: 8px;
  padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
  border-top: 1px solid rgba(22, 22, 33, 0.08);
  background: rgba(255, 253, 243, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 -16px 36px rgba(22, 22, 33, 0.1);
}

.nav-action,
.nav-order {
  min-width: 0;
  min-height: 56px;
  border-radius: 18px;
}

.nav-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 3px;
  color: var(--muted);
  background: rgba(22, 22, 33, 0.04);
  font-size: 11px;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-action.is-active,
.nav-action:active {
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-1px);
}

.nav-icon {
  display: grid;
  place-items: center;
  position: relative;
  width: 30px;
  height: 28px;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 212, 59, 0.75);
}

.nav-action.is-active .nav-icon {
  color: var(--yellow);
  background: var(--ink);
}

.icon-menu,
.icon-menu::before,
.icon-menu::after {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.icon-menu {
  position: relative;
}

.icon-menu::before,
.icon-menu::after {
  content: "";
  position: absolute;
  left: 0;
}

.icon-menu::before {
  top: -5px;
}

.icon-menu::after {
  top: 5px;
}

.icon-cart {
  width: 15px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px 3px 5px 5px;
}

.icon-cart::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  width: 12px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.icon-orders {
  position: relative;
  display: block;
  width: 16px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-orders::before,
.icon-orders::after {
  content: "";
  position: absolute;
  left: 4px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.icon-orders::before {
  top: 5px;
}

.icon-orders::after {
  top: 10px;
}

.cart-nav-icon em {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--surface-2);
  border-radius: 999px;
  color: var(--yellow);
  background: var(--ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.nav-action.is-active .cart-nav-icon em {
  color: var(--ink);
  background: var(--yellow);
}

.nav-order {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 0 12px;
  color: var(--yellow);
  background: var(--ink);
  box-shadow: 0 12px 24px rgba(22, 22, 33, 0.22);
  overflow: hidden;
  text-align: left;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-order:active {
  transform: translateY(-1px);
}

.nav-order.is-muted {
  opacity: 0.72;
}

.order-copy {
  width: 100%;
  color: var(--yellow);
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
}

.nav-order strong {
  width: 100%;
  overflow: hidden;
  color: rgba(255, 212, 59, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
}

.my-orders-panel,
.my-orders {
  display: grid;
  gap: 10px;
}

.my-order {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(22, 22, 33, 0.08);
  border-radius: 16px;
  background: rgba(255, 253, 243, 0.86);
}

.my-order-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: start;
  justify-content: space-between;
}

.my-order-head strong,
.my-order-head span,
.my-order small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-order-head strong {
  color: var(--ink);
  font-size: 15px;
}

.my-order-head span,
.my-order small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.my-order-items {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(22, 22, 33, 0.035);
}

.my-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 850;
}

.my-order-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-order-item strong {
  white-space: nowrap;
}

.admin-page {
  min-height: 100vh;
  padding-bottom: 118px;
  background:
    linear-gradient(180deg, rgba(255, 212, 59, 0.22), transparent 260px),
    #f7f7fb;
}

.admin-page .topbar {
  background: rgba(255, 253, 243, 0.95);
}

.admin-topbar {
  min-height: 64px;
}

.admin-shell {
  display: grid;
  gap: 14px;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 34px;
}

.admin-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-status h1 {
  max-width: none;
  margin: 2px 0 0;
  font-size: 26px;
  line-height: 1.05;
}

.admin-status-copy {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.admin-status-copy[data-mode="ok"] {
  color: var(--success);
}

.admin-status-copy[data-mode="error"] {
  color: var(--danger);
}

.admin-status .message {
  grid-column: 1 / -1;
}

.admin-page.admin-locked .admin-view,
.admin-page.admin-locked .admin-footer {
  display: none;
}

.admin-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247, 247, 251, 0), rgba(247, 247, 251, 0.96) 30%);
  pointer-events: none;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(680px, 100%);
  margin: 0 auto;
  pointer-events: auto;
}

.admin-tab {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 68px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(22, 22, 33, 0.08);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 253, 243, 0.98);
  box-shadow: 0 14px 34px rgba(22, 22, 33, 0.12);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.admin-tab span:not(.admin-tab-icon) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tab.is-active {
  border-color: rgba(247, 191, 42, 0.78);
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-2px);
}

.admin-tab-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.admin-tab-icon::before,
.admin-tab-icon::after {
  position: absolute;
  content: "";
  border: 2px solid currentColor;
}

.admin-tab-orders::before {
  inset: 3px 5px;
  border-radius: 5px;
}

.admin-tab-orders::after {
  top: 8px;
  left: 9px;
  width: 6px;
  height: 0;
  border-width: 2px 0 0;
  box-shadow: 0 5px 0 currentColor;
}

.admin-tab-menu::before {
  top: 4px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 3px;
  box-shadow: 10px 0 0 -2px currentColor, 0 10px 0 -2px currentColor, 10px 10px 0 -2px currentColor;
}

.admin-tab-menu::after {
  display: none;
}

.admin-tab-stats::before {
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 14px;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 4px;
}

.admin-tab-stats::after {
  left: 7px;
  bottom: 6px;
  width: 3px;
  height: 6px;
  border-width: 0;
  background: currentColor;
  box-shadow: 5px -4px 0 currentColor, 10px -8px 0 currentColor;
}

.admin-tab-admins::before {
  top: 4px;
  left: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.admin-tab-admins::after {
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 8px;
  border-radius: 999px 999px 5px 5px;
}

.admin-view {
  display: none;
  min-width: 0;
}

.admin-page .admin-view:not(.is-active) {
  display: none;
}

.admin-view.is-active {
  display: grid;
}

.admin-grid {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
  align-items: start;
}

.admin-form,
.admin-list,
.admin-orders-panel,
.admin-stats-panel,
.admin-admins-panel {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.admin-orders-panel,
.admin-stats-panel,
.admin-admins-panel {
  margin-top: 0;
}

.compact {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 20px;
  height: 20px;
}

.admin-products,
.admin-orders,
.stats-summary,
.stats-products,
.admin-admins {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-product,
.admin-order,
.stats-card,
.stats-product,
.admin-admin {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(22, 22, 33, 0.08);
  border-radius: 16px;
  background: rgba(255, 253, 243, 0.9);
}

.admin-product {
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
}

.admin-product.is-off {
  opacity: 0.62;
}

.admin-product img {
  width: 72px;
  height: 62px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--yellow-pale);
}

.admin-product strong,
.admin-product span,
.admin-product em,
.inline-link,
.order-main strong,
.order-main span,
.order-main small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-product strong,
.order-main strong {
  font-size: 14px;
}

.admin-product span,
.order-main span,
.order-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-product em {
  margin-top: 5px;
  color: var(--success);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.admin-product.is-off em,
.danger-btn {
  color: var(--danger);
}

.inline-link,
.order-links a {
  color: #7a5b00;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.inline-link {
  margin-top: 5px;
}

.order-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.order-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--yellow-pale);
}

.order-items {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(22, 22, 33, 0.035);
}

.order-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
}

.order-item-row span,
.order-item-row strong,
.order-item-row small {
  min-width: 0;
}

.order-item-row span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.order-item-row strong {
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.order-item-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.admin-order {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  align-items: start;
}

.stats-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-card {
  min-height: 112px;
  align-content: center;
  padding: 14px;
}

.stats-card span,
.stats-card strong,
.stats-card small,
.stats-product span,
.stats-product strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.stats-card span,
.stats-card small,
.stats-product span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.stats-card strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
}

.stats-card small {
  margin-top: 6px;
}

.stats-product {
  grid-template-columns: 34px minmax(0, 1fr) minmax(120px, auto);
  align-items: center;
}

.stats-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 950;
}

.stats-product strong {
  color: var(--ink);
  font-size: 14px;
}

.stats-product-numbers {
  text-align: right;
}

.order-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow-pale);
  font-size: 11px;
  font-weight: 900;
}

.status-pill.is-delivered {
  color: #0e6b34;
  background: rgba(35, 181, 96, 0.14);
}

.status-pill.is-cancelled {
  color: var(--danger);
  background: rgba(216, 63, 90, 0.12);
}

.status-pill.is-on-way,
.status-pill.is-preparing,
.status-pill.is-accepted {
  color: #295b92;
  background: rgba(65, 142, 220, 0.14);
}

.admin-order select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(22, 22, 33, 0.1);
  border-radius: 14px;
  padding: 0 10px;
  color: var(--ink);
  background: #fffef8;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.admin-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
  align-items: end;
}

.admin-admin {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-admin strong,
.admin-admin span {
  display: block;
}

.admin-admin strong {
  font-size: 14px;
}

.admin-admin span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 560px) {
  .catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }

  h1 {
    max-width: 520px;
    font-size: 52px;
  }

  .hero {
    min-height: 310px;
    padding: 30px;
  }
}

@media (min-width: 860px) {
  body {
    padding-bottom: 112px;
  }

  .topbar {
    padding-left: calc((100% - min(1120px, calc(100% - 40px))) / 2);
    padding-right: calc((100% - min(1120px, calc(100% - 40px))) / 2);
  }

  .shell {
    width: min(1120px, calc(100% - 40px));
    padding-top: 18px;
  }

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

  .panel {
    padding: 18px;
  }

  .app-footer {
    left: 50%;
    right: auto;
    bottom: 18px;
    width: min(520px, calc(100% - 40px));
    transform: translateX(-50%);
    border: 1px solid rgba(22, 22, 33, 0.08);
    border-radius: 28px;
    padding: 10px;
  }

  .admin-page {
    padding-bottom: 124px;
  }

  .admin-form {
    position: sticky;
    top: 86px;
  }
}

@media (max-width: 760px) {
  .admin-topbar {
    align-items: flex-start;
  }

  .admin-links {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-status,
  .admin-grid,
  .admin-product,
  .admin-order,
  .stats-summary,
  .stats-product,
  .admin-add-form,
  .admin-admin {
    grid-template-columns: 1fr;
  }

  .admin-page {
    padding-bottom: 104px;
  }

  .admin-shell {
    width: min(100% - 18px, 520px);
    gap: 10px;
    padding-top: 10px;
  }

  .admin-status {
    align-items: stretch;
  }

  .admin-status h1 {
    font-size: 23px;
  }

  .admin-status .submit {
    min-height: 42px;
  }

  .admin-footer {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  .admin-tabs {
    gap: 7px;
  }

  .admin-tab {
    min-height: 62px;
    border-radius: 17px;
    font-size: 11px;
  }

  .admin-tab-icon {
    width: 22px;
    height: 22px;
  }

  .admin-tab strong {
    top: 5px;
    right: 6px;
    min-width: 19px;
    min-height: 19px;
    padding: 0 5px;
    font-size: 10px;
  }

  .admin-order select,
  .admin-product button,
  .stats-product-numbers,
  .admin-admin button {
    width: 100%;
  }

  .stats-product-numbers {
    text-align: left;
  }

  .admin-product {
    align-items: start;
  }

  .admin-product img {
    width: 100%;
    height: 150px;
  }
}
