/* ==========================================================================
   Moo Free — design tokens
   Palette sampled from the printed menu: warm cream paper, sage/olive green,
   soft-black ink, blush pink accent (the cow's nose).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Surfaces */
  --cream: #f7f4ea;
  --cream-deep: #f0ecdf;
  --surface: #fffdf8;
  --surface-alt: #faf8f0;

  /* Brand */
  --sage: #8a9a5f; /* decorative fills, borders — never behind white text */
  --sage-600: #7a8a51;
  --sage-700: #63733e; /* AA on cream for text */
  --sage-ink: #66753f; /* 4.7:1 with white — use wherever white text sits on sage */
  --sage-100: #e8edda;
  --sage-200: #d5dcc4;
  --blush: #f0b7a8;
  --blush-deep: #e39c8a;

  /* Ink */
  --ink: #1a1a18;
  --ink-soft: #3d3f38;
  --muted: #6f7266;
  --border: #e3e0d1;
  --border-strong: #d3cfbc;

  /* Feedback */
  --danger: #b4462f;
  --danger-bg: #fbeeea;
  --success: #4f7a43;
  --success-bg: #eaf1e5;

  /* Type */
  --font-display: 'Baloo 2', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius — the menu leans on very soft, pill-like corners */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(26, 26, 24, 0.05);
  --shadow-md: 0 4px 16px rgba(26, 26, 24, 0.07);
  --shadow-lg: 0 16px 48px rgba(26, 26, 24, 0.14);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 160ms;
  --base: 240ms;

  --header-h: 64px;
  --max-w: 1120px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 68px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

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

a:hover {
  text-decoration: underline;
}

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

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  transition: top var(--fast) var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Decorative leaf background (echoes the printed menu)
   ========================================================================== */

.leaf-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 8% 18%, var(--sage-100) 0 1.5px, transparent 1.6px),
    radial-gradient(circle at 92% 12%, var(--sage-100) 0 1.5px, transparent 1.6px),
    radial-gradient(circle at 78% 62%, var(--sage-100) 0 1.5px, transparent 1.6px);
  background-size: 260px 260px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(247, 244, 234, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark span {
  color: var(--sage-600);
}

.wordmark__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blush);
  margin-left: 3px;
  align-self: center;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--sage-ink);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
    transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.btn:hover {
  background: #566334;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: scale(0.975);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--ink {
  --btn-bg: var(--ink);
}

.btn--ink:hover {
  background: #000;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn--danger {
  --btn-bg: transparent;
  --btn-fg: var(--danger);
  --btn-bd: #e8c9c0;
}

.btn--danger:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.btn--sm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 54px;
  font-size: 16.5px;
  padding: 0 28px;
}

/* Cart button in the header */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 15px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.cart-btn:hover {
  box-shadow: var(--shadow-md);
}

.cart-btn:active {
  transform: scale(0.97);
}

.cart-btn__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--blush);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-btn__count:empty,
.cart-btn__count[data-empty='true'] {
  display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 44px 0 28px;
}

.hero__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 15vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.hero__logo em {
  display: block;
  font-style: normal;
  color: var(--sage);
}

.hero__nose {
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  border-radius: 50%;
  background: var(--blush);
  vertical-align: 0.08em;
  margin-left: 0.04em;
}

.hero__tagline {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 500;
  color: var(--ink-soft);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--sage-100);
  border: 1px solid var(--sage-200);
  color: var(--sage-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.announcement {
  margin: 20px auto 0;
  max-width: 620px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  background: var(--blush);
  color: #5a2f24;
  font-size: 14.5px;
  font-weight: 500;
}

/* ==========================================================================
   Category nav
   ========================================================================== */

.catnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  padding: 12px 0;
  background: rgba(247, 244, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.catnav__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.catnav__scroll::-webkit-scrollbar {
  display: none;
}

.catnav__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--sage-200);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--fast) var(--ease);
}

.catnav__link:hover {
  border-color: var(--sage);
  color: var(--sage-700);
  text-decoration: none;
}

.catnav__link[aria-current='true'] {
  background: var(--sage-ink);
  border-color: var(--sage-ink);
  color: #fff;
}

/* ==========================================================================
   Menu sections
   ========================================================================== */

.main {
  position: relative;
  z-index: 1;
  padding-bottom: 96px;
}

.section {
  padding-top: 44px;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section__head::before,
.section__head::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--sage-200);
}

.section__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 26px;
  border-radius: var(--r-pill);
  background: var(--sage-ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(14px, 3.4vw, 17px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section__pill svg {
  width: 15px;
  height: 15px;
  opacity: 0.9;
  flex: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* ==========================================================================
   Product card
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--sage-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease),
    transform var(--base) var(--ease);
}

.card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__media--empty {
  display: grid;
  place-items: center;
  color: var(--sage-200);
}

.card__media--empty svg {
  width: 46px;
  height: 46px;
}

.card__tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--sage-200);
  color: var(--sage-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
  gap: 10px;
}

.card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.card__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--sage-700);
  font-variant-numeric: tabular-nums;
}

.card__price small {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Modifiers */
.mods {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mods__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mod {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.mod:hover {
  background: var(--sage-100);
}

.mod:has(input:checked) {
  background: var(--sage-100);
  border-color: var(--sage);
}

.mod input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage);
  flex: none;
  cursor: pointer;
}

.mod__name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.mod__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--sage-700);
  font-variant-numeric: tabular-nums;
}

.card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

/* No add-ons? Pin the buttons to the bottom so every card in a row lines up. */
.card__price + .card__foot {
  margin-top: auto;
  padding-top: 14px;
}

.card__foot .btn {
  flex: 1;
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  overflow: hidden;
  flex: none;
}

.qty button {
  width: 38px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--fast) var(--ease);
}

.qty button:hover {
  background: var(--sage-100);
}

.qty button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty output,
.qty__value {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(26, 26, 24, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--base) var(--ease), visibility var(--base);
}

.scrim[data-open='true'] {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(420px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--base) var(--ease), visibility var(--base);
}

.drawer[data-open='true'] {
  transform: translateX(0);
  visibility: visible;
}

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

.drawer__title {
  font-size: 20px;
  font-weight: 700;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--fast) var(--ease);
}

.icon-btn:hover {
  background: var(--cream-deep);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.drawer__foot {
  flex: none;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.cart-line {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line__thumb {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--cream-deep);
  border: 1px solid var(--border);
}

.cart-line__main {
  flex: 1;
  min-width: 0;
}

.cart-line__name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}

.cart-line__mods {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

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

.cart-line__price {
  font-weight: 700;
  font-size: 15px;
  color: var(--sage-700);
  font-variant-numeric: tabular-nums;
}

.cart-line .qty button {
  width: 34px;
  height: 36px;
  font-size: 16px;
}

.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}

.empty svg {
  width: 54px;
  height: 54px;
  color: var(--sage-200);
  margin: 0 auto 14px;
}

.empty h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

.empty p {
  margin: 0;
  font-size: 14px;
}

.totals {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.totals__row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  color: var(--muted);
}

.totals__row span:last-child {
  font-variant-numeric: tabular-nums;
}

.totals__row--grand {
  padding-top: 11px;
  margin-top: 4px;
  border-top: 2px solid var(--ink);
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Sticky mobile bar */
.cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform var(--base) var(--ease);
}

.cart-bar[data-visible='true'] {
  transform: translateY(0);
}

.cart-bar__info {
  min-width: 0;
}

.cart-bar__count {
  font-size: 11.5px;
  line-height: 1.3;
  opacity: 0.72;
}

.cart-bar__total {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-bar .btn {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  flex: none;
}

.cart-bar .btn:hover {
  background: var(--cream);
}

@media (max-width: 860px) {
  .cart-bar {
    display: flex;
  }
  /* Only reserve room when the sticky bar is actually on the page. */
  body:has(.cart-bar) .main {
    padding-bottom: 120px;
  }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 120;
  transform: translate(-50%, 24px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.toast[data-open='true'] {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 17px;
  height: 17px;
  color: var(--blush);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field__label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.field__label .req {
  color: var(--danger);
  margin-left: 2px;
}

.field__hint {
  font-size: 12.5px;
  color: var(--muted);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 16px; /* 16px avoids the iOS zoom-on-focus */
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: #a3a496;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-100);
}

.input[aria-invalid='true'] {
  border-color: var(--danger);
}

.textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7266' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.field-row {
  display: grid;
  gap: 0 16px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.alert svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 1px;
}

.alert--error {
  background: var(--danger-bg);
  border: 1.5px solid #e8c9c0;
  color: #7d2f1e;
}

.alert--success {
  background: var(--success-bg);
  border: 1.5px solid var(--sage-200);
  color: #33532b;
}

/* ==========================================================================
   Checkout
   ========================================================================== */

.page-head {
  padding: 34px 0 8px;
}

.page-head h1 {
  font-size: clamp(28px, 6vw, 40px);
}

.page-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.back-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 26px;
  align-items: start;
  padding: 22px 0 90px;
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    padding-bottom: 40px;
  }
}

.panel {
  background: var(--surface);
  border: 1.5px solid var(--sage-200);
  border-radius: var(--r-lg);
  padding: 24px;
}

.panel + .panel {
  margin-top: 18px;
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
}

.panel__step {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 50%;
  background: var(--sage-ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

@media (max-width: 900px) {
  .summary {
    position: static;
  }
}

.eta {
  display: flex;
  gap: 13px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--sage-100);
  border: 1.5px solid var(--sage-200);
  margin-bottom: 18px;
}

.eta svg {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--sage-700);
  margin-top: 2px;
}

.eta__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-700);
}

.eta__value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1px;
}

.eta__note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1.5px solid var(--sage);
  border-radius: var(--r-md);
  background: var(--sage-100);
}

.pay-option svg {
  width: 24px;
  height: 24px;
  color: var(--sage-700);
  flex: none;
}

.pay-option__title {
  font-weight: 700;
  font-size: 15px;
}

.pay-option__sub {
  font-size: 13px;
  color: var(--muted);
}

.pay-option__check {
  margin-left: auto;
  color: var(--sage);
}

#map-preview {
  height: 180px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong);
  overflow: hidden;
  margin-top: 10px;
  background: var(--cream-deep);
}

.pac-container {
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
  margin-top: 4px;
}

/* ==========================================================================
   Confirmation
   ========================================================================== */

.confirm {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 0 80px;
  text-align: center;
}

.confirm__mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--sage-ink);
  color: #fff;
  animation: pop 420ms var(--ease) both;
}

.confirm__mark svg {
  width: 36px;
  height: 36px;
}

@keyframes pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.confirm h1 {
  font-size: clamp(28px, 7vw, 38px);
}

.confirm__lead {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 16px;
}

.ref-chip {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1.5px dashed var(--border-strong);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.confirm .panel {
  text-align: left;
  margin-top: 24px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}

.kv:last-child {
  border-bottom: 0;
}

.kv__k {
  color: var(--muted);
  flex: none;
}

.kv__v {
  text-align: right;
  font-weight: 600;
}

.order-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.order-item:last-of-type {
  border-bottom: 0;
}

.order-item__mods {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.order-item__price {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 34px 0;
  text-align: center;
}

.footer__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

.footer__note svg {
  width: 16px;
  height: 16px;
  color: var(--sage);
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  font-size: 14px;
}

.footer__legal {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ==========================================================================
   Admin — shell
   Sidebar on desktop, bottom tab bar on mobile (5 destinations, per Material's
   bottom-nav limit). Never a cramped wrapping top bar.
   ========================================================================== */

.admin-body {
  background: var(--surface-alt);
}

.admin-shell {
  min-height: 100dvh;
}

.admin-side {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 12px;
  background: var(--ink);
  color: #fff;
  overflow-y: auto;
}

.admin-side__brand {
  padding: 6px 12px 20px;
  font-size: 26px;
  color: #fff;
}

.admin-side__brand span {
  color: var(--blush);
}

.admin-side__brand:hover {
  text-decoration: none;
}

.admin-side__link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.admin-side__link svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.admin-side__link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
}

.admin-side__link[aria-current='page'] {
  background: var(--sage-ink);
  color: #fff;
}

.admin-side__link--muted {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 14px;
}

.admin-side__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-content {
  margin-left: 240px;
  min-width: 0;
}

/* Mobile-only compact top bar (brand + shop/log out) */
.admin-mobilebar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}

.admin-mobilebar__left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.admin-mobilebar .wordmark {
  color: #fff;
  font-size: 23px;
}

.admin-mobilebar .wordmark span {
  color: var(--blush);
}

.admin-mobilebar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-mobilebar .icon-btn {
  color: rgba(255, 255, 255, 0.75);
}

.admin-mobilebar .icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Slide-in drawer below desktop — still a side menu, never a bottom toolbar. */
.admin-scrim {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: rgba(26, 26, 24, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--base) var(--ease), visibility var(--base);
}

.admin-side__close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.admin-side__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 1023px) {
  .admin-side {
    width: 272px;
    max-width: 84vw;
    padding-top: 20px;
    box-shadow: 8px 0 40px rgba(26, 26, 24, 0.28);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--base) var(--ease), visibility var(--base);
  }

  .admin-side[data-open='true'] {
    transform: translateX(0);
    visibility: visible;
  }

  .admin-scrim[data-open='true'] {
    opacity: 1;
    visibility: visible;
  }

  .admin-side__close {
    display: grid;
  }

  .admin-mobilebar {
    display: flex;
  }

  .admin-content {
    margin-left: 0;
  }
}

.admin-main {
  padding: 34px 0 90px;
}

/* The admin canvas gets wider gutters than the storefront — it holds denser UI. */
.admin-content .container {
  padding-left: 32px;
  padding-right: 32px;
}

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

.admin-head h1 {
  font-size: 28px;
}

.admin-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.table-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

table.data th {
  text-align: left;
  padding: 13px 16px;
  background: var(--surface-alt);
  border-bottom: 1.5px solid var(--border);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

table.data td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  vertical-align: middle;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tbody tr:hover {
  background: var(--surface-alt);
}

.cat-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-700);
}

.cat-heading::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--sage-200);
}

.thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--cream-deep);
  border: 1px solid var(--border);
}

.thumb--empty {
  display: grid;
  place-items: center;
  color: var(--border-strong);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: capitalize;
}

.pill--on {
  background: var(--success-bg);
  color: var(--success);
}

.pill--off {
  background: var(--cream-deep);
  color: var(--muted);
}

.pill--new {
  background: var(--blush);
  color: #6b3527;
}

.pill--confirmed {
  background: var(--sage-100);
  color: var(--sage-700);
}

.pill--delivered {
  background: var(--success-bg);
  color: var(--success);
}

.pill--cancelled {
  background: var(--danger-bg);
  color: var(--danger);
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: nowrap; /* the table scrolls horizontally instead of stacking buttons */
}

.inline-form {
  display: inline;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.modifier-row {
  display: grid;
  grid-template-columns: 1fr 120px 46px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.image-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--border-strong);
  background: var(--surface-alt);
  object-fit: cover;
  display: block;
}

.image-preview--empty {
  display: grid;
  place-items: center;
  color: var(--border-strong);
}

.file-input {
  width: 100%;
  padding: 11px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  font-size: 14px;
  cursor: pointer;
}

.file-input::file-selector-button {
  margin-right: 12px;
  padding: 8px 15px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}

.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1.5px solid var(--sage-200);
  border-radius: var(--r-xl);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.login-card .wordmark {
  font-size: 32px;
  margin-bottom: 6px;
}

.login-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 24px;
}

.login-card form {
  text-align: left;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}

.switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--sage);
  cursor: pointer;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}

.stat__k {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat__v {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

details.order-detail summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sage-700);
  padding: 6px 0;
  list-style: none;
}

details.order-detail summary::-webkit-details-marker {
  display: none;
}

details.order-detail summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform var(--fast) var(--ease);
}

details.order-detail[open] summary::before {
  content: '▾ ';
}

.detail-box {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Admin — mobile
   Real cards, not a squeezed table. The <table> is desktop-only; below 1024px
   the same data renders as .acard blocks with proper hierarchy and spacing.
   ========================================================================== */

.acards {
  display: none;
}

.acard {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.acard + .acard {
  margin-top: 12px;
}

.acard__top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.acard__thumb {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--cream-deep);
  border: 1px solid var(--border);
}

.acard__thumb--empty {
  display: grid;
  place-items: center;
  color: var(--border-strong);
}

.acard__main {
  flex: 1;
  min-width: 0;
}

.acard__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.acard__sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 3px;
}

.acard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.acard__price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--sage-700);
  font-variant-numeric: tabular-nums;
}

.acard__rows {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.acard__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 5px 0;
  font-size: 14px;
}

.acard__k {
  flex: none;
  color: var(--muted);
}

.acard__v {
  text-align: right;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.acard__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

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

.acard__actions > form {
  display: block;
  width: 100%;
}

/* Keep .btn as flex so its label stays centred inside the grid cell. */
.acard__actions > .btn {
  width: 100%;
}

.acard__actions .btn {
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
}

.acard__status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.acard__status-form .select {
  min-height: 44px;
  padding: 8px 36px 8px 14px;
}

.acard__status-form .btn {
  min-height: 44px;
}

@media (max-width: 1023px) {
  .acards {
    display: block;
  }

  /* The desktop table steps aside entirely. */
  .table-wrap--desktop {
    display: none;
  }

  .admin-main {
    padding: 26px 0 70px;
  }

  .admin-content .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .admin-head {
    margin-bottom: 20px;
  }

  .admin-head h1 {
    font-size: 26px;
  }

  .cat-heading {
    margin: 22px 0 10px;
  }

  .panel {
    padding: 18px 16px;
    border-radius: var(--r-md);
  }

  .admin-grid {
    gap: 16px;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat {
    padding: 13px 14px;
  }

  .stat__v {
    font-size: 22px;
  }

  /* Modifier rows become a small labelled card each. */
  .modifier-row {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface-alt);
  }

  .modifier-row input:first-child {
    grid-column: 1 / -1;
  }

  .modifier-row .icon-btn {
    justify-self: end;
  }
}

@media (min-width: 1024px) {
  .acards {
    display: none;
  }
}

/* ==========================================================================
   Promo code
   ========================================================================== */

.promo {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-strong);
}

.promo__row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.promo__input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.promo__input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.promo__btn {
  flex: none;
  min-height: 50px;
}

.promo__msg {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.promo__msg--ok {
  color: var(--success);
}

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

.promo[data-applied='true'] .promo__input {
  border-color: var(--sage);
  background: var(--sage-100);
}

.totals__row--discount {
  color: var(--success);
  font-weight: 600;
}

/* ==========================================================================
   Admin — dashboard
   ========================================================================== */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.kpi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.kpi--attention {
  border-color: var(--blush-deep);
  background: linear-gradient(180deg, #fff7f4 0%, var(--surface) 100%);
}

.kpi__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-md);
}

.kpi__icon svg {
  width: 20px;
  height: 20px;
}

.kpi__icon--sage {
  background: var(--sage-100);
  color: var(--sage-700);
}

.kpi__icon--blush {
  background: var(--blush);
  color: #6b3527;
}

.kpi__icon--ink {
  background: var(--cream-deep);
  color: var(--ink);
}

.kpi__body {
  min-width: 0;
}

.kpi__k {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi__v {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.kpi__v small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.kpi__note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

/* Compact list rows used for recent orders and best sellers */
.feed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.feed:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feed__main {
  min-width: 0;
}

.feed__title {
  font-size: 14.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.feed__sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 1px;
}

.feed__side {
  flex: none;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.feed__amount {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1023px) {
  .kpi-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .kpi {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .kpi__icon {
    width: 36px;
    height: 36px;
  }

  .kpi__v {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .admin-head > div {
    width: 100%;
  }

  .admin-head .btn {
    width: 100%;
  }

  .admin-content .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}
