/**
 * Delivery Marituba - Folha de Estilos Oficial (Mobile-First)
 * Domínio: deliverymarituba.online
 * Identidade Visual:
 * - 1º Vermelho (#E51937 / #C90F29)
 * - 2º Azul (#0F2537 / #1A365D)
 * - 3º Amarelo para detalhes (#FFB703 / #F59E0B)
 */

:root {
  --color-primary: #9d0606;
  --color-primary-dark: #7a0404;
  --color-primary-light: #b90b0b;
  --color-primary-bg: #fdf2f2;

  --color-secondary: #0F2537;
  --color-secondary-light: #1E3A5F;
  --color-secondary-bg: #EAF2F8;

  --color-accent: #FFB703;
  --color-accent-dark: #F59E0B;
  --color-accent-light: #FFE380;
  --color-accent-bg: #FFF9E6;

  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5D;

  --color-bg: #F4F6F9;
  --color-card: #FFFFFF;
  --color-text: #1F2937;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-border: #E5E7EB;

  --color-open: #10B981;
  --color-open-bg: #ECFDF5;
  --color-closed: #EF4444;
  --color-closed-bg: #FEF2F2;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 60px;
  --footer-height: 65px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 37, 55, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 37, 55, 0.12);
  --transition: all 0.25s ease;
}

/* Reset Geral */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  font-size: 15px;
  padding-top: var(--header-height);
  padding-bottom: calc(var(--footer-height) + 20px);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Container Principal */
.dm-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================
   1. SPLASH SCREEN
   ========================================================== */
/* ==========================================================
   1. SPLASH SCREEN (NOVO: MOTO PASSANDO E NOME NO TOPO)
   ========================================================== */
.dm-splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #8f0608;
  background-image: radial-gradient(circle at 50% 45%, #9d090d 0%, #8f0608 60%, #760405 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  user-select: none;
  overflow: hidden;
  cursor: pointer;
}

.dm-splash-overlay.hidden,
html.dm-splash-seen .dm-splash-overlay,
body.dm-splash-seen .dm-splash-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
}

.dm-splash-top {
  width: 100%;
  padding-top: max(48px, 10vh);
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  z-index: 10;
}

.dm-splash-title {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.dm-splash-road-area {
  width: 100%;
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dm-splash-road-line {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.85) 0, rgba(255,255,255,0.85) 28px, transparent 28px, transparent 56px);
  animation: dmRoadMove 0.6s linear infinite;
}

.dm-splash-moto-wrap {
  position: absolute;
  bottom: 24px;
  animation: dmMotoPassScreen 4.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  will-change: transform;
}

.dm-splash-moto-bounce {
  position: relative;
  animation: dmMotoBounce 0.22s ease-in-out infinite alternate;
}

.dm-splash-headlight {
  position: absolute;
  top: 48px;
  left: 125px;
  width: 190px;
  height: 64px;
  pointer-events: none;
  opacity: 0.4;
  background: radial-gradient(ellipse at 0% 50%, rgba(255, 255, 200, 0.8) 0%, rgba(255, 255, 255, 0.15) 50%, transparent 80%);
  transform: rotate(-5deg);
}

.dm-splash-wind {
  position: absolute;
  top: 32px;
  left: -48px;
  pointer-events: none;
  opacity: 0.7;
  animation: dmWindPuff 0.3s ease-in-out infinite alternate;
}

.dm-splash-wind .w1 { display: block; width: 38px; height: 2.5px; background: rgba(255,255,255,0.6); border-radius: 99px; margin-bottom: 5px; }
.dm-splash-wind .w2 { display: block; width: 54px; height: 2.5px; background: rgba(255,255,255,0.8); border-radius: 99px; margin-bottom: 5px; }
.dm-splash-wind .w3 { display: block; width: 30px; height: 2.5px; background: rgba(255,255,255,0.5); border-radius: 99px; }

.dm-splash-moto-svg {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.dm-wheel {
  animation: dmWheelSpin 0.35s linear infinite;
}

.dm-wheel-rear {
  transform-origin: 50px 94px;
}

.dm-wheel-front {
  transform-origin: 124px 94px;
}

.dm-splash-bottom-bar {
  width: 48px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  margin-bottom: 24px;
  pointer-events: none;
}

@keyframes dmMotoPassScreen {
  0% {
    transform: translateX(-180px);
  }
  85% {
    transform: translateX(calc(100vw + 180px));
  }
  100% {
    transform: translateX(calc(100vw + 180px));
  }
}

@keyframes dmMotoBounce {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-3.5px) rotate(0.8deg);
  }
}

@keyframes dmWheelSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes dmRoadMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -56px 0;
  }
}

@keyframes dmWindPuff {
  0% {
    opacity: 0.3;
    transform: translateX(0px);
  }
  100% {
    opacity: 0.9;
    transform: translateX(-8px);
  }
}

/* ==========================================================
   2. HEADER FIXO & LOGO
   ========================================================== */
.dm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.dm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.dm-btn-hamburger {
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dm-btn-hamburger:hover {
  background: var(--color-bg);
}

.dm-btn-hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.dm-logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.dm-logo-icon-box {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(229, 25, 55, 0.35);
  border: 2px solid var(--color-accent);
}

.dm-logo-icon-box svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.dm-logo-text {
  display: flex;
  flex-direction: column;
}

.dm-logo-brand {
  font-size: 17px;
  font-weight: 900;
  color: var(--color-secondary);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.dm-logo-brand span {
  color: var(--color-primary);
}

.dm-logo-city-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
}

.dm-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dm-header-btn-cadastrar {
  background: var(--color-accent);
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.dm-header-btn-cadastrar:hover {
  background: var(--color-accent-dark);
}

/* Cardápio do Cliente: Ocultação garantida do Menu Hambúrguer e do Botão + Cadastrar no Cabeçalho */
.dm-page-cardapio .dm-btn-hamburger,
.dm-page-cardapio .dm-header-btn-cadastrar,
body:has(.dm-store-page) .dm-btn-hamburger,
body:has(.dm-store-page) .dm-header-btn-cadastrar,
body.route-estabelecimentos .dm-btn-hamburger,
body.route-estabelecimentos .dm-header-btn-cadastrar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dm-header-spacer-left {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  visibility: hidden;
}

/* ==========================================================
   3. MENU LATERAL (DRAWER)
   ========================================================== */
.dm-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 37, 55, 0.6);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dm-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.dm-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--color-card);
  z-index: 2001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.dm-drawer-backdrop.open .dm-drawer {
  transform: translateX(320px);
}

.dm-drawer-header {
  padding: 24px 20px;
  background: var(--color-secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--color-accent);
}

.dm-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-drawer-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.dm-drawer-sub {
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dm-drawer-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.dm-drawer-nav {
  padding: 16px 0;
  flex: 1;
}

.dm-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-secondary);
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.dm-drawer-link:hover, .dm-drawer-link.active {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.dm-drawer-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dm-drawer-link-highlight {
  background: var(--color-accent-bg);
  color: #B45309;
  border-left-color: var(--color-accent);
  margin: 8px 16px;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.dm-drawer-footer {
  padding: 20px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ==========================================================
   4. BANNER PRINCIPAL
   ========================================================== */
.dm-banner-section {
  padding: 16px 0 10px;
}

.dm-hero-banner {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--color-accent);
}

.dm-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dm-hero-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.dm-hero-subtitle {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
  margin-bottom: 16px;
  max-width: 520px;
}

.dm-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-hero-badge {
  background: var(--color-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dm-hero-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--color-accent);
}

/* ==========================================================
   5. BUSCA INTELIGENTE
   ========================================================== */
.dm-search-section {
  padding: 10px 0 16px;
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: var(--color-bg);
}

.dm-search-box {
  position: relative;
  width: 100%;
}

.dm-search-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 46px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-card);
  font-size: 14.5px;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.dm-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(229, 25, 55, 0.12);
}

.dm-search-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.dm-search-icon-left svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dm-search-btn-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-text-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dm-search-btn-clear.active {
  display: flex;
}

/* ==========================================================
   6. CATEGORIAS (STORIES MODERNOS COM ANEL E SCROLL SNAP)
   ========================================================== */
.dm-categories-section {
  padding: 8px 0 20px;
}

.dm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dm-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dm-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 4px;
}

.dm-categories-scroll-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 16px 12px 16px;
  margin: 0 -16px;
  display: flex;
  gap: 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.dm-categories-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* Item de Categoria em Formato de Story */
.dm-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  width: 74px;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.dm-category-item:hover {
  transform: translateY(-2px);
}

.dm-category-item:active {
  transform: scale(0.91);
}

/* Círculo do Story com Anel Colorido Sutil */
.dm-category-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
  color: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(15, 37, 55, 0.08);
  margin-bottom: 7px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #e2e8f0;
}

/* Anel sutil de stories tipo Instagram / WhatsApp Status */
.dm-category-circle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(229, 25, 55, 0.35) 0%, rgba(255, 183, 3, 0.45) 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  transition: all 0.25s ease;
  opacity: 0.6;
}

.dm-category-circle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dm-category-item:hover .dm-category-circle svg {
  transform: scale(1.1);
}

.dm-category-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  line-height: 1.25;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
  max-width: 72px;
}

/* Estado Ativo: Anel Dourado/Rubro Vibrante com Preenchimento */
.dm-category-item.active .dm-category-circle {
  background: linear-gradient(135deg, #9d0606 0%, #b90b0b 100%);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 6px 16px rgba(157, 6, 6, 0.35);
  transform: translateY(-2px);
}

.dm-category-item.active .dm-category-circle::before {
  inset: -5px;
  border-width: 2.5px;
  background: linear-gradient(135deg, #ffb703 0%, #f59e0b 50%, #9d0606 100%) border-box;
  opacity: 1;
  animation: dmStoryPulse 2.4s infinite ease-in-out;
}

@keyframes dmStoryPulse {
  0% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}

.dm-category-item.active .dm-category-name {
  color: var(--color-primary);
  font-weight: 800;
}

/* ==========================================================
   7. BARRA DE FILTROS FIXA (STICKY FILTERS)
   ========================================================== */
.dm-filters-section {
  position: sticky;
  top: var(--header-height);
  z-index: 80;
  background: rgba(244, 246, 249, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 0 10px;
  margin-top: -6px;
  margin-bottom: 8px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.dm-filters-section.is-pinned {
  box-shadow: 0 4px 14px rgba(15, 37, 55, 0.08);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.dm-filters-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px 4px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.dm-filters-bar::-webkit-scrollbar {
  display: none;
}

/* Chips de Filtro Modernos com Efeito Tátil */
.dm-filter-chip {
  background: var(--color-card);
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  line-height: 1.2;
}

.dm-filter-chip svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.dm-filter-chip:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-1px);
}

.dm-filter-chip:active {
  transform: scale(0.95);
}

/* Ponto Verde para 'Aberto agora' */
.dm-filter-dot-open {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* Chip Ativo em Super Destaque */
.dm-filter-chip.active {
  background: #0f2537;
  border-color: #0f2537;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 37, 55, 0.2);
  transform: translateY(-1px);
}

.dm-filter-chip.active svg {
  fill: #ffffff;
}

.dm-filter-chip.active[data-filter="aberto"] {
  background: #065f46;
  border-color: #065f46;
}

.dm-filter-chip.active[data-filter="avaliados"] {
  background: #92400e;
  border-color: #92400e;
}

.dm-filter-chip.active[data-filter="avaliados"] svg {
  fill: #fcd34d;
}

.dm-filter-chip.active[data-filter="favoritos"] {
  background: #be123c;
  border-color: #be123c;
}

.dm-filter-chip.active[data-filter="gratis"] {
  background: #15803d;
  border-color: #15803d;
}

/* ==========================================================
   8. LISTAGEM DE ESTABELECIMENTOS & CARDS MODERNOS
   ========================================================== */
.dm-stores-section {
  padding-bottom: 28px;
}

.dm-stores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .dm-stores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .dm-stores-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Animação Stagger Fade-In para Cards */
@keyframes dmCardFadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.dm-card-animated {
  animation: dmCardFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--card-delay, 0s);
}

/* Card Proeminente com Aspect Ratio 16:9 */
.dm-store-card {
  background: var(--color-card);
  border-radius: 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 10px rgba(15, 37, 55, 0.05);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dm-store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 37, 55, 0.12);
  border-color: rgba(229, 25, 55, 0.35);
}

.dm-store-card:active {
  transform: scale(0.985);
  box-shadow: 0 4px 12px rgba(15, 37, 55, 0.08);
}

/* Capa Proeminente 16:9 com Zoom Suave */
.dm-store-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.dm-store-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.dm-store-card:hover .dm-store-cover-img {
  transform: scale(1.06);
}

.dm-store-cover-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #9d0606 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.dm-store-cover-cat-icon {
  font-size: 38px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 2px;
}

.dm-store-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

/* Tag Flutuante de Status Aberto / Fechado */
.dm-store-floating-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}

.dm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dm-status-pill-open {
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.dm-status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: dmPulseRing 1.8s infinite;
}

@keyframes dmPulseRing {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.dm-status-pill-closed {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Avatar / Logo Flutuante na Capa */
.dm-store-avatar-badge {
  position: absolute;
  bottom: -16px;
  left: 14px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border: 2px solid #ffffff;
  z-index: 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.dm-store-card:hover .dm-store-avatar-badge {
  transform: scale(1.05);
}

.dm-store-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-store-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Corpo de Informações do Card */
.dm-store-body {
  padding: 22px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--color-card);
}

.dm-store-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dm-store-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.dm-badge-destaque {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

/* Linha de Indicadores Elegantes */
.dm-store-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  line-height: 1.3;
}

.dm-badge-rating-gold {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  padding: 1.5px 6.5px;
  border-radius: 6px;
  border: 1px solid #fde68a;
  font-size: 11.5px;
}

.dm-badge-rating-new {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 1.5px 6.5px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  font-size: 11px;
}

.dm-star-icon {
  color: #f59e0b;
  font-size: 12px;
}

.dm-rating-count {
  font-weight: 600;
  font-size: 10px;
  opacity: 0.85;
}

.dm-meta-bullet {
  color: #cbd5e1;
  font-size: 10px;
}

.dm-store-category-tag {
  font-weight: 600;
  color: #475569;
}

.dm-badge-delivery-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  color: #475569;
}

.dm-store-taxa-tag {
  font-weight: 700;
  font-size: 11.5px;
  color: #334155;
}

/* Match no Cardápio (Busca) */
.dm-card-match-preview {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 2px;
}

.dm-match-label {
  font-weight: 800;
  flex-shrink: 0;
}

.dm-match-text {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Visualização Rápida dos Mais Pedidos */
.dm-card-top-items {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  padding-top: 4px;
  border-top: 1px dashed #f1f5f9;
  overflow: hidden;
}

.dm-top-items-fire {
  font-size: 13px;
  flex-shrink: 0;
}

.dm-top-items-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.dm-top-item-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* Rodapé Sutil do Card */
.dm-store-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.dm-store-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.dm-store-location svg {
  color: #94a3b8;
}

.dm-store-action-hint {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 11.5px;
  transition: transform 0.2s ease;
}

.dm-store-card:hover .dm-store-action-hint {
  transform: translateX(3px);
}

.dm-store-arrow {
  display: none !important;
}

/* Estado Vazio (Sem Estabelecimentos) */
.dm-empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  margin-top: 10px;
}

.dm-empty-icon-box {
  width: 72px;
  height: 72px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.dm-empty-icon-box svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.dm-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.dm-empty-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 420px;
  margin: 0 auto 20px;
}

.dm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(229, 25, 55, 0.25);
  transition: var(--transition);
}

.dm-btn-primary:hover {
  background: var(--color-primary-dark);
}

/* ==========================================================
   9. FOOTER FIXO NATIVO (5 BOTÕES)
   ========================================================== */
.dm-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background: var(--color-card);
  box-shadow: 0 -2px 10px rgba(15, 37, 55, 0.08);
  border-top: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.dm-footer-inner {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  position: relative;
}

.dm-footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 600;
  gap: 3px;
  transition: var(--transition);
}

.dm-footer-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dm-footer-item:hover, .dm-footer-item.active {
  color: var(--color-primary);
}

.dm-footer-item-whatsapp:hover {
  color: #10B981 !important;
}

.dm-drawer-link-whatsapp:hover {
  background: #ECFDF5 !important;
  color: #059669 !important;
  border-left-color: #10B981 !important;
}

/* Botão Cadastrar Especialmente Destacado */
.dm-footer-item-cadastrar {
  position: relative;
  top: -12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
}

.dm-footer-cadastrar-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(229, 25, 55, 0.35);
  border: 3px solid var(--color-card);
  transition: var(--transition);
}

.dm-footer-cadastrar-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--color-accent);
}

.dm-footer-cadastrar-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 2px;
}

.dm-footer-item-cadastrar:hover .dm-footer-cadastrar-btn {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(229, 25, 55, 0.5);
}

/* ==========================================================
   10. PÁGINA INDIVIDUAL DA LOJA (DELIVERY APP UI)
   ========================================================== */
.dm-store-page {
  padding-top: 0;
}

.dm-store-banner-header {
  position: relative;
  width: 100%;
  height: 220px;
  background: #1e293b;
  overflow: hidden;
}

@media (min-width: 640px) {
  .dm-store-banner-header {
    height: 260px;
  }
}

@media (min-width: 1024px) {
  .dm-store-banner-header {
    height: 300px;
  }
}

.dm-store-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  display: block;
}

/* Sombra e gradiente suave superior para contraste nítido dos botões */
.dm-store-banner-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.dm-store-btn-back {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  background: rgba(15, 37, 55, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.dm-store-btn-back:hover {
  background: rgba(15, 37, 55, 0.95);
  transform: scale(1.05);
}

.dm-store-btn-back svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Card Branco de Informações Superior - BAIXADO PARA MOSTRAR BANNER COMPLETO */
.dm-store-card-info-top {
  position: relative;
  margin-top: 16px;
  background: var(--color-card);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

/* Linha superior dentro do card: Avatar + Info */
.dm-store-header-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.dm-store-avatar-box {
  position: static;
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid var(--color-border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dm-store-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-store-avatar-fallback {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dm-store-info-header {
  padding-left: 0;
  min-height: auto;
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.dm-store-title-fav-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dm-store-page-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.25;
  margin: 0;
  word-break: break-word;
}

.dm-store-page-category {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dm-store-cat-dot {
  opacity: 0.5;
}

.dm-store-desc-box {
  font-size: 13.5px;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 14px;
}

.dm-store-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.dm-chip-item {
  background: var(--color-bg);
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-weight: 600;
}

.dm-chip-item svg {
  width: 14px;
  height: 14px;
  fill: var(--color-primary);
}

/* Produtos da Loja */
.dm-store-products-section {
  margin-bottom: 30px;
}

.dm-category-products-group {
  margin-bottom: 28px;
}

.dm-category-group-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 14px;
  padding: 8px 14px;
  background: #f8fafc;
  border-left: 5px solid var(--color-primary);
  border-radius: 6px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dm-store-categories-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px 2px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.dm-store-categories-bar::-webkit-scrollbar {
  display: none;
}

.dm-store-category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  color: var(--color-secondary);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
  outline: none;
  flex-shrink: 0;
  line-height: 1.2;
}

.dm-store-category-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--color-secondary);
}

.dm-store-category-chip.active,
.dm-store-category-chip.active:hover {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 12px rgba(157, 6, 6, 0.28) !important;
  transform: translateY(-1px);
}

.dm-category-products-group {
  margin-bottom: 28px;
  transition: opacity 0.2s ease;
}

.dm-category-products-group.dm-cat-fade-in {
  animation: dmFadeInCat 0.22s ease-out;
}

@keyframes dmFadeInCat {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dm-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .dm-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dm-product-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.dm-product-card:hover {
  border-color: rgba(229, 25, 55, 0.3);
  box-shadow: var(--shadow-md);
}

.dm-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dm-product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.dm-product-description {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}

.dm-product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
}

.dm-product-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.dm-product-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-bg);
}

.dm-btn-add-cart {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.dm-btn-add-cart:hover {
  background: var(--color-primary-dark);
}

.dm-btn-add-cart.dm-btn-added-feedback {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  transform: scale(0.96);
  pointer-events: none;
}

/* Barra Flutuante de Sacola com Prévia */
.dm-floating-cart-bar {
  position: fixed;
  bottom: calc(var(--footer-height) + 14px);
  left: 16px;
  right: 16px;
  max-width: 580px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0F2537 0%, #17324B 100%);
  color: #ffffff;
  border-radius: 9999px;
  padding: 10px 14px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(15, 37, 55, 0.42), 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #FFB703;
  z-index: 990;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  animation: dmFloatingBarPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.dm-floating-cart-bar:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 38px rgba(15, 37, 55, 0.5), 0 6px 14px rgba(255, 183, 3, 0.25);
}

.dm-floating-cart-bar:active {
  transform: translateY(1px) scale(0.99);
}

@keyframes dmFloatingBarPop {
  0% { transform: translateY(80px) scale(0.92); opacity: 0; }
  70% { transform: translateY(-4px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.dm-cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dm-cart-bar-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(255, 183, 3, 0.15);
  border: 1.5px solid rgba(255, 183, 3, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFB703;
}

.dm-cart-bar-icon {
  width: 22px;
  height: 22px;
}

.dm-cart-bar-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0F2537;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  animation: dmBadgePulse 0.3s ease;
}

@keyframes dmBadgePulse {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.dm-cart-bar-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dm-cart-bar-itens-txt {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-cart-bar-total {
  font-size: 16px;
  font-weight: 900;
  color: #FFB703;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.dm-cart-bar-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFB703;
  color: #0F2537;
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255, 183, 3, 0.35);
  transition: all 0.18s ease;
}

.dm-floating-cart-bar:hover .dm-cart-bar-action {
  background: #fca311;
  transform: translateX(2px);
}

.dm-cart-bar-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.dm-floating-cart-bar:hover .dm-cart-bar-arrow {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .dm-floating-cart-bar {
    left: 12px;
    right: 12px;
    padding: 8px 12px 8px 14px;
    bottom: calc(var(--footer-height) + 10px);
  }
  .dm-cart-bar-icon-wrap {
    width: 38px;
    height: 38px;
  }
  .dm-cart-bar-icon {
    width: 19px;
    height: 19px;
  }
  .dm-cart-bar-total {
    font-size: 15px;
  }
  .dm-cart-bar-action {
    padding: 8px 13px;
    font-size: 12.5px;
  }
}

/* ==========================================================
   11. MODAL DO CARRINHO & CHECKOUT WHATSAPP (GAVETA / BOTTOM SHEET)
   ========================================================== */
.dm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(15, 37, 55, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.dm-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 640px) {
  .dm-modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

/* Gaveta (Drawer / Bottom Sheet) com Animação Nativa de App Mobile */
.dm-modal-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  height: auto;
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.dm-modal-overlay.open .dm-modal-sheet {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .dm-modal-sheet {
    border-radius: 20px;
    max-height: 88vh;
    box-shadow: 0 20px 50px rgba(15, 37, 55, 0.35);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  }
  .dm-modal-overlay.open .dm-modal-sheet {
    transform: translateY(0) scale(1);
  }
}

/* Puxador (Drag Handle) Típico de Bottom Sheet Mobile */
.dm-drawer-handle-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 4px;
  background: var(--color-secondary);
  cursor: grab;
}

.dm-drawer-handle {
  width: 44px;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease;
}

.dm-drawer-handle-bar:hover .dm-drawer-handle {
  background: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
  .dm-drawer-handle-bar {
    display: none;
  }
}

.dm-modal-header {
  padding: 14px 20px 16px;
  background: var(--color-secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #FFB703;
  gap: 12px;
}

.dm-modal-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dm-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dm-modal-subtitle-status {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
  font-weight: 500;
}

.dm-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dm-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.dm-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.dm-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.dm-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
}

.dm-cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
}

.dm-cart-item-unit-price {
  font-size: 12px;
  color: var(--color-text-muted);
}

.dm-cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dm-btn-qty {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1.5px solid transparent;
  outline: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  user-select: none;
}

.dm-btn-qty svg {
  display: block;
  pointer-events: none;
}

.dm-btn-qty:active {
  transform: scale(0.88);
}

/* Botão Menos (-) em destaque com borda refinada e tom avermelhado suave */
.dm-btn-qty-minus {
  background: #ffffff;
  border-color: #fca5a5;
  color: #dc2626;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.12);
}

.dm-btn-qty-minus:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.22);
}

/* Botão Mais (+) em super destaque com preenchimento da marca e sombra suave */
.dm-btn-qty-plus {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(157, 6, 6, 0.35);
}

.dm-btn-qty-plus:hover {
  background: #780000;
  border-color: #780000;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(157, 6, 6, 0.5);
  transform: translateY(-1px);
}

.dm-btn-qty-plus:active {
  transform: scale(0.88);
  box-shadow: 0 1px 3px rgba(157, 6, 6, 0.3);
}

.dm-cart-qty-num {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  min-width: 24px;
  text-align: center;
  user-select: none;
  letter-spacing: -0.02em;
}

/* Formulário de Entrega e Campos Gerais */
.dm-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.dm-label,
.dm-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.dm-label .required,
.dm-form-label .required {
  color: var(--color-primary);
  margin-left: 2px;
}

.dm-form-hint,
.dm-input-hint {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.4;
}

/* Campos de Digitação: Inputs, Selects e Textareas */
.dm-input,
.dm-form-input,
.dm-form-select,
.dm-form-textarea,
select.dm-input,
textarea.dm-input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 44px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dm-input:hover,
.dm-form-input:hover,
.dm-form-select:hover,
.dm-form-textarea:hover,
select.dm-input:hover,
textarea.dm-input:hover {
  border-color: #94a3b8;
}

.dm-input:focus,
.dm-form-input:focus,
.dm-form-select:focus,
.dm-form-textarea:focus,
select.dm-input:focus,
textarea.dm-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3.5px rgba(157, 6, 6, 0.14), 0 1px 2px rgba(15, 23, 42, 0.05);
  background-color: #ffffff;
}

.dm-input::placeholder,
.dm-form-input::placeholder,
.dm-form-textarea::placeholder,
textarea.dm-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Select Estilizado com SVG Customizado */
select.dm-input,
.dm-form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

/* Textarea Estilizado */
textarea.dm-input,
.dm-form-textarea {
  resize: vertical;
  min-height: 86px;
  padding: 12px 14px;
}

/* Grupo de Input com Prefixo / Sufixo (ex: R$ ou Ícone) */
.dm-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.dm-input-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.dm-input-group .dm-input,
.dm-input-group .dm-form-input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.dm-input-group .dm-input:focus,
.dm-input-group .dm-form-input:focus {
  z-index: 2;
}

/* Checkbox Cards Estilizados */
.dm-checkbox-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.dm-checkbox-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.dm-checkbox-card input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
  border-radius: 4px;
  margin: 0;
}

.dm-checkbox-card span {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

/* Seções de Formulário */
.dm-form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 20px;
  margin-top: 10px;
}

.dm-form-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.dm-cart-summary-box {
  background: var(--color-bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.dm-cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.dm-cart-summary-row.total {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-secondary);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.dm-btn-whatsapp-submit {
  width: 100%;
  padding: 14px;
  background: var(--color-whatsapp);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.dm-btn-whatsapp-submit:hover {
  background: var(--color-whatsapp-dark);
}

.dm-btn-whatsapp-submit svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* -------------------------------------------------------------
   SELETOR DE MODALIDADE: DELIVERY OU RETIRADA NO ESTABELECIMENTO
   ------------------------------------------------------------- */
.dm-delivery-type-section {
  margin-bottom: 16px;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.dm-badge-modo-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  transition: all 0.2s ease;
}

.dm-delivery-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dm-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.dm-type-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.dm-type-card.active {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.12);
}

.dm-type-card .dm-type-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dm-type-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.dm-type-icon {
  font-size: 20px;
  line-height: 1;
}

.dm-type-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.dm-type-card.active .dm-type-title {
  color: #c2410c;
}

.dm-type-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.3;
}

.dm-type-fee-badge {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.dm-type-card.active .dm-type-fee-badge:not(.dm-fee-free) {
  background: #ffedd5;
  color: #c2410c;
}

.dm-type-fee-badge.dm-fee-free {
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
}

.dm-pickup-info-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  margin-bottom: 16px;
  animation: dmFadeIn 0.25s ease-out;
}

.dm-pickup-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.dm-pickup-content {
  flex: 1;
  min-width: 0;
}

.dm-pickup-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #166534;
}

.dm-pickup-loja-nome {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

.dm-pickup-address {
  font-size: 13px;
  color: #1e293b;
  margin-top: 2px;
  line-height: 1.4;
}

.dm-pickup-hint {
  font-size: 11.5px;
  color: #15803d;
  margin-top: 6px;
  line-height: 1.4;
  font-weight: 600;
}

@keyframes dmFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .dm-delivery-type-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .dm-type-card {
    padding: 10px 10px;
  }
  .dm-type-title {
    font-size: 13px;
  }
  .dm-type-desc {
    font-size: 11px;
  }
}

/* Card Visual Cristalino de Endereço e Taxa de Entrega */
.dm-delivery-address-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px 16px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dm-delivery-address-card:focus-within {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 37, 55, 0.06);
}

.dm-delivery-address-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #cbd5e1;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-delivery-address-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.dm-delivery-address-icon {
  font-size: 16px;
  line-height: 1;
}

.dm-delivery-taxa-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.dm-delivery-taxa-badge.dm-taxa-free {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

/* ==========================================================
   12. PAINEL DO LOJISTA & ADMIN
   ========================================================== */
.dm-admin-layout {
  padding: 16px 0 40px;
}

.dm-admin-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.dm-admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.dm-admin-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-secondary);
}

.dm-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .dm-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dm-stat-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.dm-stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dm-stat-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-primary);
}

.dm-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.dm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.dm-table th {
  background: var(--color-bg);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
}

.dm-table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.dm-table tr:hover td {
  background: var(--color-primary-bg);
}

.dm-badge-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.dm-badge-pill.ativo { background: var(--color-open-bg); color: var(--color-open); }
.dm-badge-pill.inativo { background: var(--color-closed-bg); color: var(--color-closed); }

.dm-actions-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dm-btn-action {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.dm-btn-action:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.dm-btn-action.edit {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.dm-btn-action.edit:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.dm-btn-action.delete:hover {
  background: #DC2626;
  border-color: #DC2626;
}

/* Alertas de Sucesso e Erro */
.dm-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dm-alert-success {
  background: var(--color-open-bg);
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.dm-alert-error {
  background: var(--color-closed-bg);
  color: #991B1B;
  border: 1px solid #FECACA;
}

.dm-alert-info {
  background: var(--color-secondary-bg);
  color: var(--color-secondary);
  border: 1px solid #BFDBFE;
}

/* ==========================================================
   13. NOVO LAYOUT DO PAINEL ADMIN COM MENU LATERAL ESQUERDO
   ========================================================== */
.dm-admin-body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-color: #f1f5f9;
  min-height: 100vh;
}

.dm-admin-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar Esquerda Fixa */
.dm-admin-sidebar {
  width: 270px;
  background-color: #0F2537;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dm-admin-sidebar-header {
  padding: 20px 22px;
  background: #091722;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dm-admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.dm-admin-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(157, 6, 6, 0.4);
}

.dm-admin-brand-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.dm-admin-brand-text h2 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.dm-admin-brand-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 183, 3, 0.2);
  color: var(--color-accent);
  margin-top: 2px;
}

.dm-admin-user-profile {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.dm-admin-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.dm-admin-user-info {
  line-height: 1.3;
  overflow: hidden;
}

.dm-admin-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-admin-user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.dm-admin-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dm-admin-nav-title {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  padding: 10px 14px 4px;
}

.dm-admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.dm-admin-nav-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}

.dm-admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dm-admin-nav-link:hover svg {
  opacity: 1;
}

.dm-admin-nav-link.active {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(157, 6, 6, 0.35);
}

.dm-admin-nav-link.active svg {
  opacity: 1;
}

.dm-admin-nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.dm-admin-nav-link.active .dm-admin-nav-badge {
  background: rgba(0, 0, 0, 0.25);
}

.dm-admin-sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #091722;
}

.dm-admin-footer-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.dm-admin-footer-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.dm-admin-footer-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dm-admin-footer-btn.logout:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
}

/* Área Principal à Direita */
.dm-admin-main {
  flex: 1;
  margin-left: 270px;
  padding: 24px 30px 60px;
  min-width: 0;
  background: #f8fafc;
}

/* Barra Superior do Admin */
.dm-admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.dm-admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dm-admin-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-secondary);
}

.dm-admin-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dm-admin-topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.2;
}

.dm-admin-topbar-subtitle {
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.dm-admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Overlay para Mobile */
.dm-admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  backdrop-filter: blur(2px);
}

@media (max-width: 991px) {
  .dm-admin-sidebar {
    transform: translateX(-100%);
  }

  .dm-admin-sidebar.open {
    transform: translateX(0);
  }

  .dm-admin-main {
    margin-left: 0;
    padding: 16px;
  }

  .dm-admin-toggle-btn {
    display: flex;
  }

  .dm-admin-overlay.open {
    display: block;
  }
}

/* ==========================================================
   COMPONENTES DE UPLOAD DE IMAGENS (LOGO QUADRADA & BANNER)
   ========================================================== */
.dm-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.dm-upload-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease;
}

.dm-upload-card:hover {
  border-color: #cbd5e1;
}

.dm-upload-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dm-upload-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dm-upload-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dm-upload-badge.required {
  background: #fee2e2;
  color: #9d0606;
}

.dm-upload-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.dm-upload-body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dm-upload-preview-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dm-upload-preview-box.square {
  width: 110px;
  height: 110px;
}

.dm-upload-preview-box.banner {
  width: 100%;
  max-width: 280px;
  height: 94px;
}

.dm-upload-preview-box:hover {
  border-color: var(--color-primary);
  background: #fff;
}

.dm-upload-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-align: center;
  padding: 8px;
  pointer-events: none;
}

.dm-upload-preview-placeholder svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.dm-upload-preview-placeholder span {
  font-size: 11px;
  font-weight: 600;
}

.dm-upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-upload-controls {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-upload-btn-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.dm-upload-btn-trigger:hover {
  background: #ffffff;
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(157, 6, 6, 0.08);
}

.dm-upload-btn-trigger svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.dm-upload-file-status {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}

.dm-upload-file-status.selected {
  color: #059669;
  font-weight: 600;
}

.dm-upload-url-input {
  margin-top: 4px;
}

.dm-upload-url-input .dm-input {
  font-size: 12px;
  height: 36px;
  padding: 6px 10px;
}

/* ==========================================================
   26. HORÁRIOS DE FUNCIONAMENTO (3 TURNOS)
   ========================================================== */
.dm-turnos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.dm-turno-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.dm-turno-card.primary {
  border-color: rgba(157, 6, 6, 0.3);
  background: #fffcfc;
  box-shadow: 0 2px 8px rgba(157, 6, 6, 0.04);
}

.dm-turno-card:hover {
  border-color: #cbd5e1;
}

.dm-turno-card.primary:hover {
  border-color: var(--color-primary);
}

.dm-turno-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dm-turno-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.dm-turno-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.dm-turno-card.primary .dm-turno-num {
  background: var(--color-primary);
  color: #ffffff;
}

.dm-badge-required {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fef2f2;
  color: #9d0606;
  border: 1px solid rgba(157, 6, 6, 0.2);
}

.dm-badge-optional {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.dm-turno-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dm-time-input {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.dm-turno-hint {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

.dm-day-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.dm-day-chip:has(input:checked) {
  background: #fef2f2;
  border-color: #9d0606;
  color: #9d0606;
  font-weight: 700;
}

.dm-day-chip input[type="checkbox"] {
  accent-color: #9d0606;
}

/* ==========================================================
   MODAL DE LOJA FECHADA (ESTILO MODERNO E AMIGÁVEL)
   ========================================================== */
.dm-modal-closed-overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: 16px;
  background: rgba(15, 37, 55, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 4000 !important;
}

.dm-closed-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  padding: 30px 24px 26px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 50px rgba(15, 37, 55, 0.28), 0 10px 20px rgba(0, 0, 0, 0.12);
  transform: scale(0.92) translateY(14px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.24s ease;
  border: 1px solid rgba(229, 231, 235, 0.95);
}

.dm-modal-closed-overlay.open .dm-closed-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.dm-closed-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.dm-closed-modal-close:hover {
  background: #e2e8f0;
  color: #0f2537;
  transform: scale(1.06);
}

.dm-closed-icon-bubble {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin: 0 auto 14px;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.18);
  animation: dmSadFloat 3s ease-in-out infinite;
}

@keyframes dmSadFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-3deg);
  }
}

.dm-closed-badge-wrap {
  margin-bottom: 10px;
}

.dm-closed-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid #fecaca;
}

.dm-closed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.dm-closed-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f2537;
  margin: 0 0 8px;
  line-height: 1.28;
}

.dm-closed-desc {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 0 4px;
}

.dm-closed-time-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.1);
}

.dm-closed-time-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #d97706;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

.dm-closed-time-icon svg {
  width: 22px;
  height: 22px;
}

.dm-closed-time-info {
  flex: 1;
  min-width: 0;
}

.dm-closed-time-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #92400e;
  margin-bottom: 2px;
}

.dm-closed-time-val {
  font-size: 15.5px;
  font-weight: 900;
  color: #78350f;
  line-height: 1.25;
}

.dm-closed-note {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px dashed #e2e8f0;
}

.dm-closed-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-btn-closed-ok {
  width: 100%;
  padding: 14px;
  background: #0f2537;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(15, 37, 55, 0.15);
}

.dm-btn-closed-ok:hover {
  background: #1e3a5f;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 37, 55, 0.22);
}

.dm-btn-closed-zap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: var(--transition);
}

.dm-btn-closed-zap:hover {
  background: #ecfdf5;
  color: #047857;
}

/* BANNER DE LOJA FECHADA NO CARDÁPIO */
.dm-store-closed-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08);
  transition: var(--transition);
}

.dm-store-closed-banner:hover {
  border-color: #fdba74;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.14);
}

.dm-store-closed-banner-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  animation: dmSadFloat 3s ease-in-out infinite;
}

.dm-store-closed-banner-body {
  flex: 1;
  min-width: 0;
}

.dm-store-closed-banner-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 2px;
}

.dm-store-closed-banner-subtitle {
  font-size: 12.5px;
  color: #7c2d12;
  line-height: 1.4;
}

.dm-store-closed-banner-action {
  flex-shrink: 0;
}

.dm-store-closed-banner-badge {
  display: inline-block;
  background: #ea580c;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* BOTÃO ADICIONAR COM LOJA FECHADA */
.dm-btn-add-cart.dm-btn-add-closed {
  background: #f1f5f9;
  color: #64748b;
  border: 1.5px solid #cbd5e1;
  box-shadow: none;
}

.dm-btn-add-cart.dm-btn-add-closed:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

@media (max-width: 576px) {
  .dm-closed-modal-card {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }
  .dm-store-closed-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .dm-store-closed-banner-action {
    width: 100%;
  }
  .dm-store-closed-banner-badge {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/* ==========================================================
   SISTEMA DE FAVORITOS (LOJA ABERTA, CARDS, HEADER E TOAST)
   ========================================================== */
.dm-header-btn-fav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.dm-header-btn-fav:hover,
.dm-header-btn-fav.active {
  background: #ffe4e6;
  border-color: #fca5a5;
  color: #e11d48;
}

.dm-header-btn-fav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.dm-fav-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(225, 29, 72, 0.4);
}

/* Botão Único e Estratégico de Favorito no Card da Loja */
.dm-store-btn-fav-single {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.dm-store-btn-fav-single:hover {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
  transform: scale(1.08);
}

.dm-store-btn-fav-single:active {
  transform: scale(0.92);
}

.dm-store-btn-fav-single svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: all 0.22s ease;
  pointer-events: none;
  display: block;
}

.dm-store-btn-fav-single.favorited,
.dm-store-btn-fav-single.active {
  background: #ffe4e6;
  border-color: #fecdd3;
  color: #e11d48;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.dm-store-btn-fav-single.favorited svg,
.dm-store-btn-fav-single.active svg {
  fill: #e11d48;
  stroke: #e11d48;
  animation: dmHeartBeat 0.35s ease-out;
}

@keyframes dmHeartBeat {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Botão Flutuante de Favorito no Banner da Loja (Legado/Compatibilidade) */
.dm-store-btn-fav-banner {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(15, 37, 55, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.dm-store-btn-fav-banner svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.25s ease, fill 0.25s ease, stroke 0.25s ease;
}

.dm-store-btn-fav-banner:hover {
  transform: scale(1.1);
  background: rgba(15, 37, 55, 0.9);
  color: #ff4d6d;
}

.dm-store-btn-fav-banner.favorited,
.dm-store-btn-fav-banner.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #e11d48;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.dm-store-btn-fav-banner.favorited svg,
.dm-store-btn-fav-banner.active svg {
  fill: #e11d48;
  stroke: #e11d48;
  transform: scale(1.08);
}

/* Botão no Card Superior de Detalhes da Loja */
.dm-store-title-fav-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.dm-store-btn-fav-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dm-store-btn-fav-card svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.dm-store-btn-fav-card:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #e11d48;
  transform: translateY(-1px);
}

.dm-store-btn-fav-card.favorited,
.dm-store-btn-fav-card.active {
  background: #ffe4e6;
  border-color: #fecdd3;
  color: #e11d48;
}

.dm-store-btn-fav-card.favorited svg,
.dm-store-btn-fav-card.active svg {
  fill: #e11d48;
  stroke: #e11d48;
}

/* Botão nos Cards da Vitrine / Home */
.dm-store-card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.dm-store-card-fav-btn:hover {
  transform: scale(1.1);
  color: #e11d48;
  background: #ffffff;
  border-color: #fecdd3;
}

.dm-store-card-fav-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  pointer-events: none;
}

.dm-store-card-fav-btn.favorited,
.dm-store-card-fav-btn.active {
  color: #e11d48;
  background: #ffffff;
  border-color: #fecdd3;
}

.dm-store-card-fav-btn.favorited svg,
.dm-store-card-fav-btn.active svg {
  fill: #e11d48;
  stroke: #e11d48;
}

/* Toast de Feedback de Favorito */
.dm-fav-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dm-fav-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dm-fav-toast svg {
  width: 18px;
  height: 18px;
  fill: #e11d48;
  flex-shrink: 0;
}

/* ==========================================================================
   DELIVERY PIZZARIA — IDENTIDADE VISUAL E PIZZA BUILDER 2 SABORES
   ========================================================================== */

/* Badges e Chips de Pizzaria */
.dm-chip-pizzaria {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.dm-chip-pizzaria-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 600;
}

/* Banner de Destaque da Pizzaria (Monte Meio a Meio) */
.dm-pizza-hero-banner {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid #44403c;
}

@media (min-width: 768px) {
  .dm-pizza-hero-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px;
  }
}

.dm-pizza-hero-banner::before {
  content: "🍕";
  position: absolute;
  right: -15px;
  bottom: -25px;
  font-size: 130px;
  opacity: 0.12;
  pointer-events: none;
  transform: rotate(-15deg);
}

.dm-pizza-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 8px;
}

.dm-pizza-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .dm-pizza-hero-title {
    font-size: 24px;
  }
}

.dm-pizza-hero-desc {
  font-size: 13.5px;
  color: #d6d3d1;
  margin: 0;
  max-width: 580px;
  line-height: 1.5;
}

.dm-btn-pizza-hero {
  background: #ea580c;
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.dm-btn-pizza-hero:hover {
  background: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
  color: #ffffff;
}

/* Botão nos cards de Pizza no cardápio */
.dm-btn-pizza-choose {
  background: #ea580c !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
}

.dm-btn-pizza-choose:hover {
  background: #c2410c !important;
  border-color: #c2410c !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   MODAL DO PIZZA BUILDER (MONTE SUA PIZZA)
   ========================================================================== */
.dm-pizza-modal-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  height: 90vh;
  height: 90dvh;
  max-height: 90vh;
  max-height: 90dvh;
  max-height: calc(100dvh - 20px);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: dmModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto;
  position: relative;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .dm-pizza-modal-sheet {
    border-radius: 20px;
    margin: auto;
    height: auto;
    max-height: 88vh;
    max-height: 88dvh;
  }
}

.dm-pizza-modal-header {
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.dm-pizza-modal-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dm-pizza-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.dm-pizza-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.dm-pizza-modal-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0 0;
}

.dm-pizza-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Seções de configuração */
.dm-pizza-step-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dm-pizza-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dm-pizza-step-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dm-pizza-step-num {
  width: 22px;
  height: 22px;
  background: #ea580c;
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.dm-pizza-step-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Tamanhos Grid */
.dm-pizza-sizes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 540px) {
  .dm-pizza-sizes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dm-pizza-size-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
  position: relative;
}

.dm-pizza-size-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.dm-pizza-size-card.active {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}

.dm-pizza-size-tag {
  position: absolute;
  top: -8px;
  right: 50%;
  transform: translateX(50%);
  background: #ea580c;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.dm-pizza-size-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.dm-pizza-size-slices {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.dm-pizza-size-desc {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Alternador de Sabores (1 Sabor vs 2 Sabores) */
.dm-pizza-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.dm-pizza-mode-btn {
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.dm-pizza-mode-btn.active {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Alerta em Destaque da Regra de Preço (Mais Caro) */
.dm-pizza-price-rule-alert {
  margin-top: 10px;
  margin-bottom: 12px;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
  animation: dmFadeIn 0.3s ease;
}

.dm-pizza-price-rule-icon {
  color: #d97706;
  flex-shrink: 0;
  margin-top: 1px;
}

.dm-pizza-price-rule-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 3px;
}

.dm-pizza-price-rule-desc {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.45;
}

.dm-pizza-price-rule-desc strong {
  color: #b45309;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dm-pizza-price-compare-line {
  margin-top: 6px;
  font-size: 12px;
  background: #fef3c7;
  color: #92400e;
  padding: 5px 9px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  border: 1px solid #fde68a;
  line-height: 1.35;
}

/* Indicador Visual Meio a Meio */
.dm-pizza-visual-preview {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dm-pizza-wheel-graphic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #ea580c;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #fed7aa;
}

.dm-pizza-wheel-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
}

.dm-pizza-wheel-half.left {
  left: 0;
  background: #fb923c;
  border-right: 1.5px dashed #7c2d12;
}

.dm-pizza-wheel-half.right {
  right: 0;
  background: #f97316;
}

.dm-pizza-preview-text-box {
  flex: 1;
}

.dm-pizza-preview-sub {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.5px;
}

.dm-pizza-preview-flavors {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
  line-height: 1.4;
}

/* Abas de Escolha 1º e 2º Sabor */
.dm-pizza-halves-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dm-pizza-half-tab-btn {
  padding: 10px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.dm-pizza-half-tab-btn.active {
  border-color: #ea580c;
  background: #fff7ed;
}

.dm-pizza-half-tab-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ea580c;
}

.dm-pizza-half-tab-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lista de Sabores para Selecionar */
.dm-pizza-flavor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.dm-pizza-flavor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dm-pizza-flavor-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dm-pizza-flavor-card.selected {
  border-color: #ea580c;
  background: #fff7ed;
}

.dm-pizza-flavor-card-info {
  flex: 1;
  padding-right: 12px;
}

.dm-pizza-flavor-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.dm-pizza-flavor-card-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dm-pizza-flavor-card-price {
  font-size: 13px;
  font-weight: 800;
  color: #ea580c;
  white-space: nowrap;
}

/* Bordas Recheadas Grid */
.dm-pizza-crust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .dm-pizza-crust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dm-pizza-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dm-pizza-option-card:hover {
  border-color: #cbd5e1;
}

.dm-pizza-option-card.active {
  border-color: #ea580c;
  background: #fff7ed;
}

.dm-pizza-option-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.dm-pizza-option-price {
  font-size: 12px;
  font-weight: 800;
  color: #ea580c;
}

/* Adicionais & Remoções */
.dm-pizza-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .dm-pizza-checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dm-pizza-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.dm-pizza-checkbox-label:hover {
  background: #f8fafc;
}

.dm-pizza-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ea580c;
}

/* Footer do Modal */
.dm-pizza-modal-footer {
  flex-shrink: 0;
  padding: 12px 16px;
  padding-bottom: max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 50;
  box-sizing: border-box;
}

.dm-pizza-footer-total-box {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.dm-pizza-footer-total-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.dm-pizza-footer-total-val {
  font-size: 21px;
  font-weight: 800;
  color: #ea580c;
  line-height: 1.15;
}

.dm-btn-pizza-confirm {
  flex: 1;
  max-width: 320px;
  min-height: 48px;
  background: #ea580c;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dm-btn-pizza-confirm:hover,
.dm-btn-pizza-confirm:active {
  background: #c2410c;
  box-shadow: 0 4px 16px rgba(194, 65, 12, 0.5);
}

/* ==========================================================================
   CHAVE PIX AUTOMÁTICA NO CHECKOUT
   ========================================================================== */
.dm-pix-checkout-wrap {
  margin-top: 12px;
  margin-bottom: 16px;
  animation: dmFadeInUp 0.25s ease-out;
}

@keyframes dmFadeInUp {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dm-pix-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.08);
  box-sizing: border-box;
}

.dm-pix-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-pix-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dm-pix-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #16a34a;
  color: #ffffff;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.25);
}

.dm-pix-header-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #166534;
}

.dm-pix-header-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
}

.dm-pix-box-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.dm-pix-tag {
  font-size: 12px;
  color: #166534;
  background: #ffffff;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  font-weight: 500;
}

.dm-pix-key-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1.5px dashed #16a34a;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.dm-pix-key-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #14532d;
  word-break: break-all;
  user-select: all;
  line-height: 1.35;
  flex: 1;
}

.dm-btn-copy-pix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dm-btn-copy-pix:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}

.dm-btn-copy-pix:active {
  transform: translateY(0);
}

.dm-btn-copy-pix.copied {
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35) !important;
  transform: scale(1.02);
}

.dm-pix-instructions {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: #15803d;
  line-height: 1.45;
}

.dm-pix-box-empty {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

/* ==========================================================================
   CUSTOMIZADOR DE PRODUTOS & AUMENTO DE TICKET MÉDIO (HAMBÚRGUER, AÇAÍ, MARMITA)
   ========================================================================== */
.dm-product-card-customizable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dm-product-card-customizable:hover {
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.12);
}

.dm-custom-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
  width: fit-content;
}

.dm-custom-badge svg {
  flex-shrink: 0;
}

.dm-custom-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .dm-custom-options-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.dm-custom-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.dm-custom-option-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dm-custom-option-card.active {
  background: #fff7ed;
  border-color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.14);
}

.dm-custom-option-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-custom-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.dm-custom-option-card.active .dm-custom-option-radio {
  border-color: #ea580c;
  background: #ea580c;
}

.dm-custom-option-card.active .dm-custom-option-radio::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.dm-custom-option-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.dm-custom-option-card.active .dm-custom-option-title {
  color: #9a3412;
}

.dm-custom-option-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.dm-custom-option-price {
  font-size: 12.5px;
  font-weight: 800;
  color: #ea580c;
  white-space: nowrap;
  margin-left: 8px;
}

.dm-custom-option-price.free {
  color: #16a34a;
}

.dm-custom-check-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.dm-custom-check-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dm-custom-check-card.checked {
  background: #fff7ed;
  border-color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.14);
}

.dm-custom-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
}

.dm-custom-check-card.checked .dm-custom-check-box {
  border-color: #ea580c;
  background: #ea580c;
  color: #ffffff;
}

.dm-custom-upsell-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #c2410c;
  background: #ffedd5;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   PWA (PROGRESSIVE WEB APP) - CONVITE NATIVO & MODAL IOS
   ========================================================================== */
.dm-pwa-banner {
  position: fixed;
  bottom: 74px;
  left: 12px;
  right: 12px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 9990;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.dm-pwa-banner.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dm-pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 12px 30px -4px rgba(15, 37, 55, 0.2), 0 4px 10px -2px rgba(15, 37, 55, 0.08);
}

.dm-pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(157, 6, 6, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dm-pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.dm-pwa-banner-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F2537;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-pwa-banner-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dm-pwa-btn-install {
  background: linear-gradient(135deg, #9d0606 0%, #7a0404 100%);
  color: #ffffff;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(157, 6, 6, 0.35);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.dm-pwa-btn-install:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.dm-pwa-btn-install:active {
  transform: translateY(0);
}

.dm-pwa-btn-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-pwa-btn-close:hover {
  color: #475569;
  background: #f1f5f9;
}

/* Badge no Drawer Menu */
.dm-pwa-drawer-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: auto;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Modal Guiado iOS Safari */
.dm-pwa-ios-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 37, 55, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  animation: dmFadeIn 0.2s ease;
}

@media (min-width: 540px) {
  .dm-pwa-ios-overlay {
    align-items: center;
  }
}

.dm-pwa-ios-sheet {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 22px 20px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: dmSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.dm-pwa-ios-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dm-pwa-ios-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.dm-pwa-ios-header {
  text-align: center;
  margin-bottom: 18px;
}

.dm-pwa-ios-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 10px;
  display: block;
  box-shadow: 0 4px 12px rgba(157, 6, 6, 0.3);
}

.dm-pwa-ios-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F2537;
}

.dm-pwa-ios-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

.dm-pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
}

.dm-pwa-ios-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-pwa-ios-step-num {
  width: 22px;
  height: 22px;
  background: #0F2537;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dm-pwa-ios-step-text {
  flex: 1;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.35;
}

.dm-pwa-ios-step-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dm-pwa-ios-confirm-btn {
  width: 100%;
  background: linear-gradient(135deg, #9d0606 0%, #7a0404 100%);
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(157, 6, 6, 0.3);
  transition: all 0.18s ease;
}

.dm-pwa-ios-confirm-btn:hover {
  filter: brightness(1.08);
}

/* ==========================================================
   CÁLCULO AUTOMÁTICO DE TROCO EM TEMPO REAL NO CHECKOUT
   ========================================================== */
.dm-troco-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 10px;
  margin-bottom: 16px;
  animation: dmFadeInUp 0.22s ease-out;
}

@keyframes dmFadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dm-troco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dm-troco-label-icon {
  font-size: 16px;
  margin-right: 4px;
  vertical-align: -1px;
}

.dm-troco-order-total-badge {
  background: #e2e8f0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.dm-troco-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.dm-troco-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dm-troco-chip:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.dm-troco-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.dm-troco-chip-exact {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.dm-troco-chip-exact:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.dm-troco-chip-exact.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.dm-troco-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dm-troco-currency-prefix {
  position: absolute;
  left: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
  z-index: 1;
}

.dm-troco-input {
  padding-left: 36px !important;
  padding-right: 36px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  height: 44px !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease !important;
}

.dm-troco-input:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.dm-troco-clear-btn {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dm-troco-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.dm-troco-result-box {
  margin-top: 10px;
}

.dm-troco-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}

.dm-troco-hint-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Estado de Sucesso com Cálculo de Troco */
.dm-troco-calc-success {
  background: #ffffff;
  border: 1.5px solid #10b981;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
  animation: dmPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dmPopIn {
  0% {
    opacity: 0;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.dm-troco-success-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.dm-troco-badge-tag {
  background: #ecfdf5;
  color: #047857;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 6px;
}

.dm-troco-math-summary {
  font-size: 11.5px;
  color: #475569;
}

.dm-troco-math-summary strong {
  color: #0f172a;
}

.dm-troco-result-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 14px;
}

.dm-troco-result-coin-badge {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.dm-troco-result-main {
  flex: 1;
}

.dm-troco-result-sublabel {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dm-troco-result-amount {
  font-size: 22px;
  font-weight: 900;
  color: #047857;
  line-height: 1.15;
  margin-top: 1px;
}

.dm-troco-result-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  color: #047857;
  font-weight: 600;
}

.dm-troco-result-footer svg {
  color: #059669;
  flex-shrink: 0;
}

/* Estado de Valor Exato */
.dm-troco-calc-exact {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 12px 14px;
  animation: dmPopIn 0.2s ease-out;
}

.dm-troco-calc-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.dm-troco-calc-icon-badge.exact {
  background: #22c55e;
  color: #ffffff;
}

.dm-troco-calc-icon-badge.warn {
  background: #f59e0b;
  color: #ffffff;
}

.dm-troco-calc-exact-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #14532d;
}

.dm-troco-calc-exact-desc {
  font-size: 11.5px;
  color: #166534;
  margin-top: 2px;
}

/* Estado de Alerta (Valor Menor) */
.dm-troco-calc-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 12px;
  padding: 12px 14px;
  animation: dmPopIn 0.2s ease-out;
}

.dm-troco-warn-title {
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
}

.dm-troco-warn-desc {
  font-size: 11.5px;
  color: #b45309;
  margin-top: 2px;
  line-height: 1.35;
}

/* ==========================================================
   SUGESTÃO DE BEBIDAS NO CARRINHO ("COMPRE JUNTO")
   ========================================================== */
.dm-crosssell-drinks-wrap {
  background: #fffaf5;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  animation: dmPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.05);
}

.dm-crosssell-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dm-crosssell-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-crosssell-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffedd5;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.15);
}

.dm-crosssell-badge-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ea580c;
  line-height: 1.2;
}

.dm-crosssell-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1px;
  line-height: 1.3;
}

.dm-crosssell-dismiss-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 2px;
}

.dm-crosssell-dismiss-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.dm-crosssell-drinks-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 6px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dm-crosssell-drinks-list::-webkit-scrollbar {
  height: 4px;
}

.dm-crosssell-drinks-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.dm-crosssell-drinks-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dm-crosssell-item {
  flex: 0 0 145px;
  min-width: 140px;
  max-width: 160px;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  scroll-snap-align: start;
}

.dm-crosssell-item:hover {
  transform: translateY(-2px);
  border-color: #f97316;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.12);
}

.dm-crosssell-item.is-in-cart {
  border-color: #86efac;
  background: #f0fdf4;
}

.dm-crosssell-item-media {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.dm-crosssell-item-img {
  max-height: 40px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.dm-crosssell-item-emoji {
  font-size: 26px;
  line-height: 1;
}

.dm-crosssell-item-info {
  margin-bottom: 6px;
}

.dm-crosssell-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.dm-crosssell-item-price {
  font-size: 13px;
  font-weight: 800;
  color: #ea580c;
  margin-top: 2px;
}

.dm-crosssell-item.is-in-cart .dm-crosssell-item-price {
  color: #16a34a;
}

.dm-crosssell-add-btn {
  width: 100%;
  padding: 7px 8px;
  border-radius: 8px;
  border: none;
  background: #ea580c;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
}

.dm-crosssell-add-btn:hover {
  background: #c2410c;
}

.dm-crosssell-add-btn.added {
  background: #16a34a;
  color: #ffffff;
}

.dm-crosssell-add-btn.added:hover {
  background: #15803d;
}

.dm-crosssell-add-btn.btn-pulse {
  animation: dmBtnPulse 0.35s ease-out;
}

.dm-crosssell-btn-check {
  font-weight: 900;
}

/* Toast / Banner Discreto de Sugestão de Compras Casadas ("Compre Junto") */
.dm-drink-suggest-toast {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 995;
  width: calc(100% - 24px);
  max-width: 480px;
}

.dm-drink-suggest-toast.no-cart-bar {
  bottom: 85px;
}

.dm-drink-suggest-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dm-drink-suggest-toast-card {
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 11px 13px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 9px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dm-drink-suggest-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dm-drink-suggest-toast-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.dm-drink-suggest-toast-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.dm-drink-suggest-toast-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-drink-suggest-toast-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.22);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.45);
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.dm-drink-suggest-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s ease;
  border-radius: 4px;
}

.dm-drink-suggest-toast-close:hover {
  color: #ffffff;
}

/* Lista horizontal deslizante de bebidas sugeridas */
.dm-drink-suggest-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.dm-drink-suggest-chips-scroll::-webkit-scrollbar {
  display: none;
}

.dm-drink-suggest-mini-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.dm-drink-suggest-mini-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.dm-drink-suggest-mini-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.dm-drink-suggest-mini-emoji {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.dm-drink-suggest-mini-info {
  display: flex;
  flex-direction: column;
}

.dm-drink-suggest-mini-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.dm-drink-suggest-mini-price {
  font-size: 11px;
  font-weight: 800;
  color: #fb923c;
  line-height: 1.2;
}

.dm-drink-suggest-mini-add-btn {
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.dm-drink-suggest-mini-add-btn:hover {
  background: #c2410c;
}

.dm-drink-suggest-mini-add-btn.added {
  background: #16a34a;
}

/* Toast Discreto Simples */
.dm-discreet-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.dm-discreet-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes dmBtnPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ==========================================================
   PAINEL DO LOJISTA: TABELA MODERNA DE PEDIDOS EM TEMPO REAL
   ========================================================== */
.dm-admin-layout {
  padding: 20px 0 50px;
}

.dm-admin-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  padding: 24px;
  margin-bottom: 24px;
}

.dm-orders-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  background: #ffffff;
}

.dm-table-pos {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: #ffffff;
  text-align: left;
}

.dm-table-pos thead th {
  background: #F8FAFC !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 13px 14px !important;
  border-bottom: 2px solid #E2E8F0 !important;
  border-top: none !important;
  white-space: nowrap;
  vertical-align: middle;
}

.dm-table-pos tbody td {
  padding: 12px 14px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #F1F5F9 !important;
  color: #1E293B;
  background: #ffffff;
  transition: background 0.12s ease;
}

.dm-table-pos tbody tr:hover td {
  background-color: #F8FAFC !important;
}

.dm-table-pos tbody tr:last-child td {
  border-bottom: none !important;
}

/* Coluna ID */
.dm-cell-id-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.dm-id-number {
  font-size: 13.5px;
  font-weight: 900;
  color: #0F2537;
  letter-spacing: -0.01em;
}

.dm-id-code {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  width: fit-content;
}

/* Coluna Data/Hora */
.dm-cell-datetime {
  font-size: 12px;
  color: #64748B;
  white-space: nowrap;
  line-height: 1.35;
}

.dm-cell-datetime strong {
  color: #0F2537;
  font-size: 13px;
  font-weight: 800;
}

/* Coluna Cliente (Nome + WhatsApp com Link) */
.dm-cell-client {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.dm-client-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F2537;
  line-height: 1.25;
}

.dm-table-wpp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-decoration: none !important;
  width: fit-content;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
  transition: all 0.15s ease;
}

.dm-table-wpp-link:hover {
  background: #10B981;
  color: #ffffff;
  border-color: #10B981;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

/* Coluna Endereço */
.dm-cell-address {
  font-size: 12px;
  max-width: 210px;
  line-height: 1.35;
  color: #334155;
}

.dm-badge-delivery-pill {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.dm-badge-retirada-pill {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

/* Coluna Pedidos (Itens do Cliente) */
.dm-cell-orders {
  font-size: 12px;
  min-width: 170px;
  max-width: 260px;
}

.dm-orders-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}

.dm-orders-item-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.3;
}

.dm-item-qty-tag {
  background: #0F2537;
  color: #ffffff;
  font-weight: 800;
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-block;
  line-height: 1.25;
}

.dm-item-name {
  font-weight: 700;
  color: #1E293B;
  font-size: 12px;
}

.dm-item-detail {
  font-size: 11px;
  color: #64748B;
  line-height: 1.2;
}

/* Coluna Total (Diretamente após Pedidos) */
.dm-total-pill {
  font-size: 13.5px;
  font-weight: 900;
  color: #0F2537;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  padding: 4px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Coluna Pagamento */
.dm-badge-pay-pix {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.dm-badge-pay-cash {
  background: #FEF9C3;
  color: #854D0E;
  border: 1px solid #FEF08A;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.dm-badge-pay-card {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Botões de Ação da Tabela */
.dm-table-actions-group {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.dm-btn-print-table,
button.dm-btn-print-table {
  background: #059669 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 7px 12px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25) !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  outline: none !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.dm-btn-print-table:hover,
button.dm-btn-print-table:hover {
  background: #047857 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.35) !important;
}

.dm-btn-detail-table,
button.dm-btn-detail-table {
  background: #FFFFFF !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
  padding: 6px 10px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  outline: none !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.dm-btn-detail-table:hover,
button.dm-btn-detail-table:hover {
  background: #F8FAFC !important;
  border-color: #94A3B8 !important;
  color: #0F2537 !important;
  transform: translateY(-1px) !important;
}

/* Barra de Controles do Monitor */
.dm-order-controls-bar-v2 {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.dm-controls-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Barra de Ações Rápidas Superior */
.dm-quick-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.dm-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  background: #0F2537;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.15s ease;
  cursor: pointer;
}

.dm-quick-btn:hover {
  background: #1E3A8A;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dm-quick-btn.accent-red {
  background: #9D0606;
}
.dm-quick-btn.accent-red:hover {
  background: #7F0505;
}

.dm-quick-btn.accent-blue {
  background: #1D4ED8;
}
.dm-quick-btn.accent-blue:hover {
  background: #1E40AF;
}

.dm-quick-btn.accent-amber {
  background: #D97706;
}
.dm-quick-btn.accent-amber:hover {
  background: #B45309;
}









