:root {
  --bg: #06080c;
  --bg-soft: #0a1018;
  --surface: #10161f;
  --surface2: #182230;
  --surface-elevated: #1e2a3a;
  --text: #f8fafc;
  --muted: #8b9cb0;
  --accent: #2dd4bf;
  --accent2: #14b8a6;
  --accent-hover: #5eead4;
  --accent-deep: #0d9488;
  --accent-rgb: 45, 212, 191;
  --accent2-rgb: 20, 184, 166;
  --accent-deep-rgb: 13, 148, 136;
  --accent-glow: rgba(var(--accent-rgb), 0.35);
  --danger: #f87171;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --app-tabbar-h: 3.625rem;
  /* Texto legível sobre fundos claros vs escuros (roleta, badges) — alinhado ao tema */
  --text-on-bright: #0f172a;
  --text-on-dark-surface: var(--text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(5rem + var(--safe-bottom));
  background: linear-gradient(145deg, #06080c 0%, #0a1018 32%, #0c1614 55%, #080a0f 100%);
  background-size: 200% 200%;
  animation: siteBgDrift 22s ease-in-out infinite;
}

@keyframes siteBgDrift {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 10, 15, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.topbar__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(0.65rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) 0.65rem max(1rem, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
  text-decoration: none !important;
}

.logo:hover .logo__name,
.logo:hover .logo__text {
  filter: brightness(1.06);
}

.logo__img {
  flex-shrink: 0;
  max-height: 44px;
  max-width: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.8vw, 1.12rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-actions__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--ease-spring);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-actions__link:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
  text-decoration: none;
}

.nav-actions__link:active {
  transform: scale(0.96);
}

.nav-actions__link--ghost {
  color: var(--accent);
  font-weight: 600;
}

.nav-actions__link--ghost:hover {
  color: var(--accent-hover);
}

.nav-actions__cart {
  position: relative;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-actions__cart:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 28px var(--accent-glow);
}

.nav-actions__cart:active {
  transform: scale(0.94);
}

.nav-actions__cart-icon {
  font-size: 1.25rem;
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent2));
  color: #042f2e;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.45);
  transition: transform 0.25s var(--ease-spring);
}

.nav-actions__cart:hover .badge {
  transform: scale(1.08);
}

.badge.badge--bump {
  animation: badgePop 0.45s var(--ease-spring);
}

@keyframes badgePop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.hero-banner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.35rem max(1rem, env(safe-area-inset-left, 0px)) 0 max(1rem, env(safe-area-inset-right, 0px));
}

.hero-banner img {
  width: 100%;
  max-height: min(200px, 28vh);
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(148, 163, 184, 0.08);
  animation: fadeUp 0.6s var(--ease-out-expo) both;
}

/* Topbar compacto na vitrine (nome da loja na ficha abaixo) */
.logo--minimal {
  flex: 0 0 auto;
  max-width: none;
  text-decoration: none !important;
}

.logo__img--minimal {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.logo__home-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

/* Ficha da loja — estilo apps de mercado (nome + meta | logo) */
.store-sheet {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.1rem 1.05rem 1rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.72) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: fadeUp 0.5s var(--ease-out-expo) both;
  overflow: hidden;
}

.store-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.store-sheet__info {
  min-width: 0;
  flex: 1;
}

.store-sheet__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.store-sheet__meta {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
  padding-left: 0.65rem;
  border-left: 3px solid rgba(148, 163, 184, 0.35);
}

.store-sheet__meta--open {
  border-left-color: #34d399;
}

.store-sheet__meta--closed {
  border-left-color: var(--warn);
}

.store-sheet__meta--unknown {
  border-left-color: #94a3b8;
}

.store-sheet__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(var(--accent-rgb), 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  background: var(--surface2);
}

.store-sheet__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-sheet__description {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.9;
}

.store-sheet__actions {
  margin-top: 0.95rem;
}

.store-sheet__hours {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}

.store-sheet__hours .store-intro__hours {
  color: var(--accent-hover);
}

/* Roleta de desconto — modal sobre a vitrine */
body.discount-roulette-open {
  overflow: hidden;
  touch-action: none;
}

.discount-roulette-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.discount-roulette-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.discount-roulette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.discount-roulette {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  margin: 0;
  padding: 1.15rem 1rem 1.2rem;
  border-radius: calc(var(--radius) + 10px);
  background: var(--dr-bg, #f5d000);
  border: 2px solid var(--dr-border, #e91e8c);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  animation: fadeUp 0.45s var(--ease-out-expo) both;
  pointer-events: auto;
}

.discount-roulette__close {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: var(--accent-deep, #0f172a);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.discount-roulette__close:hover {
  background: rgba(15, 23, 42, 0.14);
}

.discount-roulette__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.discount-roulette__copy {
  text-align: center;
  max-width: 22rem;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.discount-roulette__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.72rem, 3vw, 0.88rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.35;
}

.discount-roulette__headlineDark {
  color: var(--accent-deep, #0f172a);
}

.discount-roulette__line3 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dr-accent, var(--accent, #e85d04));
  line-height: 1.15;
}

.discount-roulette__attempts {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-deep, var(--text-on-bright, #0f172a));
  opacity: 0.92;
}

.discount-roulette__wheelArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.discount-roulette__wheelFrame {
  position: relative;
  width: min(88vw, 280px);
  padding-bottom: min(88vw, 280px);
  height: 0;
}

.discount-roulette__wheelGlow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
  transform-origin: 50% 50%;
  transition: opacity 0.3s ease;
}

.discount-roulette__wheelFrame.is-spinning .discount-roulette__wheelGlow {
  animation: dr-wheel-glow-pulse 0.65s ease-in-out infinite alternate;
}

@keyframes dr-wheel-glow-pulse {
  from {
    opacity: 0.75;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.06);
  }
}

.discount-roulette__wheelFrame.is-spinning .discount-roulette__wheelClip {
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.28),
    0 0 0 4px rgba(255, 255, 255, 0.42),
    0 10px 32px rgba(0, 0, 0, 0.38),
    0 0 24px color-mix(in srgb, var(--accent, #2dd4bf) 38%, transparent);
}

.discount-roulette__wheelClip {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--dr-border, #e91e8c);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.2),
    0 0 0 4px rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.discount-roulette__wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-origin: 50% 50%;
  will-change: transform;
}

.discount-roulette__svgTxt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* fill/stroke vêm do PHP por fatia — não definir aqui para o tema não uniformizar tudo */
.discount-roulette__svgTxt text {
  font-family: var(--font-display), system-ui, sans-serif;
}

.discount-roulette__svgTxt .discount-roulette__spoke {
  filter: drop-shadow(0 0 0.35px rgba(255, 255, 255, 0.75));
}

.discount-roulette__sliceTxt {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  margin-left: -24%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.62rem, 2.6vw, 0.88rem);
  line-height: 1.1;
  transform-origin: center center;
  transform: rotate(calc((var(--dr-i) + 0.5) * 360deg / var(--dr-n)))
    translateY(calc(-1 * min(38%, 118px)))
    rotate(calc(-1 * (var(--dr-i) + 0.5) * 360deg / var(--dr-n)));
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.discount-roulette__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11%;
  height: 11%;
  margin: -5.5% 0 0 -5.5%;
  border-radius: 50%;
  background: var(--dr-ca, #6b2d9e);
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}

.discount-roulette__hubIcon {
  font-size: clamp(0.85rem, 3.5vw, 1.15rem);
  line-height: 1;
}

/* Ponteiro no topo (12h): cor do tema + contorno claro para leitura */
.discount-roulette__pointer {
  position: absolute;
  left: 50%;
  top: -12px;
  width: 0;
  height: 0;
  margin-left: -17px;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 25px solid var(--accent, #2dd4bf);
  filter:
    drop-shadow(0 0 0 1.5px #fff)
    drop-shadow(0 0 0 2.5px rgba(0, 0, 0, 0.12))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  z-index: 4;
  box-sizing: border-box;
  transform-origin: 50% 100%;
  will-change: transform;
}

.discount-roulette__wheelFrame.is-spinning .discount-roulette__pointer {
  animation: dr-pointer-wiggle 0.13s ease-in-out infinite alternate;
}

@keyframes dr-pointer-wiggle {
  from {
    transform: translateX(-3px) rotate(-8deg);
  }
  to {
    transform: translateX(3px) rotate(8deg);
  }
}

.discount-roulette__wheelFrame.is-spinning .discount-roulette__hubIcon {
  display: inline-block;
  animation: dr-hub-party 0.42s ease-in-out infinite alternate;
}

@keyframes dr-hub-party {
  from {
    transform: rotate(-10deg) scale(1);
  }
  to {
    transform: rotate(10deg) scale(1.18);
  }
}

.discount-roulette.is-roulette-spinning {
  animation: dr-card-spin-glow 0.88s ease-in-out infinite;
}

@keyframes dr-card-spin-glow {
  0%,
  100% {
    box-shadow:
      0 24px 56px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }
  50% {
    box-shadow:
      0 28px 64px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.22) inset,
      0 0 40px rgba(255, 200, 60, 0.55);
  }
}

.dr-confetti-piece {
  position: fixed;
  z-index: 10070;
  pointer-events: none;
  border-radius: 2px;
  will-change: transform, opacity;
  animation-name: dr-confetti-pop;
  animation-timing-function: cubic-bezier(0.22, 0.82, 0.28, 1);
  animation-fill-mode: forwards;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes dr-confetti-pop {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--dr-tx, 0), var(--dr-ty, 0), 0) rotate(var(--dr-rot, 540deg))
      scale(0.35);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discount-roulette.is-roulette-spinning {
    animation: none !important;
  }

  .discount-roulette__wheelFrame.is-spinning .discount-roulette__pointer {
    animation: none !important;
  }

  .discount-roulette__wheelFrame.is-spinning .discount-roulette__hubIcon {
    animation: none !important;
  }
}

.discount-roulette__btn {
  width: 100%;
  max-width: 20rem;
  min-width: 15rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: clamp(1.02rem, 3.4vw, 1.22rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.discount-roulette__btn--redeemed {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  cursor: default;
}

.discount-roulette__result {
  width: 100%;
  text-align: center;
  padding: 0.65rem 0.5rem 0;
}

.discount-roulette__resultLabel {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.discount-roulette__codeRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.discount-roulette__code {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--dr-bg, #f5d000);
  border: 2px solid rgba(15, 23, 42, 0.2);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.discount-roulette__applyBtn {
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.discount-roulette__applyBtn--done.btn--primary {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important;
  border: none !important;
  color: #fff !important;
  cursor: default;
}

.discount-roulette__hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.35;
}

.discount-roulette__err {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b91c1c;
  text-align: center;
}

/* Aviso após aplicar cupom da roleta (vitrine) */
.loja-discount-toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 10080;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm, 12px);
  background: linear-gradient(165deg, #0d9488 0%, #0f766e 55%, #0b4f4a 100%);
  color: #ecfdf5;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%) translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.42s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
    opacity 0.32s ease;
}

body.site--tabbar .loja-discount-toast {
  bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

body.site.site--snackbar.site--tabbar .loja-discount-toast {
  bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px));
}

.loja-discount-toast.loja-discount-toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Admin — pré-visualização da roleta */
.dr-admin-preview {
  max-width: 400px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.22);
}

.dr-admin-preview__card.discount-roulette {
  margin: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}

.dr-admin-preview__frame.discount-roulette__wheelFrame {
  width: min(78vw, 240px) !important;
  padding-bottom: min(78vw, 240px) !important;
}

.dr-admin-preview__slice.discount-roulette__sliceTxt {
  font-size: clamp(0.48rem, 1.35vw, 0.72rem) !important;
}

.dr-admin-preview__fakebtn {
  display: block;
  width: 100%;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-top: 0.65rem;
  padding: 0.75rem 1.25rem;
  min-height: 2.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-admin, #f8fafc);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 800;
}

/* Faixa horizontal de categorias — chips estilo app 2024+ */
.category-rail {
  margin: 0 0 1.25rem;
  margin-left: max(-1rem, calc(-1 * env(safe-area-inset-left, 0px)));
  margin-right: max(-1rem, calc(-1 * env(safe-area-inset-right, 0px)));
  padding-bottom: 0.35rem;
  animation: fadeUp 0.55s var(--ease-out-expo) 0.04s both;
  position: relative;
}

.category-rail::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0.35rem;
  width: 2.25rem;
  background: linear-gradient(90deg, transparent, rgba(6, 8, 12, 0.85));
  pointer-events: none;
  border-radius: 0 4px 4px 0;
}

.category-rail__track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem max(1rem, env(safe-area-inset-left, 0px)) 0.45rem max(1rem, env(safe-area-inset-right, 0px));
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 0.5rem, #000 calc(100% - 1.75rem), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 0.5rem, #000 calc(100% - 1.75rem), transparent 100%);
}

.category-rail__track::-webkit-scrollbar {
  display: none;
}

.category-rail__chip {
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0.52rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(248, 250, 252, 0.88);
  text-decoration: none !important;
  isolation: isolate;
  background: rgba(30, 38, 52, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition:
    background 0.28s var(--ease-out-expo),
    border-color 0.28s ease,
    color 0.28s ease,
    transform 0.25s var(--ease-spring),
    box-shadow 0.28s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.category-rail__chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 52%);
  pointer-events: none;
  z-index: -1;
}

.category-rail__chip:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.category-rail__chip:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px rgba(var(--accent-rgb), 0.35),
    0 4px 18px rgba(var(--accent-rgb), 0.2);
}

.category-rail__chip:active {
  transform: scale(0.97);
}

.category-rail__chip.is-active {
  color: #042f2e;
  font-weight: 700;
  border-color: rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(145deg, var(--accent-hover) 0%, var(--accent) 42%, var(--accent2) 100%);
  box-shadow:
    0 4px 22px rgba(var(--accent-rgb), 0.38),
    0 0 32px rgba(var(--accent-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.category-rail__chip.is-active::before {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
}

.category-rail__chip.is-active:hover {
  color: #022c22;
  filter: brightness(1.04);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Chip “Promoções” — destaque na faixa de categorias (roxo / magenta) */
.category-rail__chip--promo {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  padding-left: 0.85rem;
  padding-right: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #faf5ff !important;
  border: 1px solid rgba(232, 121, 249, 0.45);
  background: linear-gradient(145deg, #7c3aed 0%, #a855f7 32%, #d946ef 68%, #db2777 100%);
  box-shadow:
    0 2px 18px rgba(124, 58, 237, 0.55),
    0 0 32px rgba(217, 70, 239, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: category-rail-promo-pulse 2.4s ease-in-out infinite;
}

.category-rail__chip--promo::before {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, transparent 52%);
}

.category-rail__chip--promo:hover {
  color: #fff !important;
  filter: brightness(1.08) saturate(1.05);
  border-color: rgba(244, 114, 182, 0.65);
  transform: scale(1.03);
  box-shadow:
    0 4px 26px rgba(124, 58, 237, 0.62),
    0 0 44px rgba(217, 70, 239, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.category-rail__chip--promo:focus-visible {
  outline: none;
  border-color: #f0abfc;
  box-shadow:
    0 0 0 3px rgba(168, 85, 247, 0.65),
    0 4px 22px rgba(124, 58, 237, 0.5);
}

.category-rail__chip--promo:active {
  transform: scale(0.98);
}

.category-rail__chip-promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  margin-right: 0.35rem;
  font-size: 0.72em;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
  border-radius: 50%;
  color: #faf5ff;
  background: linear-gradient(160deg, #4c1d95 0%, #312e81 100%);
  box-shadow: 0 1px 5px rgba(49, 46, 129, 0.65);
}

@keyframes category-rail-promo-pulse {
  0%,
  100% {
    box-shadow:
      0 2px 18px rgba(124, 58, 237, 0.48),
      0 0 28px rgba(217, 70, 239, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  50% {
    box-shadow:
      0 3px 26px rgba(124, 58, 237, 0.68),
      0 0 46px rgba(217, 70, 239, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-rail__chip--promo {
    animation: none;
  }
}

.category-rail__chip--muted {
  opacity: 0.9;
  font-weight: 500;
}

.store-promo-banner {
  margin: 0.65rem 0 0.15rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  background: rgba(30, 38, 52, 0.42);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.store-promo-banner a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none !important;
}

.store-promo-banner a:hover {
  text-decoration: underline !important;
}

.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.65rem max(1rem, env(safe-area-inset-left, 0px)) 2rem max(1rem, env(safe-area-inset-right, 0px));
}

.store-intro {
  margin-bottom: 1.35rem;
  animation: fadeUp 0.55s var(--ease-out-expo) both;
}

.store-intro--hero {
  position: relative;
  padding: 1.1rem 1.1rem 1.05rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(155deg, rgba(22, 30, 42, 0.92) 0%, rgba(14, 18, 26, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.store-intro--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb), 0.1) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .store-intro--hero::before {
    animation: heroGlow 10s ease-in-out infinite;
  }
}

@keyframes heroGlow {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-8%, 4%);
  }
}

.store-intro__title {
  position: relative;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(105deg, #fff 0%, #e2e8f0 48%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.store-intro--hero > :not(.visually-hidden) {
  position: relative;
  z-index: 1;
}

.store-intro__desc {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.store-intro__desc--lead {
  margin: 0;
  font-size: clamp(1.02rem, 2.8vw, 1.14rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.94;
}

.store-intro__tagline {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.48rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.store-intro__panels {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.store-intro__panels .store-live-hours,
.store-intro__panels .store-intro__hours-wrap {
  margin-top: 0;
}

.store-intro__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.store-intro__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform 0.18s var(--ease-spring),
    box-shadow 0.2s ease,
    filter 0.15s ease;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 45%, var(--accent2) 100%);
  color: #042f2e;
  box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.35);
}

.store-intro__cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.42);
}

.store-intro__cta:active {
  transform: scale(0.97);
}

.store-intro__cta--ghost {
  background: rgba(15, 23, 42, 0.35);
  color: var(--text);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  box-shadow: none;
}

.store-intro__cta--ghost:hover {
  filter: none;
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.store-live-hours {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.45);
  max-width: 100%;
  min-height: 100%;
}

.store-live-hours__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.store-live-hours__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.store-live-hours__headline {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.store-live-hours__detail {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.store-live-hours--open {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
}

.store-live-hours--open .store-live-hours__dot {
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .store-live-hours--open .store-live-hours__dot {
    animation: storeLivePulse 2s ease-in-out infinite;
  }
}

@keyframes storeLivePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12);
  }
}

.store-live-hours--closed {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
}

.store-live-hours--closed .store-live-hours__dot {
  background: var(--warn);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

.store-live-hours--unknown .store-live-hours__dot {
  background: #94a3b8;
}

.store-intro__hours-wrap {
  position: relative;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  min-height: 100%;
}

.store-intro__hours-icon {
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.store-intro__hours {
  margin: 0;
  font-size: 0.88rem;
  color: var(--accent-hover);
  line-height: 1.45;
}

.section {
  margin-bottom: 2rem;
  scroll-margin-top: calc(4.25rem + env(safe-area-inset-top, 0px));
}

.section--reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}

.section--reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section__title-text {
  position: relative;
  padding-bottom: 0.4rem;
}

.section__title-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.15));
  transform-origin: left;
  transform: scaleX(1);
}

.section--reveal:not(.is-inview) .section__title-text::after {
  transform: scaleX(0);
}

.section--reveal.is-inview .section__title-text::after {
  animation: titleLineGrow 0.8s var(--ease-out-expo) 0.12s both;
}

@keyframes titleLineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.grid-products {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card-product {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.85rem;
  min-width: 0;
  background: linear-gradient(160deg, var(--surface) 0%, rgba(16, 22, 31, 0.92) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: var(--shadow);
  animation: none;
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.card-product:focus {
  outline: none;
}

.card-product:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-product:nth-child(1) {
  animation-delay: 0.04s;
}
.card-product:nth-child(2) {
  animation-delay: 0.08s;
}
.card-product:nth-child(3) {
  animation-delay: 0.12s;
}
.card-product:nth-child(4) {
  animation-delay: 0.16s;
}
.card-product:nth-child(5) {
  animation-delay: 0.2s;
}
.card-product:nth-child(6) {
  animation-delay: 0.24s;
}
.card-product:nth-child(n + 7) {
  animation-delay: 0.28s;
}

.section--reveal.is-inview .card-product {
  animation-name: fadeUp;
  animation-duration: 0.55s;
  animation-timing-function: var(--ease-out-expo);
  animation-fill-mode: both;
}

.card-product:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

.card-product:active {
  transform: translateY(0) scale(0.97);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(var(--accent-rgb), 0.15);
}

.card-product:active .card-product__media img {
  transform: scale(1.05);
}

.card-product--pressed:not(:active) {
  transform: translateY(-2px) scale(0.99);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.card-product--pressed:not(:active) .card-product__media img {
  transform: scale(1.04);
}

.card-product--pop {
  animation: cardAdded 0.55s var(--ease-spring) both !important;
}

@keyframes cardAdded {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 24px var(--accent-glow);
  }
  100% {
    transform: scale(1);
  }
}

.card-product__media {
  position: relative;
  background: var(--surface2);
  min-height: 100px;
  min-width: 0;
  overflow: hidden;
  align-self: stretch;
}

.product-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  max-width: calc(100% - 0.9rem);
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.product-badge--novo {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  color: #022c22;
}

.product-badge--destaque {
  background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
  color: #422006;
}

.product-badge--promo {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: #fff;
}

.product-badge--top {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-deep) 100%);
  color: #042f2e;
}

.product-badge--modal {
  position: static;
  display: inline-block;
  margin: 0.35rem 0 0;
  max-width: none;
  width: fit-content;
  font-size: 0.68rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.card-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
  /* Toque vai para o <article> — evita falha de clique em Safari/Chrome no celular */
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.card-product:hover .card-product__media img {
  transform: scale(1.06);
}

.card-product__placeholder {
  height: 100%;
  min-height: 100px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  opacity: 0.5;
  pointer-events: none;
}

.card-product__body {
  padding: 0.65rem 0.75rem 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.card-product__name {
  margin: 0;
  font-size: 1rem;
}

.card-product__desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-product__row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.35rem;
}

.card-product__price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
  min-width: 0;
}

.card-product__price-compare {
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: line-through;
  color: var(--muted);
  line-height: 1.2;
}

.card-product__price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  min-width: 0;
  line-height: 1.2;
}

/* Indicador “adicionar” (o card inteiro continua clicável; aria no <article>) */
.card-product__add {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-hover) 0%, var(--accent) 42%, var(--accent-deep) 100%);
  box-shadow:
    0 3px 14px rgba(var(--accent-rgb), 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 0.25s var(--ease-spring),
    box-shadow 0.22s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.card-product__add-label {
  display: none;
}

/* Loja: texto “Adicionar” + ícone em telas maiores (mobile continua só o círculo com +) */
.card-product__add:has(.card-product__add-label) .card-product__add-icon {
  display: inline;
  line-height: 1;
}

@media (min-width: 768px) {
  .card-product__add:has(.card-product__add-label) {
    width: auto;
    min-width: 2.35rem;
    padding: 0 0.65rem 0 0.72rem;
    gap: 0.32rem;
    border-radius: 999px;
  }

  .card-product__add:has(.card-product__add-label) .card-product__add-label {
    display: inline;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
  }

  .card-product__add:has(.card-product__add-label) .card-product__add-icon {
    font-size: 1.18rem;
  }
}

.card-product:hover .card-product__add {
  transform: scale(1.08);
  box-shadow:
    0 4px 18px rgba(var(--accent-rgb), 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.card-product:active .card-product__add {
  transform: scale(0.94);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.9rem 1rem;
  font-size: 1rem;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 40%, var(--accent2) 100%);
  color: #042f2e;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.25);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-out-expo);
  pointer-events: none;
}

.btn--primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.35);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn--block {
  width: 100%;
}

.btn--danger {
  background: rgba(248, 113, 113, 0.2);
  color: var(--danger);
}

.fab-wa {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1rem + var(--safe-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3ae374, #25d366);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 40;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  text-decoration: none;
  animation: fabPulse 3.5s ease-in-out infinite;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.fab-wa svg {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.fab-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55), 0 6px 16px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

@keyframes fabPulse {
  0%,
  100% {
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.35);
  }
}

/* Barra inferior tipo app (celular e desktop) */
@keyframes tabBadgeBump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.app-tabbar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 48;
  min-height: var(--app-tabbar-h);
  padding: 0.35rem max(0.5rem, env(safe-area-inset-left, 0px)) calc(0.35rem + env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-right, 0px));
  align-items: stretch;
  justify-content: space-around;
  gap: 0.25rem;
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.app-tabbar__item {
  flex: 1;
  max-width: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem 0.25rem;
  margin: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--ease-spring);
}

.app-tabbar__item:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
  text-decoration: none;
}

.app-tabbar__item:active {
  transform: scale(0.94);
}

.app-tabbar__item.is-active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.app-tabbar__item.is-active .app-tabbar__icon {
  color: var(--accent);
}

.app-tabbar__icon {
  display: grid;
  place-items: center;
  color: currentColor;
  transition: transform 0.25s var(--ease-spring);
}

.app-tabbar__item.is-active .app-tabbar__icon {
  transform: translateY(-1px);
}

.app-tabbar__label {
  line-height: 1.1;
  text-align: center;
}

.app-tabbar__badge {
  position: absolute;
  top: 0.15rem;
  right: calc(50% - 1.35rem);
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent2));
  color: #042f2e;
  font-size: 0.58rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.4);
  transition: transform 0.25s var(--ease-spring);
}

.app-tabbar__badge.badge--bump {
  animation: tabBadgeBump 0.45s var(--ease-spring) both;
}

body.site.site--tabbar {
  padding-bottom: calc(var(--app-tabbar-h) + 0.85rem + var(--safe-bottom));
}

body.site.site--tabbar.site--snackbar {
  padding-bottom: calc(var(--app-tabbar-h) + 5.35rem + var(--safe-bottom));
}

body.site.site--tabbar .cart-snackbar {
  bottom: calc(var(--app-tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: 0;
}

body.site.site--tabbar .fab-wa {
  bottom: calc(var(--app-tabbar-h) + 0.85rem + var(--safe-bottom));
}

body.site.site--tabbar.site--snackbar .fab-wa {
  bottom: calc(var(--app-tabbar-h) + 5.35rem + var(--safe-bottom));
}

@media (min-width: 768px) {
  .app-tabbar {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    justify-content: center;
    gap: 0.5rem;
  }

  .app-tabbar__item {
    flex: 0 1 auto;
    min-width: 5.5rem;
    max-width: 11rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }

  .app-tabbar__icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 479px) {
  body.site.site--tabbar:not(.site--snackbar) {
    padding-bottom: calc(var(--app-tabbar-h) + 1rem + var(--safe-bottom));
  }

  body.site.site--tabbar.site--snackbar {
    padding-bottom: calc(var(--app-tabbar-h) + 5.75rem + var(--safe-bottom));
  }
}

/* Modal montagem — estilo “folha” tipo apps de delivery (claro, lista, barra fixa) */
.pv-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pv-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.pv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Telemóvel: folha em tela cheia (sem faixa do backdrop em cima) */
.pv-modal__panel--sheet {
  position: absolute;
  inset: 0;
  width: 100%;
  max-height: none;
  height: auto;
  min-height: 0;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top, 0);
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transform: translateY(105%);
  transition: transform 0.38s var(--ease-out-expo);
  color: #0f172a;
}

.pv-modal.is-open .pv-modal__panel--sheet {
  transform: translateY(0);
}

.pv-modal__grab {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: #e2e8f0;
  margin: 0.5rem auto 0.15rem;
  flex-shrink: 0;
}

.pv-modal__head--sheet {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem 0.65rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.pv-modal__head-text {
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem;
}

.pv-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #0f172a;
}

.pv-modal__from {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.pv-icon-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.pv-icon-btn:active {
  background: #e2e8f0;
}

.pv-modal__hero {
  width: 100%;
  max-height: min(48vh, 300px);
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
}

.pv-modal__hero img {
  max-width: 100%;
  max-height: min(44vh, 280px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.pv-modal__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem 0.85rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}

/* Itens simples: corpo não estica — evita faixa vazia entre foto e barra */
.pv-modal.pv-modal--simple .pv-modal__body {
  flex: 0 0 auto;
  flex-grow: 0;
  min-height: 0;
  padding: 0;
  overflow: visible;
}

.pv-modal.pv-modal--simple .pv-modal__head--sheet {
  border-bottom-color: transparent;
  padding-bottom: 0.45rem;
}

.pv-modal.pv-modal--simple .pv-modal__from {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.pv-modal.pv-modal--simple .pv-modal__hero {
  max-height: min(54vh, 340px);
  padding: 0.35rem 0 0.85rem;
  margin-top: -0.2rem;
  background: linear-gradient(180deg, #e8edf4 0%, #f4f7fb 38%, #ffffff 100%);
}

.pv-modal.pv-modal--simple .pv-modal__hero img {
  max-height: min(48vh, 300px);
  filter: drop-shadow(0 12px 32px rgba(15, 23, 42, 0.09));
}

.pv-simple-bar-intro {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.85rem 0.15rem;
  background: #fff;
  border-top: 1px solid #e8ecf1;
}

.pv-simple-bar-intro__title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

.pv-simple-bar-intro__hint {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #94a3b8;
  font-weight: 500;
}

.pv-simple-bar-intro__hint strong {
  color: #64748b;
  font-weight: 700;
}

.pv-step {
  margin-bottom: 1rem;
}

.pv-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.pv-section-head__text {
  min-width: 0;
}

.pv-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.pv-section-sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.pv-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
}

.pv-count {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.pv-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.pv-row:active {
  background: #f8fafc;
}

.pv-row.is-selected {
  border-color: rgba(var(--accent-deep-rgb), 0.55);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
  background: #f0fdfa;
}

.pv-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pv-row__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.pv-row__extra {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

.pv-row__slot {
  flex-shrink: 0;
}

.pv-radio {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.pv-row.is-selected .pv-radio {
  border-color: var(--accent-deep);
  box-shadow: inset 0 0 0 5px var(--accent-deep);
}

.pv-check {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  box-sizing: border-box;
  position: relative;
}

.pv-row.is-selected .pv-check {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
}

.pv-row.is-selected .pv-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.pv-link-back {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-deep);
  cursor: pointer;
  touch-action: manipulation;
}

.pv-modal__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid #e8ecf1;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.05);
}

.pv-modal.pv-modal--simple .pv-modal__bar {
  border-top: none;
  padding-top: 0.35rem;
}

.pv-qty {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  min-height: 50px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.pv-qty__btn {
  flex: 0 0 46px;
  width: 46px;
  min-height: 50px;
  border: none;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  font-size: 1.28rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  touch-action: manipulation;
  line-height: 1;
}

.pv-qty__btn--plus {
  color: var(--accent-deep);
}

.pv-qty__val {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0 0.25rem;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  background: #fff;
}

.pv-add-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0 1rem;
  min-height: 50px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-deep) 100%);
  color: #042f2e;
  font-weight: 700;
  box-shadow:
    0 4px 18px rgba(var(--accent-deep-rgb), 0.32),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
  transition:
    filter 0.15s ease,
    opacity 0.15s ease,
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s ease;
}

.pv-add-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.pv-add-btn:not(:disabled):active {
  transform: scale(0.98);
  filter: brightness(0.97);
  box-shadow: 0 2px 10px rgba(var(--accent-deep-rgb), 0.25);
}

.pv-add-btn__label {
  font-size: 0.95rem;
}

.pv-add-btn__price {
  font-size: 0.95rem;
  font-weight: 800;
}

/* Só ecrãs “desktop”: telemóveis em landscape costumam ter >520px e ficavam com cartão ao centro */
@media (min-width: 1024px) {
  .pv-modal__panel--sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(100% - 2rem, 420px);
    max-height: min(88vh, 640px);
    max-height: min(88dvh, 640px);
    height: auto;
    min-height: 0;
    padding-top: 0;
    border-radius: var(--radius);
    transform: translate(-50%, -50%) scale(0.94);
    box-shadow: var(--shadow-lg);
  }

  .pv-modal.is-open .pv-modal__panel--sheet {
    transform: translate(-50%, -50%) scale(1);
  }

  .pv-modal__grab {
    display: none;
  }
}

/* Barra fixa tipo apps de delivery: resumo + “Ver sacola” (só cardápio) */
.cart-snackbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.12);
}

.cart-snackbar__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem max(0.85rem, env(safe-area-inset-left, 0px)) 0.65rem max(0.85rem, env(safe-area-inset-right, 0px));
  max-width: 1200px;
  margin: 0 auto;
}

.cart-snackbar__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
}

.cart-snackbar__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-snackbar__info {
  flex: 1;
  min-width: 0;
}

.cart-snackbar__hint {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 0.12rem;
  font-weight: 500;
}

.cart-snackbar__totals {
  line-height: 1.25;
}

.cart-snackbar__price {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
}

.cart-snackbar__meta {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.cart-snackbar__cta {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.05rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-deep) 100%);
  color: #042f2e;
  font-family: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.15s ease;
}

.cart-snackbar__cta:active {
  filter: brightness(0.94);
}

body.site.site--snackbar {
  padding-bottom: calc(5rem + 5.5rem + var(--safe-bottom));
}

body.site.site--snackbar .fab-wa {
  bottom: calc(5.5rem + var(--safe-bottom));
}

@media (max-width: 479px) {
  body.site.site--snackbar {
    padding-bottom: calc(6.75rem + 5.5rem + var(--safe-bottom));
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}

.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.32s var(--ease-out-expo);
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

/* Alça tipo bottom sheet (só visível no telemóvel) */
.drawer__grab {
  display: none;
}

.drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(100%, 420px);
  max-width: 100%;
  padding-right: env(safe-area-inset-right, 0px);
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--text);
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  border-left: 1px solid rgba(var(--accent-rgb), 0.12);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transform: translateX(104%);
  transition: transform 0.4s var(--ease-out-expo);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.drawer__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.drawer__close {
  border: none;
  background: var(--surface2);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--ease-spring);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.drawer__close:hover {
  background: var(--surface-elevated);
  transform: rotate(90deg);
}

.drawer__close:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.55);
  outline-offset: 2px;
}

.drawer__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem 1rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.drawer__foot {
  padding: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* Loja no telemóvel: alvos de toque, scroll e campos */
@media (max-width: 767px) {
  .nav-actions__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
  }

  .nav-actions__cart {
    width: 48px;
    height: 48px;
  }

  .cart-line__controls button {
    min-width: 44px;
    min-height: 44px;
  }

  .drawer__close {
    min-width: 44px;
    min-height: 44px;
  }

  .drawer__foot .btn--block {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .radio-row input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
  }

  select.input,
  textarea.input {
    font-size: 1rem;
  }

  /* Carrinho: bottom sheet (padrão de apps no telemóvel) */
  .drawer__grab {
    display: block;
    flex-shrink: 0;
    padding: 0.4rem max(1rem, env(safe-area-inset-right, 0px)) 0.2rem max(1rem, env(safe-area-inset-left, 0px));
    touch-action: none;
  }

  .drawer__grab::after {
    content: "";
    display: block;
    width: 40px;
    height: 5px;
    margin: 0 auto;
    border-radius: 100px;
    background: rgba(15, 23, 42, 0.2);
  }

  .drawer__panel {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 0.5rem));
    min-height: min(38dvh, 280px);
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
    border-left: none;
    border-radius: 1.25rem 1.25rem 0 0;
    background: #fff;
    color: #334155;
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12);
    transform: translate3d(0, 110%, 0);
    font-family:
      system-ui,
      -apple-system,
      "Segoe UI",
      Roboto,
      "Helvetica Neue",
      Arial,
      sans-serif;
  }

  .drawer.is-open .drawer__panel {
    transform: translate3d(0, 0, 0);
  }

  .drawer__head {
    position: relative;
    justify-content: center;
    padding: 0.15rem 1rem 0.9rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .drawer__head h2 {
    width: 100%;
    text-align: center;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0 3.25rem;
    font-family: inherit;
    color: #0f172a;
  }

  .drawer__close {
    position: absolute;
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    width: 44px;
    height: 44px;
  }

  .drawer__close:hover {
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.1);
  }

  .drawer__close:active {
    transform: translateY(-50%) scale(0.96);
  }

  .drawer__body {
    padding: 0.35rem max(1rem, env(safe-area-inset-left, 0px)) 0.75rem max(1rem, env(safe-area-inset-right, 0px));
  }

  .drawer__foot {
    flex-shrink: 0;
    padding: 0.85rem max(1rem, env(safe-area-inset-left, 0px)) max(0.85rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-right, 0px));
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 -6px 28px rgba(15, 23, 42, 0.07);
  }

  .drawer__foot .drawer__total span {
    color: #64748b;
  }

  .drawer__foot .drawer__total strong {
    color: #0f172a;
  }

  .drawer__foot .btn--block {
    min-height: 50px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .drawer .cart-line-wrap {
    border-bottom-color: rgba(15, 23, 42, 0.08);
  }

  .drawer .cart-line strong {
    color: #0f172a;
  }

  .drawer .cart-line__unit {
    color: #64748b;
  }

  .drawer .cart-line__controls button {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
  }

  .drawer .cart-line__controls button:hover {
    background: #e2e8f0;
    border-color: rgba(var(--accent-rgb), 0.35);
  }

  .drawer .cart-line__sub {
    color: #0f172a;
  }

  .drawer .cart-empty {
    color: #64748b;
  }

  .drawer .cart-empty__title {
    color: #0f172a;
  }

  .drawer .cart-empty__hint {
    color: #64748b;
  }

  @supports not (height: 100dvh) {
    .drawer__panel {
      max-height: min(92vh, calc(100vh - env(safe-area-inset-top, 0px) - 0.5rem));
      min-height: min(38vh, 280px);
    }
  }
}

.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.drawer__total span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.drawer__total strong {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-line-wrap {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
}

.cart-line-wrap:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0 0.2rem;
  border-bottom: none;
  font-size: 0.9375rem;
  line-height: 1.35;
  animation: cartLineIn 0.4s var(--ease-out-expo) both;
}

.cart-line strong {
  color: var(--text);
  font-weight: 700;
}

.cart-line__unit {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes cartLineIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-line__controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-line__controls button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cart-line__controls button:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: var(--surface-elevated);
}

.cart-line__controls button:active {
  transform: scale(0.92);
}

.cart-line__controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.cart-line__sub {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  margin-bottom: 0.35rem;
  padding-right: 0.05rem;
}

.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 0;
}

.cart-empty--panel {
  padding: 1.75rem 0.5rem 2rem;
  max-width: 280px;
  margin: 0 auto;
}

.cart-empty__icon {
  display: block;
  font-size: 2.35rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.85;
  filter: grayscale(0.2);
}

.cart-empty__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cart-empty__hint {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.cart-empty__cta {
  min-height: 46px;
}

.page-narrow {
  max-width: 480px;
  margin: 0 auto;
}

.page-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.form-checkout .fieldset {
  margin-bottom: 1rem;
}

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.checkout-steps__item {
  font-weight: 500;
}

.checkout-steps__item.is-active {
  color: var(--text, inherit);
}

.checkout-steps__sep {
  opacity: 0.55;
}

.checkout-back-wrap {
  margin: 0 0 1rem;
}

.checkout-back {
  font-size: 0.95rem;
  text-decoration: none;
}

.checkout-back:hover {
  text-decoration: underline;
}

.checkout-recap {
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: var(--radius, 8px);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--surface-2, rgba(0, 0, 0, 0.03));
}

.checkout-recap__title {
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.checkout-recap__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkout-recap__list li {
  margin-bottom: 0.35rem;
}

.checkout-recap__list li:last-child {
  margin-bottom: 0;
}

.checkout-recap__k {
  display: inline-block;
  min-width: 5.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-right: 0.35rem;
}

.fieldset legend {
  font-weight: 600;
  padding: 0 0.25rem;
  margin-bottom: 0.35rem;
}

/* Checkout — forma de pedido: botões lado a lado (ícone + nome curto) */
.fieldset--order-type {
  margin-bottom: 1rem;
}

.fieldset--order-type .order-type-legend {
  float: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0;
  margin: 0 0 0.5rem;
}

.order-type-btns {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.45rem;
}

.order-type-btns--single {
  max-width: 9rem;
}

.order-type-btn {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem 0.3rem;
  margin: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--surface2);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font: inherit;
  color: inherit;
}

.order-type-btn:hover {
  border-color: rgba(148, 163, 184, 0.3);
  background: var(--surface);
}

.order-type-btn.is-selected,
.order-type-btn:has(.order-type-btn__input:checked) {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.07);
}

.order-type-btn:focus-within {
  outline: 1px solid rgba(var(--accent-rgb), 0.35);
  outline-offset: 2px;
}

.order-type-btn__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  border: 0;
  opacity: 0;
}

.order-type-btn__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.order-type-btn__text {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
}

.order-type-btn--static {
  cursor: default;
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.06);
}

.order-type-btn--static:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.06);
}

@media (max-width: 640px) {
  .order-type-btn.is-selected,
  .order-type-btn:has(.order-type-btn__input:checked) {
    border-width: 2px;
    border-color: rgba(var(--accent-rgb), 0.65);
    background: rgba(var(--accent-rgb), 0.16);
    box-shadow:
      0 0 0 3px rgba(var(--accent-rgb), 0.22),
      0 2px 10px rgba(var(--accent-rgb), 0.12);
  }

  .order-type-btn__text {
    font-weight: 700;
  }
}

@media (max-width: 360px) {
  .order-type-btns {
    gap: 0.35rem;
  }

  .order-type-btn {
    padding: 0.45rem 0.2rem;
  }

  .order-type-btn__text {
    font-size: 0.7rem;
  }

  .order-type-btn__icon {
    font-size: 1.15rem;
  }
}

/* Checkout — pagamento em botões */
.fieldset--payment-method {
  margin-bottom: 1rem;
  border: 0;
  padding: 0;
  min-width: 0;
}

.fieldset--payment-method .order-type-legend {
  float: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0;
  margin: 0 0 0.5rem;
}

.payment-method-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.payment-method-btn {
  position: relative;
  flex: 1 1 calc(50% - 0.23rem);
  min-width: 6.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.65rem 0.45rem;
  margin: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--surface2);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font: inherit;
  color: inherit;
}

.payment-method-btn:hover {
  border-color: rgba(148, 163, 184, 0.3);
  background: var(--surface);
}

.payment-method-btn.is-selected,
.payment-method-btn:has(.payment-method-btn__input:checked) {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.07);
}

.payment-method-btn:focus-within {
  outline: 1px solid rgba(var(--accent-rgb), 0.35);
  outline-offset: 2px;
}

.payment-method-btn__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  border: 0;
  opacity: 0;
}

.payment-method-btn__text {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

@media (min-width: 480px) {
  .payment-method-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .payment-method-btn.is-selected,
  .payment-method-btn:has(.payment-method-btn__input:checked) {
    border-width: 2px;
    border-color: rgba(var(--accent-rgb), 0.65);
    background: rgba(var(--accent-rgb), 0.14);
    box-shadow:
      0 0 0 3px rgba(var(--accent-rgb), 0.2),
      0 2px 10px rgba(var(--accent-rgb), 0.1);
  }

  .payment-method-btn__text {
    font-weight: 700;
  }
}

.order-type-fee {
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-left: 2px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(148, 163, 184, 0.04);
}

.order-type-fee__title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.order-type-fee__val {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.order-type-fee__note {
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--muted);
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--surface2);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem; /* ≥16px evita zoom automático no foco (iOS Safari) */
}

.input:focus {
  outline: 2px solid rgba(var(--accent2-rgb), 0.45);
  border-color: var(--accent);
}

.input--area {
  resize: vertical;
  min-height: 80px;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.checkout-geo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.checkout-geo-hint {
  flex: 1;
  min-width: 140px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.checkout-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.75rem;
  margin-bottom: 0.25rem;
}

.checkout-address-grid--cep {
  grid-template-columns: 1fr;
  max-width: 320px;
}

.checkout-cep-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.checkout-cep-inline .input {
  flex: 1;
  min-width: 120px;
}

.checkout-coupon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.checkout-coupon-row .input {
  flex: 1;
  min-width: 140px;
}

@media (max-width: 520px) {
  .checkout-address-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-summary {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.sum-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sum-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.sum-list--plain li:last-child {
  border-bottom: none;
}

.sum-total {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.sum-total--grand {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-weight: 700;
  font-size: 1.1rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert--err {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.alert--warn {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.alert--ok {
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: #99f6e4;
}

.empty-msg {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  animation: fadeUp 0.5s var(--ease-out-expo) both;
}

.order-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.order-list__item {
  margin-bottom: 0.65rem;
}

.order-list__item a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.order-list__item a:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.order-list__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.order-list__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.pill--novo {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}
.pill--em_preparo {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
}
.pill--saiu_entrega {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
}
.pill--finalizado {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.pill--cancelado {
  background: rgba(248, 113, 113, 0.18);
  color: #fca5a5;
}

.pill--sem_status {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.pill--desconhecido {
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
}

.order-status-big {
  margin: 0.5rem 0 1rem;
  font-size: 0.8rem;
}

.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.detail-list dt {
  color: var(--muted);
  margin: 0;
}

.detail-list dd {
  margin: 0;
}

.subheading {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.notes-box {
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin: 0;
}

.track-meta,
.track-refresh {
  margin-top: 1rem;
}

/* ——— Acompanhar pedido (track.php) ——— */
.track-page {
  padding-top: 0.35rem;
}

.track-page__hero {
  text-align: center;
  margin-bottom: 1.35rem;
  padding: 0 0.35rem;
}

.track-page__icon {
  display: block;
  margin: 0 auto 0.65rem;
  font-size: 2.15rem;
  line-height: 1;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
}

.track-page__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 4.5vw, 1.68rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.track-page__lead {
  margin: 0;
  max-width: 26rem;
  margin-inline: auto;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.track-page__lead strong {
  color: var(--text);
  font-weight: 600;
}

.track-page__alert {
  margin-bottom: 1rem;
}

.track-card {
  margin-bottom: 1.35rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: calc(var(--radius) + 5px);
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
}

.track-card__label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.track-page__form .fieldset {
  margin-bottom: 0.85rem;
}

.track-page__session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), 0.09);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.track-phone-pill {
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.track-page__change-phone {
  font-size: 0.875rem;
  font-weight: 600;
}

.track-page__section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.track-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.order-list--track {
  margin-top: 0;
}

.order-list__item .order-list__link {
  display: flex;
  align-items: center;
  width: 100%;
}

.order-list__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

.order-list__main {
  flex: 1;
  min-width: 0;
}

.order-list__number {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.order-list__dot {
  margin: 0 0.2rem;
  opacity: 0.65;
}

.order-list__chevron {
  flex-shrink: 0;
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  opacity: 0.55;
  margin-right: -0.15rem;
}

.track-empty {
  text-align: center;
  padding: 1.75rem 1rem 1.5rem;
  border-radius: calc(var(--radius) + 5px);
  background: var(--surface);
  border: 1px dashed rgba(148, 163, 184, 0.28);
}

.track-empty__icon {
  font-size: 2.35rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.track-empty__title {
  margin: 0 0 0.4rem;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
}

.track-empty__text {
  margin: 0 0 1.1rem;
  max-width: 17.5rem;
  margin-inline: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.track-page__hint {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.track-page__cta-bottom {
  margin: 0.85rem 0 0;
}

.track-refresh .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.track-refresh__ic {
  font-size: 1.15rem;
  line-height: 1;
}

/* Acompanhar pedido: menos rodapé + lista confortável no celular */
body.site.site--track {
  padding-bottom: calc(1.75rem + var(--safe-bottom));
}

@media (max-width: 479px) {
  body.site.site--track {
    padding-bottom: calc(2.25rem + var(--safe-bottom));
  }
}

/* Com tab bar: track não fica com o padding curto de “só track” */
body.site.site--track.site--tabbar {
  padding-bottom: calc(var(--app-tabbar-h) + 0.85rem + var(--safe-bottom));
}

body.site.site--track.site--tabbar.site--snackbar {
  padding-bottom: calc(var(--app-tabbar-h) + 5.35rem + var(--safe-bottom));
}

@media (max-width: 479px) {
  body.site.site--track.site--tabbar:not(.site--snackbar) {
    padding-bottom: calc(var(--app-tabbar-h) + 1rem + var(--safe-bottom));
  }

  body.site.site--track.site--tabbar.site--snackbar {
    padding-bottom: calc(var(--app-tabbar-h) + 5.75rem + var(--safe-bottom));
  }
}

.site--track .order-list__item .order-list__link {
  min-height: 3.35rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.site--track .form-checkout .btn--block,
.site--track .form-checkout .btn--primary {
  min-height: 48px;
}

.site--track .track-page__change-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
}

.site--track .track-refresh .btn {
  min-height: 48px;
}

/* Pós-checkout: abrir WhatsApp (mesmo shell que “Acompanhar”) */
.wa-handoff__status {
  margin-bottom: 1.25rem;
}

.wa-handoff__actions {
  margin: 0 0 0.5rem;
}

.wa-handoff__secondary {
  margin-top: 0.75rem;
}

.site--track .wa-handoff .btn--primary.btn--block {
  min-height: 48px;
}

.site--track .wa-handoff__secondary .link-muted {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
}

.link-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site {
    animation: none;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    background-size: auto;
  }

  /* fadeUp usa fill-mode both: sem isto o bloco fica opacity:0 (invisível no celular com “reduzir movimento”) */
  .store-sheet,
  .category-rail,
  .hero-banner img,
  .store-intro,
  .empty-msg {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .category-rail__track {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .category-rail::after {
    display: none;
  }

  .store-intro__cta:active {
    transform: none;
  }

  .store-intro--hero::before,
  .fab-wa {
    animation: none;
  }

  .fab-wa:hover {
    transform: scale(1.05);
  }

  .section--reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section--reveal .section__title-text::after {
    transform: scaleX(1);
    animation: none !important;
  }

  .card-product,
  .card-product:hover,
  .card-product:active,
  .card-product--pressed,
  .card-product--pop {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .card-product:hover .card-product__media img,
  .card-product:active .card-product__media img,
  .card-product--pressed .card-product__media img {
    transform: none;
  }

  .card-product:hover .card-product__add,
  .card-product:active .card-product__add {
    transform: none !important;
  }

  .app-tabbar__item:active,
  .app-tabbar__item.is-active .app-tabbar__icon {
    transform: none;
  }

  .app-tabbar__badge.badge--bump {
    animation: none !important;
  }

  .pv-add-btn:not(:disabled):active {
    transform: none;
  }

  .btn--primary::after {
    display: none;
  }

  .cart-line {
    animation: none;
  }

  .drawer__panel {
    transition-duration: 0.2s;
  }

  .order-list__item a:hover {
    transform: none;
    box-shadow: none;
  }

  .nav-actions__link:active {
    transform: none;
  }
}

@media (max-width: 479px) {
  /* Área mínima de toque (Apple HIG) + espaço para não coincidir com o FAB do WhatsApp */
  body.site {
    padding-bottom: calc(6.75rem + var(--safe-bottom));
  }

}

@media (min-width: 480px) {
  .grid-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .card-product {
    grid-template-columns: 1fr;
  }

  .card-product__media {
    aspect-ratio: 4/3;
  }

  .card-product__body {
    padding: 0.75rem 0.85rem 0.85rem;
  }
}

/* ——— Admin (painel vendedor) ——— */
body.admin-body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(165deg, #06080c 0%, #0a1218 38%, #0c1614 55%, #080a0f 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  padding-bottom: 2.5rem;
  -webkit-font-smoothing: antialiased;
}

body.admin-body .admin-wrap a:not(.admin-nav__link):not(.btn-admin):not(.btn-admin--light):not(.btn-admin--danger):not(.admin-icon-btn):not(.admin-orders-chip) {
  color: var(--accent);
}

body.admin-body .admin-wrap a:not(.admin-nav__link):not(.btn-admin):not(.btn-admin--light):not(.btn-admin--danger):not(.admin-icon-btn):not(.admin-orders-chip):hover {
  color: var(--accent-hover);
}

/* PDV (admin): faixa horizontal + grade fluida (preenche a largura) */
body.admin-body .admin-pdv-store-wrap .grid-products {
  display: grid !important;
  flex-direction: unset !important;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}

body.admin-body .admin-pdv-store-wrap .card-product {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  grid-template-columns: unset !important;
  gap: 0.45rem;
  padding: 0.4rem 0.45rem 0.4rem 0.4rem;
  min-height: 0;
  min-width: 0;
  border-radius: 0.5rem;
}

body.admin-body .admin-pdv-store-wrap .card-product__media {
  position: relative;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  max-height: 2.75rem;
  border-radius: 0.38rem;
  align-self: center;
}

body.admin-body .admin-pdv-store-wrap .card-product__media img {
  object-fit: contain;
  padding: 0.1rem;
}

body.admin-body .admin-pdv-store-wrap .card-product__placeholder {
  min-height: 2.75rem;
  height: 2.75rem;
  font-size: 1.1rem;
}

body.admin-body .admin-pdv-store-wrap .card-product__pdv-tag {
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 3;
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.28rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep, #0d9488) 100%);
  color: #fff;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

body.admin-body .admin-pdv-store-wrap .card-product__body {
  flex: 1;
  min-width: 0;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.06rem;
}

body.admin-body .admin-pdv-store-wrap .card-product__name {
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--text, #f8fafc);
}

body.admin-body .admin-pdv-store-wrap .card-product__desc {
  font-size: 0.62rem;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

body.admin-body .admin-pdv-store-wrap .card-product__row {
  margin-top: auto;
  padding-top: 0.18rem;
  gap: 0.35rem;
}

body.admin-body .admin-pdv-store-wrap .card-product__price {
  font-size: 0.8rem;
}

body.admin-body .admin-pdv-store-wrap .card-product__price-compare {
  font-size: 0.6rem;
}

body.admin-body .admin-pdv-store-wrap .card-product__add {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.92rem;
}

body.admin-body .admin-pdv-store-wrap .product-badge {
  font-size: 0.45rem;
  padding: 0.12rem 0.28rem;
  top: 0.15rem;
  left: 0.15rem;
  max-width: calc(100% - 2.2rem);
}

body.admin-body .admin-pdv-store-wrap .section__title {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

body.admin-body .admin-pdv-store-wrap .category-rail {
  margin-bottom: 0.45rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.admin-body .admin-pdv-store-wrap .category-rail__chip {
  font-size: 0.74rem;
  padding: 0.24rem 0.48rem;
}

body.admin-body.admin-surface--light .admin-pdv-store-wrap .card-product {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.admin-body.admin-surface--light .admin-pdv-store-wrap .card-product__name {
  color: #0f172a;
}

body.admin-body.admin-surface--light .admin-pdv-store-wrap .card-product__desc {
  color: #64748b;
}

body.admin-body.admin-surface--light .admin-pdv-store-wrap .card-product__media {
  background: #f8fafc;
}

/* PDV: escolha de mesa antes do cardápio */
.admin-pdv-pick-mesa__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}
.admin-pdv-pick-mesa__lead {
  margin-bottom: 0.65rem;
}
.admin-pdv-mesa-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.admin-pdv-mesa-chip {
  appearance: none;
  font: inherit;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #f8fafc);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
body.admin-body.admin-surface--light .admin-pdv-mesa-chip {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}
.admin-pdv-mesa-chip:hover {
  border-color: var(--accent, #2dd4bf);
}
.admin-pdv-mesa-chip.is-selected {
  border-color: var(--accent, #2dd4bf);
  background: color-mix(in srgb, var(--accent, #2dd4bf) 22%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent, #2dd4bf) 40%, transparent);
}
body.admin-body.admin-surface--light .admin-pdv-mesa-chip.is-selected {
  background: color-mix(in srgb, var(--accent, #2dd4bf) 18%, #fff);
}

/* Mesa com pedido em aberto (até finalizar no painel) */
.admin-pdv-mesa-chip.is-busy {
  cursor: pointer;
  border-color: rgba(245, 158, 11, 0.75);
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}
body.admin-body.admin-surface--light .admin-pdv-mesa-chip.is-busy {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}
.admin-pdv-mesa-chip.is-busy:hover {
  border-color: #f59e0b;
  background: rgba(251, 191, 36, 0.32);
}
body.admin-body.admin-surface--light .admin-pdv-mesa-chip.is-busy:hover {
  background: #fef3c7;
}
/* Um pouco mais forte em preparo / saiu (cozinha já pegou) */
.admin-pdv-mesa-chip.is-busy.admin-pdv-mesa-chip--status-em_preparo,
.admin-pdv-mesa-chip.is-busy.admin-pdv-mesa-chip--status-saiu_entrega {
  border-color: rgba(234, 88, 12, 0.85);
  background: rgba(249, 115, 22, 0.28);
  color: #ffedd5;
}
body.admin-body.admin-surface--light .admin-pdv-mesa-chip.is-busy.admin-pdv-mesa-chip--status-em_preparo,
body.admin-body.admin-surface--light .admin-pdv-mesa-chip.is-busy.admin-pdv-mesa-chip--status-saiu_entrega {
  background: #ffedd5;
  border-color: #ea580c;
  color: #9a3412;
}
.admin-pdv-mesa-hint {
  margin: 0.65rem 0 0;
}

/* PDV / acrescentar ao pedido: toolbar e área do cardápio */
.admin-pdv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
body.admin-body.admin-surface--light .admin-pdv-toolbar {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.admin-pdv-toolbar__cart {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
}
.admin-pdv-toolbar__ctx {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted, #94a3b8);
}
.admin-pdv-store-wrap {
  margin-top: 0.5rem;
  padding: 0.65rem 0.45rem 0.85rem;
  border-radius: 0.65rem;
  background: var(--admin-pdv-store-bg, rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-form--pdv {
  max-width: 100%;
}
.admin-hint--pdv-lead {
  max-width: 42rem;
}
.admin-form-actions--pdv {
  margin-top: 1.25rem;
}
body.admin-body .admin-pdv-store-wrap .section__title-text {
  color: var(--text-store-title, var(--text, #f8fafc));
}

/* Detalhe do pedido: cabeçalho com ações e itens editáveis */
.admin-page-head__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}
.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}
.admin-section-head .admin-section-title {
  margin-bottom: 0;
}
.admin-hint--tight {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.admin-checkout-opt {
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.8rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(15, 23, 42, 0.22);
}

.admin-checkout-opt:first-of-type {
  margin-top: 0.45rem;
}

.admin-checkout-opt .admin-hint:last-child {
  margin-bottom: 0;
}

/* Admin — Roleta de desconto (discount_roulette.php) */
.dr-admin-page-links {
  margin: -0.15rem 0 0.85rem;
  max-width: 46rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.dr-admin-spins-hint {
  margin-bottom: 0 !important;
}

.dr-admin-page-links a {
  font-weight: 600;
  color: var(--accent, #2dd4bf);
}

.dr-admin-page-links a:hover {
  text-decoration: underline;
}

.dr-admin-page-links__sep {
  margin: 0 0.35rem;
  opacity: 0.45;
}

.dr-admin-preset-box {
  margin: 0 0 1rem;
  max-width: 48rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.28);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.dr-admin-preset-box strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 0.84rem;
}

.dr-admin-preset-box__list {
  display: block;
  opacity: 0.95;
}

.dr-admin-banner {
  margin-bottom: 1rem;
}

.dr-admin-preview-lead {
  margin: -0.25rem 0 0.85rem;
  max-width: 44rem;
}

.dr-admin-form-card .admin-fieldset {
  margin-bottom: 1.1rem;
}

.dr-admin-form-card .admin-fieldset:last-of-type {
  margin-bottom: 0.5rem;
}

.dr-admin-fieldset-grid {
  margin-bottom: 0 !important;
}

.dr-admin-opt-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: min(100%, 44rem);
  min-width: 0;
  box-sizing: border-box;
}

.dr-admin-opt-list__item {
  align-items: flex-start !important;
}

/* Roleta no admin: textos longos nos checkboxes (admin-cat-grid__active tem nowrap global) */
.dr-admin-form-card .admin-cat-grid__active {
  white-space: normal;
  align-items: flex-start;
  line-height: 1.45;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dr-admin-form-card .admin-cat-grid__active > input[type='checkbox'] {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.dr-admin-form-card .admin-cat-grid__active > span {
  flex: 1 1 auto;
  min-width: 0;
}

.dr-admin-opt-list__spins {
  margin-top: 0.25rem;
  max-width: 20rem;
}

.dr-admin-opt-list__reset {
  max-width: min(100%, 32rem);
}

.dr-admin-opt-list__reset select {
  width: 100%;
  max-width: 100%;
}

.dr-admin-slice-toolbar {
  margin-bottom: 0 !important;
  align-items: flex-end !important;
}

.dr-admin-seg-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.35rem 0 0;
  padding-bottom: 0.15rem;
}

.dr-admin-seg-head {
  display: grid;
  grid-template-columns: 2.25rem minmax(7.5rem, 1fr) minmax(7.5rem, 1fr) 4.85rem minmax(10.5rem, 1.25fr);
  gap: 0.5rem 0.65rem;
  min-width: min(100%, 720px);
  padding: 0 0 0.4rem;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #94a3b8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.dr-admin-seg-head__n {
  text-align: center;
}

.dr-admin-seg-wrap {
  counter-reset: drslice;
  min-width: min(100%, 720px);
}

.dr-admin-seg-row {
  counter-increment: drslice;
  display: grid;
  grid-template-columns: 2.25rem minmax(7.5rem, 1fr) minmax(7.5rem, 1fr) 4.85rem minmax(10.5rem, 1.25fr);
  gap: 0.5rem 0.65rem;
  align-items: end;
}

.dr-admin-seg-row::before {
  content: counter(drslice);
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(8, 12, 18, 0.45);
}

.dr-admin-seg-row > .row:nth-child(1) {
  grid-column: 2;
}

.dr-admin-seg-row > .row:nth-child(2) {
  grid-column: 3;
}

.dr-admin-seg-row > .row:nth-child(3) {
  grid-column: 4;
}

.dr-admin-seg-row > .row:nth-child(4) {
  grid-column: 5;
}

.dr-admin-seg-label {
  font-size: 0.78rem;
}

.dr-admin-weight-sum {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}

.dr-admin-weight-sum__hint {
  font-weight: 500;
  opacity: 0.88;
}

.dr-admin-seg-add {
  margin: 0.65rem 0 0;
}

.dr-admin-savebar {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 820px) {
  .dr-admin-seg-head {
    display: none;
  }

  .dr-admin-seg-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .dr-admin-seg-row::before {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-bottom: 0.1rem;
  }

  .dr-admin-seg-row > .row:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
  }

  .dr-admin-seg-row > .row:nth-child(2) {
    grid-column: 1;
    grid-row: 3;
  }

  .dr-admin-seg-row > .row:nth-child(3) {
    grid-column: 1;
    grid-row: 4;
  }

  .dr-admin-seg-row > .row:nth-child(4) {
    grid-column: 1;
    grid-row: 5;
  }
}
.admin-inline-form {
  margin: 0;
}
.admin-inline-form--qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Quantidade + confirmar (detalhe do pedido) */
.admin-qty-confirm {
  margin: 0;
}
.admin-qty-confirm__group {
  display: inline-flex;
  align-items: stretch;
  gap: 0.4rem;
}
.admin-qty-confirm__input {
  width: 3.35rem;
  min-width: 2.75rem;
  max-width: 4rem;
  margin: 0;
  padding: 0.4rem 0.45rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
  -moz-appearance: textfield;
  appearance: textfield;
}
.admin-qty-confirm__input::-webkit-outer-spin-button,
.admin-qty-confirm__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body.admin-body:not(.admin-surface--light) .admin-qty-confirm__input {
  background: linear-gradient(180deg, rgba(22, 30, 43, 0.98) 0%, rgba(15, 20, 30, 0.98) 100%);
  color: #e2e8f0;
  border-color: rgba(51, 65, 85, 0.65);
}
body.admin-body:not(.admin-surface--light) .admin-qty-confirm__input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(var(--accent-rgb), 0.22);
}
body.admin-body.admin-surface--light .admin-qty-confirm__input {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.35);
}
body.admin-body.admin-surface--light .admin-qty-confirm__input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.admin-qty-confirm__btn {
  margin: 0;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.12);
  color: #fcd34d;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.08s ease;
}
.admin-qty-confirm__btn:hover {
  background: rgba(248, 250, 252, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}
.admin-qty-confirm__btn:active {
  transform: scale(0.97);
}
body.admin-body.admin-surface--light .admin-qty-confirm__btn {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: #b45309;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
body.admin-body.admin-surface--light .admin-qty-confirm__btn:hover {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.45);
  color: #92400e;
}
.admin-table .admin-table__actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.admin-table__qtd {
  white-space: nowrap;
  vertical-align: middle;
}

/* Painel alinhado a bg_admin / text_admin (temas claros da loja) */
body.admin-body.admin-surface--light .admin-top {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

body.admin-body.admin-surface--light .admin-nav__link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

body.admin-body.admin-surface--light .admin-icon-btn {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--muted);
}

body.admin-body.admin-surface--light .admin-icon-btn:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
  color: var(--text);
}

body.admin-body.admin-surface--light .admin-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

body.admin-body.admin-surface--light .admin-status-step {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

body.admin-body.admin-surface--light .admin-status-step:hover:not(:disabled) {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.2);
}

body.admin-body.admin-surface--light .admin-status-step__icon-wrap {
  background: rgba(15, 23, 42, 0.04);
}

body.admin-body.admin-surface--light .admin-cat-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}

body.admin-body.admin-surface--light .admin-kv {
  color: var(--text);
}

body.admin-body.admin-surface--light .admin-totals {
  border-top-color: rgba(15, 23, 42, 0.1);
}

body.admin-body.admin-surface--light .admin-table th,
body.admin-body.admin-surface--light .admin-table td {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.admin-body.admin-surface--light .admin-table thead th {
  background: #f1f5f9;
  color: var(--muted);
}

body.admin-body.admin-surface--light .admin-form input,
body.admin-body.admin-surface--light .admin-form select,
body.admin-body.admin-surface--light .admin-form textarea {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--text);
}

body.admin-body.admin-surface--light .admin-form input:hover,
body.admin-body.admin-surface--light .admin-form select:hover,
body.admin-body.admin-surface--light .admin-form textarea:hover {
  border-color: rgba(15, 23, 42, 0.25);
}

body.admin-body.admin-surface--light .admin-color-field__picker {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: none;
}

body.admin-body.admin-surface--light .admin-color-field__hex {
  color: var(--muted);
}

body.admin-body.admin-surface--light .stat {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

body.admin-body.admin-surface--light .btn-admin--light {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
}

body.admin-body.admin-surface--light .btn-admin--light:hover {
  background: #e2e8f0;
}

body.admin-body.admin-surface--light .msg-err {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(220, 38, 38, 0.22);
}

body.admin-body.admin-surface--light .admin-theme-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}

body.admin-body.admin-surface--light .admin-theme-card__title {
  color: var(--text);
}

body.admin-body.admin-surface--light .admin-theme-card__desc {
  color: var(--muted);
}

body.admin-body.admin-surface--light .admin-theme-card__dot {
  border-color: rgba(15, 23, 42, 0.12);
}

body.admin-body.admin-surface--light .admin-fieldset {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

body.admin-body.admin-surface--light .admin-hours-table th {
  background: #f1f5f9;
}

body.admin-body.admin-surface--light .admin-hours-table input[type="time"] {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.15);
}

body.admin-body.admin-surface--light .admin-toast--err {
  color: #b91c1c;
}

body.admin-body.admin-surface--light .admin-board-col {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}

body.admin-body.admin-surface--light .admin-board-col--novo .admin-board-col__body {
  background: linear-gradient(180deg, #fff7ed 0%, #fff 55%);
}

body.admin-body.admin-surface--light .admin-board-col--em_preparo .admin-board-col__body {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
}

body.admin-body.admin-surface--light .admin-board-col--saiu_entrega .admin-board-col__body {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%);
}

body.admin-body.admin-surface--light .admin-board-col--novo .admin-board-col__head {
  color: #fff;
}

body.admin-body.admin-surface--light .admin-board-col--em_preparo .admin-board-col__head {
  color: #fff;
}

body.admin-body.admin-surface--light .admin-board-col--saiu_entrega .admin-board-col__head {
  color: #fff;
}

body.admin-body.admin-surface--light .admin-order-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}

body.admin-body.admin-surface--light .admin-details-finalized {
  border-color: rgba(15, 23, 42, 0.1);
}

body.admin-body.admin-surface--light .admin-orders-filters__title--second {
  border-top-color: rgba(15, 23, 42, 0.08);
}

body.admin-body.admin-surface--light .admin-orders-form-compact {
  border-top-color: rgba(15, 23, 42, 0.08);
}

body.admin-body.admin-surface--light .admin-orders-chip {
  color: #334155;
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
}

body.admin-body.admin-surface--light .admin-orders-chip:hover {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

body.admin-body.admin-surface--light .admin-orders-chip--active {
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.35);
  border-color: rgba(var(--accent-rgb), 0.55);
  color: #0f172a;
}

body.admin-body.admin-surface--light .admin-orders-chip--novo {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

body.admin-body.admin-surface--light .admin-orders-chip--novo:hover {
  background: #dbeafe;
  color: #1e3a8a;
}

body.admin-body.admin-surface--light .admin-orders-chip--em_preparo {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}

body.admin-body.admin-surface--light .admin-orders-chip--em_preparo:hover {
  background: #fef3c7;
  color: #92400e;
}

body.admin-body.admin-surface--light .admin-orders-chip--saiu_entrega {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #5b21b6;
}

body.admin-body.admin-surface--light .admin-orders-chip--saiu_entrega:hover {
  background: #ede9fe;
  color: #4c1d95;
}

body.admin-body.admin-surface--light .admin-orders-chip--finalizado {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

body.admin-body.admin-surface--light .admin-orders-chip--finalizado:hover {
  background: #d1fae5;
  color: #065f46;
}

body.admin-body.admin-surface--light .admin-orders-chip--cancelado {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

body.admin-body.admin-surface--light .admin-orders-chip--cancelado:hover {
  background: #fee2e2;
  color: #991b1b;
}

body.admin-body.admin-surface--light .admin-orders-chip--outline {
  opacity: 1;
  border-style: dashed;
  border-color: rgba(15, 23, 42, 0.22);
  background: #fafafa;
}

body.admin-body.admin-surface--light .admin-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

body.admin-body.admin-surface--light .admin-table tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.09);
}

body.admin-body.admin-surface--light .admin-table tbody td {
  color: var(--text);
}

body.admin-body.admin-surface--light .admin-table .pill--novo {
  background: #dbeafe;
  color: #1d4ed8;
}

body.admin-body.admin-surface--light .admin-table .pill--em_preparo {
  background: #fef3c7;
  color: #b45309;
}

body.admin-body.admin-surface--light .admin-table .pill--saiu_entrega {
  background: #ede9fe;
  color: #5b21b6;
}

body.admin-body.admin-surface--light .admin-table .pill--finalizado {
  background: #d1fae5;
  color: #047857;
}

body.admin-body.admin-surface--light .admin-table .pill--cancelado {
  background: #fee2e2;
  color: #b91c1c;
}

body.admin-body.admin-surface--light .admin-table .pill--sem_status {
  background: #f1f5f9;
  color: #64748b;
}

body.admin-body.admin-surface--light .admin-table .pill--desconhecido {
  background: #f1f5f9;
  color: #475569;
}

body.admin-body.admin-surface--light .admin-orders-meta {
  color: var(--muted);
}

body.admin-body.admin-surface--light .admin-orders-meta__warn {
  color: #b45309;
}

body.admin-body--login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem calc(2rem + env(safe-area-inset-bottom, 0));
}

.admin-login {
  width: 100%;
  max-width: 420px;
}

.admin-login__card {
  padding: 1.35rem 1.35rem 1.5rem;
}

.admin-login__head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.admin-login__title {
  margin: 0.65rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.admin-login__subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-login__back {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
}

.admin-login__back a {
  color: var(--muted);
  text-decoration: none;
}

.admin-login__back a:hover {
  color: var(--accent);
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 18, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.admin-top__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.admin-brand__mark {
  flex-shrink: 0;
  width: 10px;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 100%);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25);
}

.admin-brand__mark--lg {
  width: 12px;
  height: 40px;
}

.admin-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.admin-brand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.admin-brand__user {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.15rem;
  justify-content: flex-end;
}

.admin-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.62rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none !important;
  border: 1px solid transparent;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.admin-nav__link:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.admin-nav__link--active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.22);
}

.admin-nav__link--ghost {
  color: var(--muted);
}

.admin-nav__link--ghost:hover {
  color: var(--text);
}

/* ——— Admin: layout tipo dashboard (sidebar + barra superior) ——— */
body.admin-body.admin-body--shell {
  padding-bottom: 0;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.admin-shell {
  display: flex;
  min-height: 100dvh;
  align-items: flex-start;
  position: relative;
}

.admin-sidebar__backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(2, 6, 23, 0.55);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  width: min(300px, 88vw);
  flex-shrink: 0;
  height: 100dvh;
  max-height: 100dvh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  overflow: hidden;
  background: linear-gradient(180deg, #1a3a5c 0%, #132a45 48%, #0f2438 100%);
  color: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 60;
  box-sizing: border-box;
}

.admin-sidebar__top {
  padding: 1rem 0.85rem 0.75rem;
  flex-shrink: 0;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
  color: inherit !important;
  margin-bottom: 0.85rem;
}

.admin-sidebar__brand-mark {
  width: 10px;
  height: 34px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 100%);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.35);
  flex-shrink: 0;
}

.admin-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.admin-sidebar__brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sidebar__brand-sub {
  font-size: 0.72rem;
  opacity: 0.65;
}

.admin-sidebar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.62rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none !important;
}

.admin-sidebar__search {
  position: relative;
  display: block;
}

.admin-sidebar__search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.45;
  pointer-events: none;
  display: flex;
}

.admin-sidebar__search input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.7rem 0.5rem 2.35rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.admin-sidebar__search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.admin-sidebar__search input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.admin-sidebar__nav {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.08);
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}

.admin-sidebar__link--active {
  background: rgba(0, 153, 255, 0.18);
  color: #fff !important;
  border: 1px solid rgba(0, 153, 255, 0.35);
}

.admin-sidebar__ico {
  display: flex;
  opacity: 0.85;
  flex-shrink: 0;
}

.admin-sidebar__link-text {
  flex: 1;
  min-width: 0;
}

.admin-sidebar__badge {
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 1.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 153, 255, 0.35);
  color: #fff;
  text-align: center;
}

.admin-sidebar__block {
  margin-top: 0.15rem;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-sidebar__block-title {
  padding: 0.5rem 0.55rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
}

.admin-sidebar__sub {
  padding: 0 0.35rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.admin-sidebar__sublink {
  display: block;
  padding: 0.42rem 0.5rem;
  border-radius: 7px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none !important;
}

.admin-sidebar__sublink:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}

.admin-sidebar__sublink--active {
  color: #fff !important;
  background: rgba(0, 153, 255, 0.14);
}

.admin-sidebar__foot {
  flex-shrink: 0;
  padding: 0.75rem 0.85rem 1rem;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.admin-sidebar__public {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none !important;
}

.admin-sidebar__public:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.admin-sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.admin-sidebar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 1rem;
}

.admin-sidebar__user-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.admin-sidebar__store {
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sidebar__email {
  font-size: 0.72rem;
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sidebar__foot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-sidebar__pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.admin-appbar__status--open,
.admin-sidebar__pill.admin-appbar__status--open {
  background: rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
}

.admin-appbar__status--closed,
.admin-sidebar__pill.admin-appbar__status--closed {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.admin-appbar__status--unknown,
.admin-sidebar__pill.admin-appbar__status--unknown {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.admin-sidebar__icon-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar__icon-exit:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.admin-body.admin-surface--light .admin-main {
  background: #e8ecf2;
}

body.admin-body:not(.admin-surface--light) .admin-main {
  background: rgba(8, 11, 18, 0.65);
}

.admin-appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

body.admin-body:not(.admin-surface--light) .admin-appbar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.admin-appbar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.admin-appbar__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  cursor: pointer;
}

.admin-appbar__menu:hover {
  background: rgba(148, 163, 184, 0.14);
}

.admin-appbar__crumb {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(60vw, 22rem);
}

.admin-appbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
}

.admin-appbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.admin-appbar__chip-ico {
  display: flex;
  opacity: 0.75;
}

.admin-appbar__chip-text {
  max-width: 10rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-appbar__pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.admin-appbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent) !important;
  text-decoration: none !important;
}

.admin-appbar__link:hover {
  color: var(--accent-hover) !important;
}

.admin-appbar__link--ghost {
  color: var(--muted) !important;
  font-weight: 500;
}

.admin-appbar__link--ghost:hover {
  color: var(--text) !important;
}

.admin-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.35rem 1.35rem 2.5rem;
  flex: 1;
  box-sizing: border-box;
}

.admin-page-head--kanban {
  align-items: flex-start;
  justify-content: space-between;
}

.admin-page-head__action {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent);
  text-decoration: none;
  align-self: center;
}
.admin-page-head__action:hover {
  text-decoration: underline;
}

.admin-page-head__meta {
  font-size: 0.85rem;
  color: var(--muted);
  width: 100%;
}

.admin-orders-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-orders-search-bar input[type='search'] {
  flex: 1;
  min-width: 12rem;
  padding: 0.45rem 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.9rem;
}

body.admin-body.admin-surface--light .admin-orders-search-bar input[type='search'] {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
}

@media (max-width: 960px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    align-self: stretch;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
  }

  .admin-shell--sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-appbar__menu {
    display: inline-flex;
  }

  .admin-main {
    width: 100%;
    min-height: 100dvh;
  }
}

@media (min-width: 961px) {
  .admin-sidebar__backdrop {
    display: none !important;
  }
}

.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
}

.admin-page-head .admin-page-title {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.admin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(16, 22, 31, 0.55);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-icon-btn:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(24, 32, 44, 0.75);
}

.admin-icon-btn:active {
  transform: scale(0.96);
}

.admin-page-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.admin-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
  max-width: 62ch;
}

.admin-card__title,
.admin-section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.admin-section-title--tight {
  margin-bottom: 0.4rem;
}

.admin-hint--status-track {
  margin: 0 0 1rem;
}

.admin-card--status-track .admin-status-form {
  margin: 0;
}

.admin-status-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .admin-status-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.45rem 0.65rem;
  min-height: 5.75rem;
  font: inherit;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(10, 14, 20, 0.45);
  color: var(--muted);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.admin-status-step:hover:not(:disabled) {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(18, 24, 34, 0.65);
  color: var(--text);
}

.admin-status-step:active:not(:disabled) {
  transform: scale(0.98);
}

.admin-status-step:disabled {
  opacity: 1;
  cursor: default;
}

.admin-status-step--upcoming {
  opacity: 0.88;
}

.admin-status-step__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.admin-status-step__icon {
  display: block;
}

.admin-status-step__label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 100%;
  padding: 0 0.15rem;
}

.admin-status-step__done-mark {
  position: absolute;
  right: -0.2rem;
  bottom: -0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.95);
  color: #042f23;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.admin-status-step__done-mark svg {
  display: block;
}

.admin-status-step--done {
  border-color: rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
}

.admin-status-step--done .admin-status-step__icon-wrap {
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}

.admin-status-step--current.admin-status-step--novo {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(96, 165, 250, 0.1);
  color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.admin-status-step--current.admin-status-step--novo .admin-status-step__icon-wrap {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

.admin-status-step--current.admin-status-step--em_preparo {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.15);
}

.admin-status-step--current.admin-status-step--em_preparo .admin-status-step__icon-wrap {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

.admin-status-step--current.admin-status-step--saiu_entrega {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(167, 139, 250, 0.1);
  color: #c4b5fd;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.18);
}

.admin-status-step--current.admin-status-step--saiu_entrega .admin-status-step__icon-wrap {
  background: rgba(167, 139, 250, 0.16);
  color: #c4b5fd;
}

.admin-status-step--current.admin-status-step--finalizado {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.15);
}

.admin-status-step--current.admin-status-step--finalizado .admin-status-step__icon-wrap {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

.admin-status-step--current.admin-status-step--cancelado {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.2);
}

.admin-status-step--current.admin-status-step--cancelado .admin-status-step__icon-wrap {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

body.admin-body.admin-surface--light .admin-status-step--current.admin-status-step--cancelado {
  border-color: rgba(220, 38, 38, 0.45);
  background: #fef2f2;
  color: #b91c1c;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
}

body.admin-body.admin-surface--light .admin-status-step--current.admin-status-step--cancelado .admin-status-step__icon-wrap {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.admin-card {
  background: rgba(16, 22, 31, 0.72);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.2rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.admin-card--spaced-top {
  margin-top: 1.5rem;
}

.admin-table-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.admin-toolbar {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}

.admin-toolbar .row {
  margin-bottom: 0;
}

.admin-report-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.admin-report-presets__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.15rem;
}

.admin-form--inline-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.admin-form--inline-end .row {
  margin-bottom: 0;
}

.admin-form--inline-start {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.admin-form--grid-cat-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.admin-form--grid-cat-add .row--grow {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.admin-form--grid-cat-add .row--narrow {
  width: 100px;
  margin-bottom: 0;
}

.admin-cat-grid {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  gap: 0.5rem;
  align-items: end;
}

.admin-cat-grid .row {
  margin-bottom: 0;
}

.admin-coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  align-items: end;
}

.admin-coupon-grid .row {
  margin-bottom: 0;
}

/* Checkbox com texto longo (ex.: entrega grátis) — ocupa a linha e quebra linha */
.admin-coupon-grid .admin-cat-grid__active--block {
  grid-column: 1 / -1;
  white-space: normal;
  line-height: 1.4;
  align-items: flex-start;
}

@media (max-width: 520px) {
  .admin-cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-cat-grid .admin-cat-grid__active {
    grid-column: 1 / -1;
  }
}

.admin-cat-grid__active {
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
}

.admin-cat-grid__active input {
  margin-right: 0.35rem;
}

.admin-cat-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-cat-delete-form {
  margin-top: 0.5rem;
}

.admin-cat-item {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: rgba(8, 12, 18, 0.35);
}

.admin-cat-item:last-child {
  margin-bottom: 0;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-kv {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.admin-kv--meta {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-totals {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.95rem;
}

.admin-totals p {
  margin: 0.35rem 0;
}

.admin-back-link {
  margin-top: 1.25rem;
}

.admin-back-link a {
  font-size: 0.9rem;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-form--stock-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-form--stock-inline input[type='number'] {
  width: 6rem;
  max-width: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  vertical-align: middle;
}

.admin-table thead th {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(8, 12, 18, 0.55);
}

.admin-table tbody tr {
  transition: background 0.12s ease;
}

.admin-table tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.04);
}

.admin-table img.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.admin-product-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.admin-form .row {
  margin-bottom: 0.75rem;
}

.admin-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(8, 12, 18, 0.65);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.admin-form input:hover,
.admin-form select:hover,
.admin-form textarea:hover {
  border-color: rgba(148, 163, 184, 0.35);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

/* Color pickers: preview sólido + input invisível por cima (swatch nativo falha em alguns browsers) */
.admin-color-field {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}

.admin-color-field__picker {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 2.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-color-field__picker:hover {
  border-color: rgba(148, 163, 184, 0.5);
}

.admin-color-field__picker:has(.admin-color-field__input:focus) {
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-color-field__swatch {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #2dd4bf;
}

.admin-form .admin-color-field__input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0;
  padding: 0 !important;
  border: none !important;
  border-radius: 0;
  cursor: pointer;
  z-index: 1;
  opacity: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px;
}

.admin-form .admin-color-field__input:hover,
.admin-form .admin-color-field__input:focus {
  box-shadow: none !important;
}

.admin-color-field__hex {
  flex: 0 0 auto;
  align-self: center;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  min-width: 5rem;
  text-align: right;
  user-select: all;
}

.admin-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2rem;
}

.stats--today {
  margin-top: 0.5rem;
}

.stats--today .stat::before {
  opacity: 0.45;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.85rem;
}

.stat {
  position: relative;
  background: rgba(16, 22, 31, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 0.9rem 1.15rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 3px 0 0 3px;
  opacity: 0.9;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.15;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.btn-admin {
  display: inline-block;
  padding: 0.62rem 1.2rem;
  min-height: 2.75rem;
  box-sizing: border-box;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent-deep) 100%);
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(var(--accent-deep-rgb), 0.35);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.btn-admin:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(var(--accent-deep-rgb), 0.45);
}

.btn-admin:active {
  transform: translateY(1px);
}

.btn-admin--light {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text) !important;
  box-shadow: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-admin--light:hover {
  background: rgba(148, 163, 184, 0.18);
  filter: none;
}

.btn-admin--danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-admin--danger:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.msg-ok {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-hover);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.msg-err {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Toasts no painel admin (Etapa 3) */
.admin-toast-host {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
  pointer-events: none;
  max-width: min(400px, calc(100vw - 1.5rem));
}

.admin-toast {
  pointer-events: auto;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.32s var(--ease-out-expo);
}

.admin-toast--show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.admin-toast--ok {
  background: rgba(var(--accent-rgb), 0.2);
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  color: var(--accent-hover);
}

.admin-toast--err {
  background: rgba(248, 113, 113, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.admin-toast--order {
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  max-width: min(240px, calc(100vw - 1.5rem));
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  color: var(--text);
}

.admin-toast-order {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.admin-toast-order__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-hover);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.35);
  animation: admin-toast-order-pulse 1.4s ease-in-out infinite;
}

.admin-toast-order__title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.admin-toast-order__link {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-hover);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.18);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.admin-toast-order__link:hover {
  background: rgba(var(--accent-rgb), 0.28);
}

@keyframes admin-toast-order-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(0.92);
  }
}

body.admin-body.admin-surface--light .admin-toast--order {
  background: #fff;
  border-color: rgba(var(--accent-rgb), 0.4);
  color: #0f172a;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .admin-toast-order__pulse {
    animation: none;
  }

  .admin-toast {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .admin-toast--show {
    transform: none;
  }
}

.admin-fieldset {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 0.35rem;
  margin: 0 0 1rem;
  background: rgba(8, 12, 18, 0.25);
}

.admin-fieldset legend {
  padding: 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.admin-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.admin-hint strong {
  color: var(--text);
  font-weight: 600;
}

.admin-hint--warn {
  color: #fcd34d;
}

.admin-dash-sound__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.admin-dash-sound__status {
  flex: 1 1 12rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-card--today-combined .stats--today {
  margin-top: 0;
  margin-bottom: 0;
}

.admin-today-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.1rem 1.5rem;
  margin-top: 0.5rem;
}

.admin-today-row__stats {
  flex: 1 1 17rem;
  min-width: min(100%, 15rem);
}

.admin-today-row__sound {
  flex: 1.35 1 18rem;
  min-width: min(100%, 16rem);
  display: flex;
  align-items: stretch;
}

.admin-today-row__sound > .admin-dash-sound--embed {
  flex: 1;
}

.admin-card--today-combined .admin-dash-sound--embed {
  margin-top: 0;
  padding-top: 0;
  padding-left: 1.25rem;
  border-top: none;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

@media (max-width: 52rem) {
  .admin-card--today-combined .admin-today-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-card--today-combined .admin-dash-sound--embed {
    padding-left: 0;
    padding-top: 1rem;
    border-left: none;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }
}

.admin-dash-sound--embed {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.admin-dash-sound__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.admin-dash-sound--embed .admin-dash-sound__hint {
  margin-bottom: 0.5rem;
}

.admin-cep-msg {
  min-height: 1.25rem;
  margin-bottom: 0.5rem;
  color: #fcd34d;
}

.admin-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
}

.admin-inline input {
  width: auto !important;
  margin: 0;
}

.admin-inline--spaced {
  margin-bottom: 0.35rem;
}

.admin-cep-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.admin-cep-row__field {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}

.admin-cep-row__field label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.admin-cep-row__field input {
  width: 100%;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

.admin-grid-2--tight {
  gap: 0.5rem;
}

.admin-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-hours-table th,
.admin-hours-table td {
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.4rem 0.55rem;
  text-align: left;
}

.admin-hours-table th {
  background: rgba(8, 12, 18, 0.55);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
}

.admin-hours-table input[type="time"] {
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0.45rem;
  background: rgba(8, 12, 18, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: var(--text);
}

.admin-settings-preview-logo {
  max-height: 60px;
  border-radius: 8px;
}

.admin-settings-preview-banner {
  max-height: 80px;
  width: 100%;
  max-width: 320px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.admin-qr-url {
  word-break: break-all;
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-qr-print-link {
  display: none;
  margin-top: 1rem;
}

.admin-qr-box {
  text-align: center;
}

.admin-qr-box img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

.admin-qr-print-title {
  display: none;
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.admin-qr-preview {
  display: inline-block;
  margin: 0.5rem 0 0.75rem;
}

.admin-qr-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.admin-qr-size-btn--active {
  border-color: rgba(var(--accent-rgb), 0.55) !important;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15);
  color: var(--text) !important;
}

.admin-qr-url-block {
  text-align: left;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.admin-qr-url-flex {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.admin-qr-url-flex input {
  flex: 1;
  min-width: 0;
}

.admin-qr-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

@media print {
  .admin-top,
  .admin-sidebar,
  .admin-appbar,
  .admin-sidebar__backdrop,
  .admin-toast-host,
  .admin-no-print {
    display: none !important;
  }

  .admin-body {
    background: #fff !important;
  }

  .admin-wrap {
    padding: 0 !important;
    max-width: none !important;
  }

  .admin-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .admin-qr-print-title {
    display: block;
  }

  .admin-qr-print-link {
    display: block;
    color: #111 !important;
    font-size: 10pt;
  }

  .admin-qr-preview {
    margin: 1.5rem auto;
  }

  .admin-qr-box img {
    box-shadow: none !important;
    width: 260px !important;
    height: 260px !important;
    max-width: none !important;
  }

  .admin-qr-url {
    color: #111 !important;
    font-size: 11pt;
    margin-top: 1.25rem;
  }

  .admin-qr-url a {
    color: #111 !important;
    text-decoration: underline;
  }

  .admin-page-title,
  .admin-lead {
    color: #111 !important;
  }

  .admin-icon-btn {
    display: none !important;
  }
}

.input-upper {
  text-transform: uppercase;
}

.admin-hours-weekly {
  margin-top: 0.75rem;
}

.row--tight-top {
  margin-top: 0.75rem;
}

td.admin-td-center {
  text-align: center;
}

@media (max-width: 640px) {
  .admin-top__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-nav {
    justify-content: flex-start;
  }
}

/* ——— Admin dashboard: quadro do dia por status ——— */
.admin-board-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-board-status-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-board-status-pill strong {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-board-status-pill--novo {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.admin-board-status-pill--em_preparo {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.admin-board-status-pill--saiu_entrega {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
  color: #c4b5fd;
}

.admin-board-status-pill--finalizado {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}

.admin-board-status-pill--cancelado {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.admin-board-status-pill--muted {
  opacity: 0.72;
}

.admin-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .admin-board {
    grid-template-columns: 1fr;
  }
}

.admin-board-col {
  display: flex;
  flex-direction: column;
  min-height: 10rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.admin-board-col--novo .admin-board-col__body {
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.1) 0%, rgba(0, 0, 0, 0.12) 100%);
}

.admin-board-col--em_preparo .admin-board-col__body {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, rgba(0, 0, 0, 0.12) 100%);
}

.admin-board-col--saiu_entrega .admin-board-col__body {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.1) 0%, rgba(0, 0, 0, 0.12) 100%);
}

.admin-board-col--novo .admin-board-col__head {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-board-col--em_preparo .admin-board-col__head {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fffbeb;
}

.admin-board-col--saiu_entrega .admin-board-col__head {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-board-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.62rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-board-col__count {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  font-size: 0.9rem;
}

.admin-board-col__body {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: min(58vh, 30rem);
  overflow-y: auto;
}

.admin-board-col__empty {
  margin: 0;
  padding: 0.85rem 0.35rem;
  font-size: 0.92rem;
  color: var(--muted, #94a3b8);
  text-align: center;
}

.admin-order-card {
  border-radius: 0.55rem;
  padding: 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-order-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.admin-order-card__num {
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

.admin-order-card__type {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

.admin-order-card__name {
  margin: 0 0 0.2rem;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.25;
}

.admin-order-card__meta,
.admin-order-card__total {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted, #94a3b8);
}

.admin-order-card__mesa {
  font-weight: 600;
  color: var(--text, #f8fafc);
}

.admin-order-card__total {
  margin-top: 0.2rem;
  font-weight: 600;
  color: var(--text, #f8fafc);
}

.admin-order-card__btn {
  margin-top: 0.45rem;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.admin-details-finalized {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-details-finalized__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-details-finalized__summary::-webkit-details-marker {
  display: none;
}

.admin-details-finalized__title::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
  opacity: 0.65;
}

.admin-details-finalized[open] .admin-details-finalized__title::before {
  transform: rotate(90deg);
}

.admin-details-finalized__count {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  font-variant-numeric: tabular-nums;
}

.admin-hint--footer {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.admin-hint--footer a {
  font-weight: 600;
}

/* ——— Admin listagem de pedidos ——— */
.admin-orders-filters__title--second {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-orders-filters__hint {
  margin-bottom: 0;
}

.admin-orders-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.admin-orders-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text, #f8fafc);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.admin-orders-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-orders-chip--active {
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.35);
  border-color: rgba(45, 212, 191, 0.55);
}

.admin-orders-chip--outline {
  border-style: dashed;
  opacity: 0.92;
}

.admin-orders-chip--novo {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.admin-orders-chip--em_preparo {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.admin-orders-chip--saiu_entrega {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
  color: #c4b5fd;
}

.admin-orders-chip--finalizado {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
}

.admin-orders-chip--cancelado {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.32);
  color: #fca5a5;
}

.admin-orders-meta {
  font-size: 0.86rem;
  color: var(--muted, #94a3b8);
  margin: 0 0 0.65rem;
}

.admin-orders-meta__warn {
  color: #fcd34d;
}

.admin-orders-type {
  white-space: nowrap;
}

.admin-empty-cell {
  text-align: center;
  padding: 1.5rem 1rem !important;
  color: var(--muted, #94a3b8);
}

.admin-orders-form-compact {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-orders-form-compact .row {
  margin-bottom: 0.5rem;
}

.admin-orders-form-actions {
  margin-top: 0.35rem;
}

.admin-table-row--status-novo td:first-child {
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.85);
}

.admin-table-row--status-em_preparo td:first-child {
  box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.9);
}

.admin-table-row--status-saiu_entrega td:first-child {
  box-shadow: inset 3px 0 0 rgba(167, 139, 250, 0.9);
}

.admin-table-row--status-finalizado td:first-child {
  box-shadow: inset 3px 0 0 rgba(52, 211, 153, 0.75);
}

.admin-table-row--status-cancelado td:first-child {
  box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.85);
}

.admin-table-row--status-sem_status td:first-child {
  box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.55);
}

.admin-table-row--status-desconhecido td:first-child {
  box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.45);
}

body.admin-body .admin-table .pill {
  font-size: 0.65rem;
}

/* ——— Temas da vitrine (preset / animação / botões) ——— */
.theme-preview-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.55rem max(1rem, env(safe-area-inset-right, 0px)) 0.55rem max(1rem, env(safe-area-inset-left, 0px));
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.theme-preview-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.theme-preview-banner a:hover {
  text-decoration: none;
}

body.theme-motion--off.site {
  animation: none !important;
  background-size: 100% 100% !important;
}

body.theme-motion--off.site .store-sheet,
body.theme-motion--off.site .category-rail,
body.theme-motion--off.site .hero-banner img,
body.theme-motion--off.site .store-intro,
body.theme-motion--off.site .empty-msg {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body.theme-motion--off.site .section--reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

body.theme-motion--off.site .section--reveal .section__title-text::after {
  transform: scaleX(1);
  animation: none !important;
}

body.theme-motion--off.site .card-product,
body.theme-motion--off.site .card-product--pop {
  animation: none !important;
  transition-duration: 0.01ms !important;
  transform: none !important;
  opacity: 1 !important;
}

body.theme-motion--off.site .card-product:hover .card-product__media img,
body.theme-motion--off.site .card-product:active .card-product__media img {
  transform: none;
}

body.theme-motion--off.site .card-product:hover .card-product__add,
body.theme-motion--off.site .card-product:active .card-product__add {
  transform: none !important;
}

body.theme-motion--off.site .fab-wa,
body.theme-motion--off.site .store-intro--hero::before {
  animation: none;
}

body.theme-motion--off.site .store-live-hours--open .store-live-hours__dot {
  animation: none;
}

body.theme-motion--off.site .cart-line {
  animation: none;
}

body.theme-motion--off.site .app-tabbar__badge.badge--bump {
  animation: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  /* Entre “desligado” e “suave”: fundo bem lento, entradas um pouco mais rápidas, hover discreto */
  body.theme-motion--subtle.site {
    animation-duration: 52s;
  }

  body.theme-motion--subtle .section--reveal {
    transition:
      opacity 0.48s var(--ease-out-expo),
      transform 0.48s var(--ease-out-expo);
  }

  body.theme-motion--subtle .section--reveal.is-inview .card-product {
    animation-duration: 0.42s;
  }

  body.theme-motion--subtle .card-product:hover {
    transform: translateY(-2px);
  }

  /* Entre “suave” e “chamativo”: mais movimento nos cards/carrinho/FAB, sem brilho infinito nos botões */
  body.theme-motion--lively .card-product:hover {
    transform: translateY(-4px);
  }

  body.theme-motion--lively .nav-actions__cart:hover {
    transform: scale(1.03);
  }

  body.theme-motion--lively .fab-wa {
    animation-duration: 2.65s;
  }

  body.theme-motion--bold.site .fab-wa {
    animation-duration: 2.2s;
  }

  body.theme-motion--bold.site .card-product:hover {
    transform: translateY(-5px);
  }

  body.theme-motion--bold.site .nav-actions__cart:hover {
    transform: scale(1.04);
  }

  body.theme-motion--bold.site .btn--primary:not(:disabled),
  body.theme-motion--bold.site .store-intro__cta {
    animation: themeBtnGlow 2.8s ease-in-out infinite;
  }

  body.theme-icons--playful .nav-actions__cart-icon--playful {
    display: inline-block;
    animation: themePlayfulWobble 2.5s ease-in-out infinite;
  }

  body.theme-preset--delivery_moderno .product-badge--promo {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.35),
      0 4px 14px rgba(0, 0, 0, 0.35);
  }
}

@keyframes themeBtnGlow {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.28);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(var(--accent-rgb), 0.5),
      0 0 32px rgba(var(--accent-rgb), 0.2);
    filter: brightness(1.04);
  }
}

@keyframes themePlayfulWobble {
  0%,
  100% {
    transform: rotate(-4deg) scale(1);
  }
  50% {
    transform: rotate(4deg) scale(1.06);
  }
}

body.theme-btn--rounded.site .btn--primary,
body.theme-btn--rounded.site .btn--ghost,
body.theme-btn--rounded.site .store-intro__cta,
body.theme-btn--rounded.site .store-intro__cta--ghost {
  border-radius: 14px;
}

body.theme-btn--rounded.site .nav-actions__cart {
  border-radius: 14px;
}

body.theme-btn--rounded.site .card-product {
  border-radius: 14px;
}

body.theme-btn--square.site .btn--primary,
body.theme-btn--square.site .btn--ghost,
body.theme-btn--square.site .store-intro__cta,
body.theme-btn--square.site .store-intro__cta--ghost {
  border-radius: 10px;
}

body.theme-btn--square.site .nav-actions__cart {
  border-radius: 10px;
}

body.theme-btn--square.site .card-product {
  border-radius: 12px;
}

/* Preset “App delivery (claro)” — lista tipo app de comida (só no celular; ≥480px usa grade 2 col + card empilhado) */
body.theme-preset--estilo_ifood.site .main {
  padding-top: 0.35rem;
}

body.theme-preset--estilo_ifood .grid-products {
  gap: 0.65rem;
}

@media (max-width: 479px) {
  body.theme-preset--estilo_ifood .card-product {
    grid-template-columns: 108px 1fr;
    gap: 0.75rem;
  }

  body.theme-preset--estilo_ifood .card-product__media {
    min-height: 108px;
  }

  body.theme-preset--estilo_ifood .card-product__placeholder {
    min-height: 108px;
  }
}

@media (min-width: 480px) {
  body.theme-preset--estilo_ifood .card-product {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  body.theme-preset--estilo_ifood .card-product__media {
    min-height: 0;
    aspect-ratio: 4/3;
  }
}

body.theme-preset--estilo_ifood .section__title {
  font-size: 1.12rem;
  color: var(--text);
}

body.theme-preset--estilo_ifood .section__title-text::after {
  height: 4px;
  border-radius: 2px;
  width: 2.75rem;
  max-width: 40%;
  background: #ea1d2c;
}

body.theme-preset--estilo_ifood .card-product__price {
  color: #ea1d2c;
}

body.theme-preset--estilo_ifood .nav-actions__link--ghost {
  color: #ea1d2c;
}

body.theme-preset--estilo_ifood .hero-banner img {
  border-radius: 0 0 12px 12px;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-motion--bold.site .btn--primary,
  body.theme-motion--bold.site .store-intro__cta {
    animation: none;
  }

  body.theme-icons--playful .nav-actions__cart-icon--playful {
    animation: none;
  }
}

/* KDS / Garçom (telas operacionais) */
.kds-wrap,
.waiter-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}
.kds-head,
.waiter-head {
  margin-bottom: 1rem;
}
.kds-title,
.waiter-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 0.25rem;
}
.kds-sub,
.waiter-sub {
  margin: 0;
  opacity: 0.75;
  font-size: 0.95rem;
}
.kds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.kds-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.kds-card--em_preparo {
  border-color: rgba(251, 191, 36, 0.5);
}
.kds-card__num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.kds-card__meta {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0.35rem 0 0.5rem;
}
.kds-items {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.45;
}
.kds-card__notes {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: #fbbf24;
}
.kds-empty {
  grid-column: 1 / -1;
  opacity: 0.7;
}
.waiter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.waiter-item {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: rgba(15, 23, 42, 0.45);
}
.waiter-item__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.waiter-badge {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.2);
}
.waiter-mesa {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.35rem 0;
}
.waiter-meta {
  font-size: 0.9rem;
  opacity: 0.85;
}
.waiter-notes {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}
.waiter-empty {
  opacity: 0.7;
}

/* ——— Admin: badges na lista de pedidos + alertas do dashboard ——— */
.admin-row-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  align-items: center;
}

.admin-row-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.2;
}

.admin-row-badge--sched {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.admin-row-badge--mp {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fcd34d;
}

.admin-dash-alerts {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.08), rgba(15, 23, 42, 0.5));
}

.admin-dash-alerts__list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.55;
}

.admin-dash-alerts__list li {
  margin: 0.35rem 0;
}

.admin-dash-alerts__list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.admin-dash-alerts__list a:hover {
  color: var(--accent, #2dd4bf);
}

/* ——— Admin estoque ——— */
.admin-stock-summary {
  margin-bottom: 0.75rem;
}

.admin-stock-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.admin-stock-stat {
  border-radius: var(--radius-sm, 12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.admin-stock-stat strong {
  display: block;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.admin-stock-stat span {
  font-size: 0.8rem;
  color: var(--muted, #94a3b8);
}

.admin-stock-stat--warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.admin-stock-stat--warn strong {
  color: #fcd34d;
}

.admin-stock-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}

.admin-stock-toolbar__search {
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-stock-toolbar__search label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted, #94a3b8);
}

.admin-stock-toolbar__search input[type='search'] {
  width: 100%;
  max-width: 22rem;
}

.admin-stock-toolbar__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
}

.admin-stock-filter-chips {
  margin-top: 0.25rem;
}

.admin-stock-cat {
  font-size: 0.85rem;
  color: var(--muted, #94a3b8);
}

.admin-stock-inactive-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.admin-table-row--inactive td:not(:last-child) {
  opacity: 0.88;
}

.admin-table-row--stock-low {
  background: rgba(251, 191, 36, 0.05);
}

.admin-stock-hint-cell {
  white-space: nowrap;
  font-size: 0.82rem;
}

.admin-stock-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-stock-pill--low {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.admin-stock-movements {
  margin-top: 0.5rem;
}

.admin-table--compact {
  font-size: 0.88rem;
}

.admin-table--compact th,
.admin-table--compact td {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.admin-stock-delta-pos {
  color: #6ee7b7;
}

.admin-stock-delta-neg {
  color: #fca5a5;
}

.admin-stock-ref {
  font-size: 0.82rem;
  color: var(--muted, #94a3b8);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .admin-form--stock-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form--stock-inline input[type='number'] {
    max-width: none;
  }
}
