/* ==========================================================================
   CATÁLOGO RG ARTES — ESTILOS ORGANIZADOS
   ==========================================================================
   MAPA RÁPIDO
   01. Segurança visual e variáveis
   02. Vitrine e navegação
   03. Produtos e modais
   04. Painel administrativo
   05. PDV, relatórios e configurações
   06. Ajustes responsivos
   07. Refinamentos visuais finais

   OBSERVAÇÃO:
   Algumas regras mais abaixo são refinamentos intencionais da aparência.
   Duplicações idênticas e conflitos sem utilidade foram removidos.
   ========================================================================== */

/* ==========================================================================
   TRAVA INICIAL CONTRA PISCADA DO ADMINISTRATIVO
   ========================================================================== */

#admin-panel,
#gatekeeper-login,
.admin-section {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.admin-section.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#sec-backup {
  display: none !important;
}

#sec-backup.active {
  display: block !important;
}

/* ==========================================================================
           BLOCO 1: VARIÁVEIS E BASE (CORES E FONTES)
           ========================================================================== */
:root {
  /* VITRINE */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --whats: #25d366;
  --accent: #f472b6;
  --bg: #ffffff;
  --card-bg: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* MODAIS VIDRO */
  --cart-bg: rgba(20, 20, 20, 0.85);
  --cart-text: #ffffff;

  /* ADMIN (TEM MAIS PESO) */
  --adm-bg-grad: linear-gradient(135deg, #1a0b2e 0%, #240b36 40%, #0f3460 100%);
  --adm-card-glass: rgba(255, 255, 255, 0.03);
  --adm-border-top: 1px solid rgba(255, 255, 255, 0.15);
  --adm-border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  --adm-text: #ffffff;
  --adm-primary: #00d2ff;
  --adm-blur: blur(20px);
  --cart-bg-soft: #e6f7ec;
  --cart-green-strong: #16a34a;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding-bottom: 120px; /* Espaço para não cortar nada no fundo */
  transition: background-color 0.3s;
}
/* ==========================================================================
   CORREÇÃO PDV CELULAR: ESCONDER PREÇOS NA LISTA PARA FOCAR NO NOME
   ========================================================================== */
@media (max-width: 768px) {
  #modal-cats .modal-content {
    width: 100vw !important; /* 100% da largura da tela */
    max-width: 100vw !important;
    height: 100vh !important; /* 100% da altura da tela */
    max-height: 100vh !important;
    border-radius: 0 !important; /* Tira o arredondamento para colar nos cantos */
    margin: 0 !important;
    box-sizing: border-box !important;
    padding: 20px 15px !important;
  }

  /* 2. Esconde as colunas de Custo (3ª div) e Venda (4ª div) */
  .pdv-strip > div:nth-child(3),
  .pdv-strip > div:nth-child(4) {
    display: none !important;
  }

  /* 3. Aumenta a fonte do Nome para ficar bem legível */
  .pdv-strip strong {
    font-size: 0.95rem !important;
    white-space: normal !important; /* Permite quebrar linha se o nome for longo */
    line-height: 1.2 !important;
  }

  /* 4. Ajusta o Cabeçalho da Tabela (os títulos FOTO, PRODUTO...) para alinhar igual */
  #sec-pdv > div[style*="grid-template-columns"] {
    grid-template-columns: 50px 1fr auto 45px !important;
  }
  /* Esconde os títulos CUSTO e VENDA também */
  #sec-pdv > div[style*="grid-template-columns"] > div:nth-child(3),
  #sec-pdv > div[style*="grid-template-columns"] > div:nth-child(4) {
    display: none !important;
  }
}

/* ==========================================================================
           BLOCO 2: REGRA DE OURO (ESCONDER ADMIN NA VITRINE)
           ========================================================================== */
body.modo-publico .ai-fab,
body.modo-publico .ai-chat-window,
body.modo-publico .mobile-bottom-nav,
body.modo-publico #admin-panel,
body.modo-publico .admin-section,
body.modo-publico .admin-lock-footer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* ==========================================================================
           BLOCO 3: NOVA NAVEGAÇÃO (SIDEBAR PC E BOTTOM BAR MOBILE)
           ========================================================================== */

/* 1. HEADER MOBILE (Fica no topo só no celular) */
.mobile-header {
  display: none;
}

/* 2. MENU LATERAL (SIDEBAR) */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  height: 100dvh;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-header {
  padding: 25px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.btn-close-sidebar {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
}

/* 3. NAVEGAÇÃO INTERNA DO MENU */
.sidebar-nav {
  flex-grow: 1;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.nav-item:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}
.nav-icon {
  width: 24px;
  display: flex;
  justify-content: center;
  font-size: 1.2rem;
}

.premium-btn {
  margin-top: auto;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  filter: brightness(1.1);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.2s;
  background: var(--card-bg);
}
.user-profile-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.user-info {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.user-status {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-sidebar-wrapper {
  position: relative;
  width: 100%;
}
.search-input-sidebar {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
}
.search-input-sidebar:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.search-icon-sidebar {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ==========================================================================
           3.1: COMPORTAMENTO TELA DE COMPUTADOR (PC)
           ========================================================================== */
@media (min-width: 1025px) {
  body {
    padding-left: 260px !important;
  } /* Empurra o site para não ficar embaixo do menu */
  #main-content-wrapper {
    margin-left: 0 !important;
    padding: 20px 3% !important;
  }
  #sidebar-overlay {
    display: none !important;
  }
  .mobile-bottom-bar {
    display: none !important;
  }

  /* Esconde as categorias soltas antigas do topo para ficar limpo */
  .category-menu,
  .search-wrapper {
    display: none !important;
  }
}

/* ==========================================================================
           3.2: COMPORTAMENTO CELULAR (MOBILE)
           ========================================================================== */
@media (max-width: 1024px) {
  .mobile-bottom-bar {
    display: flex;
  }
  /* Esconde no menu lateral os itens que já existem no menu inferior */
  #premium-sidebar .hide-on-mobile {
    display: none !important;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 15px 0 30px rgba(0, 0, 0, 0.5);
  }

  .btn-close-sidebar {
    display: block;
  }
  body {
    padding-left: 0 !important;
    padding-bottom: 90px !important;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  #sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  #sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Esconde as categorias soltas antigas do topo */
  .category-menu,
  .search-wrapper {
    display: none !important;
  }
}

/* ==========================================================================
           3.3: MENU INFERIOR DO CELULAR (BOTTOM BAR)
           ========================================================================== */
.mobile-bottom-bar {
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--border);
  z-index: 2000;
  padding: 10px 5px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
}
.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  flex: 1;
  transition: all 0.2s;
}
.bottom-tab i {
  font-size: 1.2rem;
}
.bottom-tab:hover,
.bottom-tab:active {
  color: var(--primary);
}

.center-tab {
  flex: 0 0 auto;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  color: white !important;
  border-radius: 50%;
  transform: translateY(-20px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  border: 4px solid var(--bg);
}
.center-tab i {
  font-size: 1.4rem;
}
.center-tab:active {
  transform: translateY(-20px) scale(0.95);
}

/* ==========================================================================
           BLOCO 4: PESQUISA E CATEGORIAS (VISUAL CLEAN)
           ========================================================================== */
.container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .container {
    max-width: 98% !important;
  }
}

.banner-container {
  width: 100%;
  max-width: 100%;
  margin: 15px auto 0;
  padding: 0 15px;
  display: none;
}
.banner-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  scrollbar-width: none;
  border-radius: 15px;
}
.banner-scroll::-webkit-scrollbar {
  display: none;
}
.banner-item {
  min-width: 100%;
  scroll-snap-align: center;
  display: block;
}
.banner-img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  display: block;
}

.hero {
  text-align: center;
  padding: 25px 15px;
  margin-bottom: 5px;
}
.hero h1 {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
  letter-spacing: -1px;
  color: var(--text);
}
.hero p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Barra de Pesquisa Moderna */
.search-wrapper {
  max-width: 800px;
  margin: 0 auto 20px;
  padding: 0 15px;
  display: flex;
  gap: 10px;
}
.search-container {
  position: relative;
  flex-grow: 1;
}
.search-input {
  width: 100%;
  padding: 14px 45px 14px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  -webkit-appearance: none;
  font-weight: 600;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.filter-btn-trigger {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 50px;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.filter-btn-trigger:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Menu de Categorias (Pílulas Suaves) */
.category-menu {
  display: flex;
  gap: 10px;
  padding: 10px 5%;
  margin-bottom: 25px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.category-menu::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .category-menu {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}

.cat-btn {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border);
  height: 42px;
  padding: 0 20px;
  border-radius: 21px;
  flex-shrink: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}
.cat-btn:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.cat-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* ==========================================================================
           BLOCO 5: GRID DE PRODUTOS E CARDS (O VISUAL BENTO/APPLE)
           ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding-bottom: 50px;
}
@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.product-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
  height: 100%;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-img-top {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  transition: 0.5s;
  background: #f1f5f9;
}
.card-img-top:hover {
  filter: brightness(1.05);
}

.card-body {
  padding: 18px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 6px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #1d1d1f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  line-height: 1.2;
}
.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 15px;
}

.btn-buy {
  margin-top: auto;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  filter: brightness(1.1);
}
.btn-buy:active {
  transform: scale(0.95);
}

.added-anim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #059669;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: bold;
  gap: 8px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-buy.active .added-anim {
  transform: translateY(0);
}

/* ==========================================================================
           BLOCO 6: PAINEL ADMIN (ESTRUTURA)
           ========================================================================== */
#admin-panel {
  background: var(--adm-bg-grad) !important;
  color: var(--adm-text) !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5000;
  overflow-y: auto;
  background-attachment: fixed;
}
.admin-container {
  max-width: 98% !important;
  margin: 0 auto;
  padding: 20px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--adm-bg-grad);
  z-index: 6000;
  padding: 20px;
  overflow-y: auto;
  display: none;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding-bottom: 120px;
}
.admin-section.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

#admin-panel input,
#admin-panel select,
#admin-panel textarea,
.form-input {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  border-radius: 10px;
  padding: 12px;
  font-family: "Poppins", sans-serif;
  width: 100%;
  margin-bottom: 10px;
}
#admin-panel input:focus,
.form-input:focus {
  border-color: var(--adm-primary) !important;
  outline: none;
}
#admin-panel label {
  color: #ccc !important;
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: block;
}

/* ==========================================================================
           BLOCO 7: DASHBOARD ADMIN (CARDS E CALENDÁRIO)
           ========================================================================== */
.dashboard-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}
.dashboard-left {
  width: 400px;
  flex-shrink: 0;
}
.dashboard-right {
  flex-grow: 1;
  width: auto;
}

.admin-grid-4cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.admin-card-btn,
.admin-list-card {
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.6),
    rgba(15, 23, 42, 0.8)
  ) !important;
  backdrop-filter: var(--adm-blur);
  -webkit-backdrop-filter: var(--adm-blur);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px;
  color: white !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.dashboard-right .admin-card-btn {
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  gap: 12px;
}
.dashboard-right .admin-card-btn:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15);
}
.dashboard-right .admin-card-btn i {
  font-size: 2rem !important;
  margin: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
  transition: transform 0.3s ease;
}
.dashboard-right .admin-card-btn:hover i {
  transform: scale(1.1) rotate(-5deg);
}
.dashboard-right .admin-card-btn h3 {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #e2e8f0 !important;
  margin: 0;
}
.dashboard-right .admin-card-btn div[id^="dash-"] {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  margin-top: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cal-day {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
}
.cal-header {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
}
.cal-header button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1rem;
}

.vitrine-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.btn-vitrine-action {
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.9),
    rgba(15, 23, 42, 0.95)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: 0.2s;
  text-align: left;
  color: white !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  width: 100%;
}
.btn-vitrine-action:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-vitrine-action .icon-box {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(0, 0, 0, 0.3);
}
.btn-vitrine-action .text-box {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
           BLOCO 8: LISTAS E PDV
           ========================================================================== */
.pdv-strip,
.adm-strip {
  display: grid;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 10px;
  transition: 0.2s;
  cursor: pointer;
}
.pdv-strip {
  grid-template-columns: 50px 2fr 1fr 1fr 1fr 50px;
}
.adm-strip {
  grid-template-columns: 50px 2fr 1fr 1fr 1fr 120px;
}
.pdv-strip:hover,
.adm-strip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}
.pdv-strip img,
.adm-strip img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.pdv-top-bar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
#pdv-cats-strip,
#adm-cats-strip {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 1fr);
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  padding: 5px 2px;
}
.pdv-cat-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 10px;
}
.pdv-cat-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.pdv-float-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background: rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  max-height: 80px;
}
.pdv-float-cart.expanded {
  max-height: 85vh;
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--success);
}
.cart-mini-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), transparent);
}
.cart-mini-body {
  padding: 20px;
  overflow-y: auto;
  display: none;
}
.pdv-float-cart.expanded .cart-mini-body {
  display: block;
}

/* ==========================================================================
           BLOCO 9: MODAIS (GERAL E VIDRO) - VERSÃO FINAL CORRIGIDA
           ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  opacity: 1;
}

.modal-content {
  background: var(--bg);
  padding: 0;
  border-radius: 24px;
  width: 95%;
  max-width: 900px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .modal-content {
    flex-direction: row;
    overflow: hidden;
  }
  .modal-media {
    width: 55%;
    background: #f1f5f9;
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-info {
    width: 45%;
    padding: 40px;
    overflow-y: auto;
  }
}
@media (max-width: 767px) {
  .modal-media {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f1f5f9;
    position: relative;
  }
  .modal-info {
    padding: 25px;
  }
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: var(--danger);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 50;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.prev-btn {
  left: 15px;
}
.next-btn {
  right: 15px;
}

.cart-modal-body {
  padding: 30px;
  max-width: 500px;
  width: 90%;
  margin: auto;
  background: var(--cart-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-height: 85vh;
  overflow-y: auto;
  color: var(--cart-text);
}
.cart-modal-body h2,
.cart-modal-body div,
.cart-modal-body span {
  color: var(--cart-text) !important;
}
.cart-modal-body .item-list-row {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}
.cart-modal-body .close-modal {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* --- CORREÇÃO DA MENSAGEM E BOTÕES --- */

/* Força os botões a ficarem um embaixo do outro */
#cart-step-payment-choice {
  display: flex;
  flex-direction: column !important; /* OBRIGATÓRIO PARA NÃO ESMAGAR */
  gap: 10px;
  width: 100%;
}

#cart-msg-display {
  background: rgba(255, 255, 255, 0.05) !important;
  border-left: 4px solid var(--primary) !important;
  padding: 15px !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: #e2e8f0 !important;
  width: 100%;
}

.pay-option-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important; /* Ocupa a linha toda */
  padding: 15px 20px !important;
  margin-bottom: 0 !important; /* O gap do pai cuida disso */
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--cart-text) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 15px !important;
  min-height: 60px; /* Altura mínima para clicar fácil */
}
.pay-option-btn i {
  font-size: 1.4rem !important;
  width: 30px;
  text-align: center;
}
.pay-option-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px);
}

.pay-option-btn.pix-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Área de Checkout e Chave Pix */
.pix-box {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px dashed var(--success) !important;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}
.pix-key-display {
  display: block;
  margin-top: 5px;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 6px;
  word-break: break-all;
  font-weight: bold;
  color: var(--success) !important;
}

.faq-item-modal {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 15px 0;
}
.faq-q-modal {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
}
.faq-a-modal {
  padding-top: 10px;
  color: rgba(255, 255, 255, 0.8) !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.faq-a-modal.open {
  max-height: 500px;
}

/* ==========================================================================
           BLOCO 10: ELEMENTOS INTERNOS DE EDIÇÃO (TAB, REPO, INPUTS ESPECIAIS)
           (AQUI ESTÃO AS CLASSES QUE VOCÊ PRECISAVA)
           ========================================================================== */
.tab-header {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
}
.tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}
.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.repo-card {
  background: #0f172a;
  border: 1px dashed #334155;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 15px;
}
.repo-big-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 10px 0;
}
.repo-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.repo-total-display {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: bold;
  border: 1px solid var(--success);
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: 0.2s;
}
input[type="color"] {
  border: none;
  background: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
}
.config-group-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.config-group-title {
  color: var(--primary);
  margin: 0 0 15px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

/* ==========================================================================
           BLOCO 11: BOTÕES FLUTUANTES, IA E TOAST
           ========================================================================== */
.ai-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--adm-primary), #d946ef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  box-shadow: 0 0 25px var(--adm-primary);
  z-index: 6000;
  transition: 0.3s;
}
.ai-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px #d946ef;
}
.ai-chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: #1e202e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  z-index: 6000;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.toast {
  z-index: 2147483647 !important;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toast.show {
  opacity: 1;
  bottom: 50px;
}
.toast.error {
  background: var(--danger);
}

#floating-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.whats-fixed {
  cursor: pointer;
  border: none;
  width: 55px;
  height: 55px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: var(--whats);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  text-decoration: none;
}
.scroll-top-btn {
  background: var(--primary-dark);
  cursor: pointer;
  border: none;
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  position: fixed;
  bottom: 80px;
  right: 25px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1500;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  position: relative;
}
.admin-lock-footer {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 10px;
  opacity: 0.05;
}
.btn-add {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
.btn-art-ideas {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  margin-top: 15px;
}
.cat-grid-modal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 20px;
  background: var(--card-bg);
  max-height: 50vh;
  overflow-y: auto;
}
.cat-card-modal {
  background: var(--bg);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  cursor: pointer;
  font-weight: bold;
}

/* ==========================================================================
           BLOCO 12: MEDIA QUERIES (AJUSTES PARA CELULAR E TABLET - VERSÃO FINAL)
           ========================================================================== */

/* Padrão PC: Menu de baixo oculto */
.mobile-bottom-nav {
  display: none;
}

/* Tablet (Intermediário) - Ajusta dashboard para empilhar se ficar apertado */
@media (max-width: 1200px) {
  .dashboard-wrapper {
    flex-direction: column !important;
  }
  .dashboard-left {
    width: 100% !important;
    margin-bottom: 20px;
  }
  .dashboard-right {
    width: 100% !important;
  }
  .admin-grid-4cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ajustes de Grid para Monitores Maiores */
@media (min-width: 768px) {
  .category-menu {
    flex-wrap: wrap;
    overflow-x: hidden;
    justify-content: center;
    padding: 5px 15px;
  }
  .cat-grid-modal {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
           MODO CELULAR (MAX 768PX) - AQUI ESTÃO AS CORREÇÕES
           ========================================================================== */
@media (max-width: 768px) {
  /* 1. LAYOUT GERAL E ESPAÇAMENTOS */
  body,
  .admin-container,
  .dashboard-right {
    padding: 5px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body {
    padding-bottom: 100px !important;
  }
  .container {
    padding: 0 5px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .products-grid {
    gap: 8px;
  }
  .admin-section {
    padding-bottom: 120px !important;
  } /* Espaço para salvar */

  /* 2. DASHBOARD (PAINEL INICIAL) */
  .dashboard-wrapper {
    flex-direction: column !important;
  }
  .dashboard-left,
  .dashboard-right {
    width: 100% !important;
  }

  .admin-grid-4cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .admin-card-btn {
    min-height: 95px !important;
    padding: 10px 5px !important;
  }
  .admin-card-btn h3 {
    font-size: 0.7rem !important;
    margin-top: 5px !important;
  }
  .admin-card-btn i {
    font-size: 1.5rem !important;
  }

  .vitrine-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* 3. CALENDÁRIO */
  .dashboard-left .admin-card-btn {
    padding: 10px !important;
  }
  #cal-grid-dias {
    gap: 2px !important;
    width: 100% !important;
  }
  #cal-lista-eventos,
  #cal-lista-eventos > div {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* 4. LISTA DE PRODUTOS NO ADMIN (CORREÇÃO VISUAL) */
  .adm-strip {
    /* Força 3 colunas: Imagem | Texto | Botões */
    grid-template-columns: 50px 1fr 100px !important;
    gap: 8px !important;
    padding: 10px 8px !important;
    height: auto !important;
    align-items: flex-start !important; /* Alinha no topo */
  }

  /* Esconde Preço de Custo, Venda e Estoque na lista do celular para não quebrar */
  .adm-strip > div:nth-child(3),
  .adm-strip > div:nth-child(4),
  .adm-strip > div:nth-child(5) {
    display: none !important;
  }

  /* Ajusta o texto do produto */
  .adm-strip strong {
    font-size: 0.85rem !important;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .adm-strip small {
    font-size: 0.7rem !important;
  }

  /* Dica visual que existem mais detalhes */
  .adm-strip > div:nth-child(2)::after {
    content: "Toque em Editar p/ ver detalhes";
    display: block;
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 4px;
    font-style: italic;
  }

  /* Arruma os botões (Flechinhas) */
  .adm-actions {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: 100% !important;
  }
  .adm-btn-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.9rem !important;
    background: rgba(255, 255, 255, 0.1);
  }

  /* 5. PDV (ROLAGEM E CARRINHO) */
  /* Garante que o último produto não fique escondido atrás do carrinho */
  #pdv-list-strip-area,
  #sec-pdv {
    padding-bottom: 160px !important;
  }

  /* Carrinho Flutuante no Celular */
  .pdv-float-cart {
    width: 92% !important;
    left: 4% !important;
    right: auto !important;
    bottom: 70px !important; /* Fica acima do menu app */
  }

  /* 6. MENU APP (RODAPÉ FIXO) */
  .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    align-items: center;
  }
  .mobile-bottom-nav button {
    background: none;
    border: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    gap: 3px;
    padding: 0;
    height: 100%;
  }
  .mobile-bottom-nav button i {
    font-size: 1.2rem;
  }
  .mobile-bottom-nav button:hover,
  .mobile-bottom-nav button:active {
    color: #3b82f6;
  }

  /* 7. BOTÃO IA "DOCKED" (CENTRALIZADO) */
  .ai-fab {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: 25px !important;
    width: 55px !important;
    height: 55px !important;
    border: 5px solid #1e293b !important;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2) !important;
    z-index: 10000 !important;
    background: linear-gradient(135deg, var(--adm-primary), #d946ef) !important;
  }
  .ai-fab:hover {
    transform: translateX(-50%) scale(1.1);
  }
  .ai-chat-window {
    bottom: 90px;
    right: 2%;
    width: 96%;
    height: 60vh;
  }

  /* Esconde elementos antigos desnecessários no mobile */
  .fab-container {
    display: none !important;
  }
}

/* ==========================================================================
   CSS AJUSTADO: CORES LIMPAS E BOTÃO DELICADO
   ========================================================================== */

/* 1. SELETOR DE CORES (LIMPO E MENOR) */
.color-smart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.color-btn-trigger {
  width: 100%;
  height: 35px; /* Mais baixo (antes era 45px) */
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Borda sutil */
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Sombra leve fora */
}
.color-btn-trigger span {
  color: #ffffff !important; /* Texto sempre branco */
  font-weight: 600;
  font-size: 0.85rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Sombra no texto para ler no claro */
  z-index: 5;
  letter-spacing: 0.5px;
}
.color-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* 2. BOTÃO SALVAR (MENOR E ELEGANTE) */
.btn-save-elegant {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 8px 30px; /* Bem menor */
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
  margin: 0 auto;
}
.btn-save-elegant:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* LISTA DE PRODUTOS - LAYOUT INTELIGENTE */
.prod-card-admin {
  display: grid;
  grid-template-columns: 60px 1fr auto; /* Foto | Dados | Botões */
  gap: 15px;
  align-items: center;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: 0.2s;
}
.prod-info-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 4px;
}
.prod-price-tag {
  color: var(--success);
  font-weight: bold;
  font-size: 0.9rem;
}
/* No celular (telas menores que 400px), esconde o preço para dar espaço */
@media (max-width: 450px) {
  .prod-price-tag {
    display: none !important;
  }
  .prod-card-admin {
    grid-template-columns: 50px 1fr auto;
    gap: 10px;
    padding: 10px;
  }
}

/* ==========================================================================
   NOVOS ÍCONES DE REDES SOCIAIS (PREMIUM)
 
   ========================================================================== */

/* Remove a formatação antiga do container */
#social-links-container-inline {
  display: flex !important;
  justify-content: center !important; /* Centraliza */
  align-items: center !important;
  gap: 20px !important; /* Espaço entre bolinhas */
  width: 100% !important;
  margin-top: 20px !important;
  flex-wrap: wrap !important;
}

/* Transforma os links em bolinhas */
.social-btn {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  color: white !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

/* Cores Oficiais */
.social-btn.facebook {
  background: #1877f2 !important;
}
.social-btn.instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  ) !important;
}
.social-btn.tiktok {
  background: #000000 !important;
}

/* Efeito ao Passar o Mouse (Pulo) */
.social-btn:hover {
  transform: translateY(-5px) scale(1.1) !important;
}
.social-btn.facebook:hover {
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.6) !important;
}
.social-btn.instagram:hover {
  box-shadow: 0 10px 25px rgba(214, 36, 159, 0.6) !important;
}
.social-btn.tiktok:hover {
  box-shadow:
    -3px -3px 0 rgba(0, 242, 234, 0.7),
    3px 3px 0 rgba(255, 0, 80, 0.7) !important;
}

/* ==========================================================================
   PADRONIZAÇÃO DOS INPUTS NO CELULAR (EDIÇÃO DE PRODUTO)
   ========================================================================== */
@media (max-width: 768px) {
  /* Força todos os inputs dentro do modal de produto a serem iguais */
  #modal-adm-produto input[type="text"],
  #modal-adm-produto input[type="number"],
  #modal-adm-produto select,
  #modal-adm-produto textarea {
    height: 45px !important; /* Altura fixa confortável para o dedo */
    font-size: 16px !important; /* Tamanho legível (evita zoom no iPhone) */
    padding: 0 12px !important; /* Espaço interno */
    border-radius: 8px !important; /* Cantos iguais */
    width: 100% !important; /* Ocupa o espaço disponível */
    box-sizing: border-box !important;
    margin-bottom: 10px !important;

    /* Cores padronizadas */
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: white !important;
  }

  /* Ajuste especial para inputs que estão lado a lado (Custo/Venda) */
  #modal-adm-produto .form-input-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Divide em 2 colunas iguais */
    gap: 10px !important;
  }

  /* Rótulos (Labels) */
  #modal-adm-produto label {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    margin-bottom: 4px !important;
    display: block !important;
  }
}

/* ==========================================================================
   AJUSTE PREMIUM: SELETOR DE DATA E RECIBO MOBILE
   ========================================================================== */

/* 1. Recibo Responsivo (Zoom out no celular) */
@media (max-width: 768px) {
  #modal-previa-recibo {
    justify-content: flex-start !important;
    padding-top: 10px !important;
  }
  #folha-recibo-print {
    /* Reduz para 42% do tamanho original para caber na tela */
    transform: scale(0.42) !important;
    transform-origin: top center !important;
    /* Compensa o espaço vazio gerado pelo scale */
    margin-bottom: -140% !important;
    margin-top: 10px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
  }
}

/* 2. Seletor de Data Premium */
.date-premium-wrapper {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  margin: 0 auto; /* Centraliza */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.date-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.date-nav-btn:hover {
  background: var(--primary);
}

.date-display-text {
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.date-display-text small {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 2px;
}

/* SELETOR DE DATA NO CABEÇALHO (VISUAL PREMIUM) */
.date-compact-wrapper {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #1e293b, #0f172a); /* Gradiente sutil */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.date-compact-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: 0.2s;
  border-radius: 6px;
}
.date-compact-btn:hover {
  background: var(--primary);
  color: white;
}

.date-compact-text {
  padding: 0 15px;
  font-weight: 800;
  font-size: 0.85rem;
  color: white; /* Texto Branco Forte */
  min-width: 120px;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: 0.5px;
}
.date-compact-text small {
  color: var(--primary); /* Ano em destaque azul/cor do tema */
  font-size: 0.9rem;
}
.date-compact-text:hover {
  opacity: 0.8;
}

/* LAYOUT DE DASHBOARD ORGANIZADO */
.dashboard-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Esquerda (Histórico) maior, Direita (Top 5) menor */
  gap: 20px;
}

/* Header compacto */
.relatorio-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Seletor de Data Compacto */
.date-compact-wrapper {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 2px;
}
.date-compact-btn {
  background: transparent;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.date-compact-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
.date-compact-text {
  padding: 0 10px;
  font-weight: bold;
  font-size: 0.85rem;
  color: #e2e8f0;
  min-width: 100px;
  text-align: center;
  cursor: pointer;
}

/* No Celular, empilha tudo */
@media (max-width: 900px) {
  .dashboard-grid-layout {
    grid-template-columns: 1fr;
  }
  .relatorio-header-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .date-compact-wrapper {
    justify-content: space-between;
    margin-top: 10px;
  }
}

/* ==========================================================================
   CORREÇÃO: MODAL DE DATA (GRADE DE 12 MESES)
   ========================================================================== */

/* 1. O Container da Grade (Força o Grid 3x4) */
#modal-months-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* 3 Colunas */
  gap: 10px !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* 2. Os Botões dos Meses (Blocos) */
.month-btn-premium {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  padding: 12px 5px !important;
  border-radius: 8px !important;
  text-align: center !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;

  /* Centraliza o texto perfeitamente */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 45px !important;
}

/* Hover (Passar o mouse) */
.month-btn-premium:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  transform: translateY(-2px);
}

/* Mês Ativo (Selecionado) */
.month-btn-premium.active {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4) !important;
  font-weight: 800 !important;
}

/* Cabeçalho do Modal (Ano e Setas) */
.date-modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: rgba(0, 0, 0, 0.3) !important;
  padding: 10px 15px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.year-display-big {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: white !important;
  letter-spacing: 2px !important;
}

/* GRID DE 4 CARDS (Financeiro + Patrimônio) */
.metrics-grid-pro {
  display: grid;
  /* Padrão PC: 4 colunas iguais */
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

/* AJUSTE CELULAR: 2 Colunas (Fica 2x2 blocos) */
@media (max-width: 768px) {
  .metrics-grid-pro {
    grid-template-columns: 1fr 1fr;
  }

  /* Top 5 ocupa largura total no celular */
  .top5-mobile-container {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* BOTÃO FINALIZAR RÁPIDO (Na barra verde) */
#btn-finish-fast {
  background: #ffffff;
  color: #10b981; /* Verde */
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px; /* Espaço do total */
  transition: transform 0.2s;
  z-index: 2002;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#btn-finish-fast:hover {
  transform: scale(1.1);
  background: #f0fdf4;
}
@keyframes popIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* ==========================================================================
   NOVO VISUAL CATEGORIAS: ESTILO APPLE / BENTO (PERFEITO)
   ========================================================================== */

/* 1. O Fundo Escuro do Modal (CORRIGIDO: sem display flex forçado) */
#modal-cats {
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

/* 2. A Janela Branca (Mobile por padrão) */
#modal-cats .modal-content {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15) !important;
  padding: 25px 20px !important;
  color: #1d1d1f !important;

  /* Formato Celular (Centro e Arredondado) */
  width: 95% !important;
  max-width: 450px !important;
  border-radius: 32px !important;
  margin: auto !important;
  max-height: 85vh !important;
}
/* 3. COMPORTAMENTO PC: COLADO NA ESQUERDA (Altura total) */
@media (min-width: 1025px) {
  #modal-cats {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    /* Se não tiver menu lateral escuro nesse site, mude 260px para 0 */
    padding-left: 260px !important;
  }
  #modal-cats .modal-content {
    width: 420px !important;
    max-width: 420px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important; /* Mata o margin que puxava pro meio */
    border-radius: 0 32px 32px 0 !important; /* Reto na esquerda, redondo na direita */
  }
}

/* Título e Botão de Fechar */
#modal-cats h3 {
  color: #1d1d1f !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  text-align: left !important;
}

#modal-cats .close-modal {
  background: transparent !important;
  color: #64748b !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: none !important;
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  font-size: 1.5rem !important;
}

/* 4. A Grade de 3 Colunas */
#modal-cats .cat-grid-modal {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  padding: 10px 5px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}
#modal-cats .cat-grid-modal::-webkit-scrollbar {
  display: none !important;
}

/* 5. OS CARDS (O FIO DE CABELO DAS SOMBRAS E DA FONTE) */
#modal-cats .cat-card-modal {
  min-height: 90px !important; /* Um pouquinho mais alto para "respirar" igual o modelo */
  padding: 12px 10px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.01) !important; /* Borda quase invisível para segurar o contraste */
  border-radius: 18px !important;

  /* A SOMBRA: Mais espalhada (20px) porém super transparente (0.04) para dar o efeito "nuvem" */
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(0, 0, 0, 0.02) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;

  /* CORREÇÃO DA FONTE: Deixando delicada como na Imagem 1 */
  color: #334155 !important; /* Cinza escuro elegante ao invés de preto total */
  font-weight: 600 !important; /* Sem ser muito gordo/bold */
  font-size: 0.7rem !important; /* Letrinha um pouco menor */
  letter-spacing: 0px !important;
  line-height: 1.3 !important;

  transition: all 0.3s ease !important;
  cursor: pointer !important;
  margin: 0 !important;
}

/* Efeito ao tocar */
#modal-cats .cat-card-modal:hover {
  transform: scale(0.96) !important;
  background: #f8fafc !important;
  color: var(--primary) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
}

/* O Botão Laranja (Datas Comemorativas) */
#modal-cats .cat-card-modal[onclick*="datas"],
#modal-cats .cat-card-modal.special {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.3) !important;
  border: none !important;
}
#modal-cats .cat-card-modal[onclick*="datas"]:hover {
  transform: scale(0.96) !important;
  filter: brightness(1.1) !important;
}
/* 6. CORREÇÃO: DEVOLVENDO A DELICADEZA DO BOTÃO DE CARRINHO */
.premium-btn {
  margin-top: auto !important;
  background: transparent !important;
  border: 1px solid var(--primary) !important; /* Volta a borda azul delicada */
  color: var(--primary) !important; /* Texto azul */
  padding: 14px 20px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important; /* Mata o fundo chapado */
}
.premium-btn:hover {
  background: rgba(14, 165, 233, 0.05) !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   ENGENHARIA VISUAL APPLE (FUNDO PEROLADO E SOMBRA NUVEM)
   ========================================================================== */

/* 1. O FUNDO DOS MODAIS (O segredo do contraste) */
#modal-cats .modal-content,
.cart-modal-body,
#modal-faq .modal-content {
  /* Usando a cor exata do fundo de ajustes do iPhone/Mac (#f5f5f7) */
  background: rgba(245, 245, 247, 0.96) !important;
  backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important; /* Borda super sutil */
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15) !important; /* Sombra pesada só embaixo da janela grande */
}

/* 2. OS CARDS (Onde a mágica acontece) */
#modal-cats .cat-card-modal,
.cart-modal-body .item-list-row,
.faq-item-modal {
  background: #ffffff !important; /* Card em branco puro para saltar do fundo cinza */
  border: 1px solid rgba(0, 0, 0, 0.02) !important; /* Contorno físico quase invisível */
  border-radius: 20px !important; /* Cantos arredondados contínuos e suaves */

  /* 
       A SOMBRA EM DUAS CAMADAS:
       Camada 1: Sombra curta e muito clara só para dar peso (contato).
       Camada 2: A Nuvem. 30px de desfoque, mas "-6px" de encolhimento. 
                 Ela some nas laterais e no topo, vazando apenas uma névoa para baixo.
    */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 12px 30px -6px rgba(0, 0, 0, 0.06) !important;

  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* 3. A INTERAÇÃO FÍSICA (O afundar macio ao tocar) */
#modal-cats .cat-card-modal:hover,
.cart-modal-body .item-list-row:hover,
.faq-item-modal:hover {
  transform: scale(0.97) !important; /* Afunda delicadamente */

  /* A sombra encolhe e fica mais escura, simulando que encostou no chão */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 10px -3px rgba(0, 0, 0, 0.05) !important;
}

/* 4. O BOTÃO LARANJA (Proteção para manter o destaque) */
#modal-cats .cat-card-modal[onclick*="datas"],
#modal-cats .cat-card-modal.special {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow:
    0 2px 4px rgba(245, 158, 11, 0.1),
    0 12px 25px -5px rgba(245, 158, 11, 0.35) !important; /* Nuvem alaranjada */
}

/* ==========================================================================
   CORREÇÃO DE LEITURA: TEXTOS ESCUROS NO CARRINHO E FAQ
   ========================================================================== */

/* 1. Textos do Carrinho */
.cart-modal-body,
.cart-modal-body h2,
.cart-modal-body div,
.cart-modal-body span,
.cart-modal-body strong,
.cart-modal-body p,
.cart-modal-body label,
#cart-msg-display {
  color: #1d1d1f !important; /* Preto premium (Chumbo escuro) */
}

/* Os botões de pagamento do carrinho */
.pay-option-btn {
  color: #1d1d1f !important;
}

/* Proteção: O botão PIX continua com a letra branca por causa do fundo verde */
.pay-option-btn.pix-btn {
  color: #ffffff !important;
}

/* 2. Textos das Perguntas Frequentes (FAQ) */
#modal-faq h2,
#modal-faq h3,
#modal-faq .modal-content {
  color: #1d1d1f !important;
}

/* A Pergunta (Mais escura e em negrito) */
.faq-q-modal {
  color: #1d1d1f !important;
  font-weight: 700 !important;
}

/* A Resposta (Um cinza um pouquinho mais suave para leitura longa) */
.faq-a-modal {
  color: #334155 !important;
  font-weight: 500 !important;
}

/* ==========================================================================
   FUNDO 100% BRANCO (WHITE ON WHITE) PARA MÁXIMA DELICADEZA
   ========================================================================== */

#modal-cats .modal-content,
.cart-modal-body,
#modal-faq .modal-content {
  /* Fundo 100% branco com um micro-toque de transparência só para o vidro */
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;

  /* Borda levíssima ao redor da janela toda, só para separar do fundo escuro da tela */
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

/* ==========================================================================
   AJUSTE PONTUAL: RESPIRABILIDADE DAS DÚVIDAS FREQUENTES (FAQ)
   ========================================================================== */

/* 1. Mais espaço nas laterais e no topo/fundo da janela inteira */
#modal-faq .modal-content {
  padding: 35px 30px !important;
}

/* 2. Mais espaço entre uma pergunta e outra, e bordas internas mais folgadas */
.faq-item-modal {
  margin-bottom: 16px !important; /* Afasta os cards verticalmente */
  padding: 20px 25px !important; /* Desencosta o texto das bordas do card */
}

/* Garante que o título do modal também tenha respiro do primeiro card */
#modal-faq h2,
#modal-faq h3 {
  margin-bottom: 25px !important;
}
/* ==========================================================================
   CORREÇÃO FINAL: BOTÃO FECHAR (X) E BOTÃO PIX DELICADO
   ========================================================================== */

/* 1. Força o "X" de Fechar a ficar visível e elegante (Carrinho e FAQ) */
.cart-modal-body .close-modal,
#modal-faq .close-modal,
#cart-modal .close-modal {
  background: #f1f5f9 !important; /* Bolinha cinza bem clara */
  color: #64748b !important; /* O 'X' em cinza chumbo */
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 1.3rem !important;
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important; /* Garante que ele fique por cima de tudo */
}

/* Efeito ao passar o mouse ou tocar no 'X' */
.cart-modal-body .close-modal:hover,
#modal-faq .close-modal:hover,
#cart-modal .close-modal:hover {
  background: #e2e8f0 !important;
  color: #ef4444 !important; /* Fica vermelhinho suave */
}

/* 2. Botão PIX: Mais fresco, limpo e premium */
.pay-option-btn.pix-btn {
  /* Um verde mais claro, estilo Apple (fresco e delicado) */
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 18px !important;
  /* Sombra verde super suave em formato de nuvem */
  box-shadow:
    0 8px 20px rgba(16, 185, 129, 0.15),
    0 2px 6px rgba(16, 185, 129, 0.1) !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
}

/* Efeito ao tocar no botão PIX */
.pay-option-btn.pix-btn:hover {
  transform: scale(0.97) !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1) !important;
  filter: brightness(1.05) !important;
}

/* ==========================================================================
   NOVO VISUAL PREMIUM: BOTÃO PIX E JANELA DE CHECKOUT (CARRINHO)
   ========================================================================== */

/* 1. BOTÃO PIX INICIAL (Mais Delicado e Premium) */
.pay-option-btn.pix-btn {
  background: #ecfdf5 !important; /* Verde menta super suave */
  color: #059669 !important; /* Texto verde esmeralda elegante */
  border: 1px solid #a7f3d0 !important; /* Borda delicada */
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08) !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
}

.pay-option-btn.pix-btn i {
  color: #10b981 !important; /* Ícone no tom exato */
}

.pay-option-btn.pix-btn:hover {
  background: #d1fae5 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15) !important;
}

/* 2. FORÇA OS INPUTS DO CARRINHO A SEREM CLAROS (Tira o cinza feio do admin) */
.cart-modal-body .form-input {
  background: #f8fafc !important; /* Fundo branco/gelo */
  border: 1px solid #e2e8f0 !important; /* Borda cinza suave */
  color: #1e293b !important; /* Texto escuro */
  border-radius: 12px !important;
  padding: 14px 15px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s !important;
}

.cart-modal-body .form-input:focus {
  border-color: var(--primary) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

.cart-modal-body .form-input::placeholder {
  color: #94a3b8 !important; /* Placeholder legível */
}

/* 3. CAIXA DA CHAVE PIX (Clean e Organizada) */
.pix-box {
  background: #f0fdf4 !important; /* Fundo verdinho claro */
  border: 1px solid #bbf7d0 !important;
  padding: 20px !important;
  border-radius: 16px !important;
  margin-bottom: 20px !important;
  text-align: center;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.05) !important;
}

.pix-box small {
  color: #059669 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.5px !important;
}

.pix-key-display {
  display: block;
  margin: 12px auto !important;
  font-family: "Courier New", Courier, monospace !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 12px !important;
  border-radius: 10px !important;
  word-break: break-all;
  font-weight: 700 !important;
  color: #334155 !important;
  font-size: 0.95rem !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
}

/* 4. BOTÃO DE COPIAR CHAVE PIX (Premium & Delicado) */
.pix-box button {
  background: #ecfdf5 !important; /* Fundo menta suave */
  color: #059669 !important; /* Texto verde esmeralda */
  border: 1px solid #a7f3d0 !important; /* Borda fina delicada */
  padding: 10px 24px !important;
  border-radius: 50px !important; /* Pílula perfeita */
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.04) !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.pix-box button:hover {
  background: #d1fae5 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.1) !important;
}

/* 5. BOTÃO "VOLTAR" INVISÍVEL E ELEGANTE */
#checkout-area button[onclick="window.voltarParaOpcoesPagamento()"] {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: 0.2s !important;
}

#checkout-area button[onclick="window.voltarParaOpcoesPagamento()"]:hover {
  color: #0ea5e9 !important;
  background: #f1f5f9 !important;
}

/* 6. BOTÃO ENVIAR PEDIDO NO WHATSAPP (Premium & Delicado) */
#checkout-area .btn-buy,
button[onclick="window.enviarPedidoZap()"] {
  background: #ecfdf5 !important; /* Fundo menta suave combinando */
  color: #059669 !important; /* Texto verde esmeralda */
  border: 1px solid #a7f3d0 !important; /* Borda delicada */
  border-radius: 14px !important; /* Cantos arredondados contínuos premium */
  padding: 15px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  margin-top: 15px !important;
  cursor: pointer;
}

#checkout-area .btn-buy:hover,
button[onclick="window.enviarPedidoZap()"]:hover {
  background: #d1fae5 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.12) !important;
}

#checkout-area .btn-buy i,
button[onclick="window.enviarPedidoZap()"] i {
  color: #10b981 !important; /* Ícone destacado do WhatsApp */
  font-size: 1.2rem !important;
}

/* BOTÃO ADICIONAR AO CARRINHO (Estilo Premium) */
.btn-buy {
  background: #ecfdf5 !important; /* Menta suave */
  color: #059669 !important; /* Esmeralda */
  border: 1px solid #a7f3d0 !important; /* Borda delicada */
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05) !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  border-radius: 12px !important;
}

.btn-buy:hover {
  background: #d1fae5 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.12) !important;
  filter: brightness(
    1
  ) !important; /* Remove o brilho excessivo do estilo antigo */
}

/* Garante que o ícone combine com a nova cor */
.btn-buy i {
  color: #10b981 !important;
}

/* --- BOTÃO COMPRA E DETALHES (Consolidado e Blindado) --- */
.btn-buy,
#btn-detail-add,
button[onclick="window.enviarPedidoZap()"] {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 15px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  cursor: pointer !important;
}

.btn-buy:hover,
#btn-detail-add:hover,
button[onclick="window.enviarPedidoZap()"]:hover {
  background: #d1fae5 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.12) !important;
}

/* Ícones dentro dos botões */
.btn-buy i,
#btn-detail-add i,
button[onclick="window.enviarPedidoZap()"] i {
  color: #10b981 !important;
}
/* ==========================================================================
  DEVOCIONAL
   ========================================================================== */

/* MODAL ESTILO "PRINT" (Limpo e Centralizado) */
#modal-devocional {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.devocional-content-premium {
  background: #ffffff !important;
  width: 90% !important;
  max-width: 500px !important; /* Tamanho exato para ficar elegante */
  padding: 30px !important;
  border-radius: 20px !important;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  text-align: center;
  font-family: sans-serif;
}

.dev-title {
  color: #333 !important;
  font-size: 1.4rem !important;
  margin-bottom: 20px !important;
  font-weight: 600 !important;
}

.dev-text-body {
  color: #444 !important;
  font-size: 1.1rem !important;
  line-height: 1.5 !important;
  margin-bottom: 25px !important;
}

.dev-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  color: #999 !important;
  cursor: pointer;
}
/* ==========================================================================
   EFEITO PREMIUM: INFLAR AO ADICIONAR PRODUTO (POP/PULSE)
   ========================================================================== */
@keyframes inflarEfeito {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  } /* Ele cresce 35% no meio do efeito */
  100% {
    transform: scale(1);
  } /* Volta ao tamanho normal macio */
}

/* Esta classe aplica o efeito "mola" perfeitamente */
.carrinho-pop {
  animation: inflarEfeito 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Opcional: Um efeito de transição suave se passar o mouse no PC */
#pc-cart-button:hover .cart-badge {
  transform: scale(1.15);
  transition: transform 0.2s ease;
}
/* ==========================================================================
   VISUAL FINO: CARRINHO VERDE PASTEL (PC E CELULAR)
   ========================================================================== */

/* 1. Botão do PC */
#pc-cart-button {
  background-color: var(--cart-bg-soft) !important;
  color: var(--cart-green-strong) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

#pc-cart-button:hover {
  background-color: #d1f0db !important;
  transform: translateY(-2px);
}

/* 2. Botão do Celular (Pílula Central) */
.center-tab {
  flex: 0 0 auto !important;
  width: auto !important; /* Estica para caber a palavra 'Meu Carrinho' */
  height: 50px !important;
  padding: 0 20px !important;
  background-color: var(--cart-bg-soft) !important;
  color: var(--cart-green-strong) !important;
  border-radius: 30px !important;
  transform: translateY(-15px) !important;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.15) !important;
  border: 4px solid var(--bg) !important;
  display: flex !important;
  flex-direction: row !important; /* Ícone e texto lado a lado */
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.center-tab i {
  font-size: 1.2rem !important;
  margin: 0 !important;
}
.center-tab span {
  display: block !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.center-tab:active {
  transform: translateY(-15px) scale(0.95) !important;
}

/* 3. Ícone e Notificação com Efeito de Recorte (Igual Imagem) */
.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cart-badge-premium {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #ef4444 !important; /* Vermelho vivo da notificação */
  color: white !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  /* O truque do recorte perfeito: Borda da mesma cor do fundo pastel */
  border: 2px solid var(--cart-bg-soft) !important;
  box-shadow: none !important;
  z-index: 10;
  line-height: 1 !important;
}

/* Garante que o recorte da bordinha mude de cor no Hover do PC */
#pc-cart-button:hover .cart-badge-premium {
  border-color: #d1f0db !important;
}
/* ==========================================================================
   AJUSTE FINO: CARDS DE CATEGORIA ULTRA DELICADOS E BUSCA (ESTILO APPLE)
   ========================================================================== */

/* Remove a margem extra do título para a barra de busca encaixar perfeitamente */
#modal-cats h3 {
  margin-bottom: 0 !important;
}

/* A Sombra "Nuvem Branca" Super Delicada */
#modal-cats .cat-card-modal {
  background: #ffffff !important;
  /* Borda cinza super apagada, quase invisível */
  border: 1px solid rgba(226, 232, 240, 0.4) !important;
  border-radius: 18px !important;

  /* A mágica da sombra delicada: muito espalhada (24px) e cor super fraca (0.08) */
  box-shadow: 0px 8px 24px rgba(149, 157, 165, 0.08) !important;

  min-height: 85px !important;
  padding: 12px 5px !important;
  color: #334155 !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

/* Efeito suave ao encostar o dedo (Afunda a sombra) */
#modal-cats .cat-card-modal:hover {
  transform: scale(0.96) !important;
  box-shadow: 0px 4px 10px rgba(149, 157, 165, 0.05) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* O botão Laranja/Especial mantém o destaque, mas com uma sombra mais refinada */
#modal-cats .cat-card-modal[onclick*="datas"],
#modal-cats .cat-card-modal.special {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25) !important;
}

/* Efeito de click no novo botão de buscar do modal */
button[onclick="buscarPeloModal()"]:hover {
  transform: scale(0.95);
  filter: brightness(1.1);
}

/* ==========================================================================
   AJUSTE FINO CELULAR: CARRINHO FLUTUANTE E BUSCA MODAL (VERSÃO VIRGINIANA ♍)
   ========================================================================== */

/* Carrinho central do celular — tamanho mais equilibrado */
.center-tab {
  flex: 0 0 auto !important;
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;

  background: #10b981 !important;
  color: #ffffff !important;

  border-radius: 50% !important;
  transform: translateY(-18px) !important;
  box-shadow: 0 7px 18px rgba(16, 185, 129, 0.3) !important;
  border: 3px solid #ffffff !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

/* O ícone da sacola BEM no meio, livre da bolinha vermelha */
.center-tab .cart-icon-wrapper {
  position: static !important;
  font-size: 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 2. Bolinha Vermelha: Agora fixada na Borda do Botão Verde, não em cima do ícone */
.center-tab .cart-badge-premium {
  position: absolute !important;
  top: 0px !important;
  right: 0px !important;
  /* Empurra ela um tiquinho pra fora do círculo, igual aplicativo mesmo */
  transform: translate(15%, -15%) !important;

  background-color: #ef4444 !important;
  border: 2px solid #ffffff !important;
  color: white !important;
  min-width: 18px !important;
  height: 18px !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 768px) {
  /* O fundo cinza da busca */
  #modal-cats > div > div:nth-child(2) > div {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #modal-search-input {
    flex: 1 1 0% !important; /* O input engole apenas o espaço que sobra */
    min-width: 0 !important;
    width: 100% !important;
    font-size: 16px !important; /* Evita zoom automático do iPhone */
  }

  #modal-cats button[onclick="buscarPeloModal()"] {
    flex: 0 0 auto !important; /* O botão de buscar não se amassa nunca */
    padding: 0 15px !important;
  }
}
/* ==========================================================================
   AJUSTE FINO: DÚVIDAS FREQUENTES (FAQ) COM ANIMAÇÃO PREMIUM
   ========================================================================== */

/* 1. A Resposta (Estado Fechado) */
.faq-a-modal {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  transform: translateY(
    -10px
  ) !important; /* Inicia levemente recolhido para cima */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important; /* Curva de aceleração ultra suave */
  color: #334155 !important;
  font-weight: 500 !important;
}

/* 2. A Resposta (Estado Aberto) */
.faq-a-modal.open {
  max-height: 500px !important;
  opacity: 1 !important;
  padding-top: 15px !important;
  transform: translateY(0) !important; /* Desliza para a posição original */
}

/* 3. A Pergunta (Área de clique) */
.faq-q-modal {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  color: #1d1d1f !important;
  transition: all 0.3s ease !important;
}

/* 4. A Setinha Original */
.faq-q-modal i {
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.3s ease !important;
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
}

/* 5. A MÁGICA: Gira a setinha e pinta o texto quando a resposta estiver aberta */
.faq-item-modal:has(.faq-a-modal.open) .faq-q-modal i {
  transform: rotate(180deg) !important;
  color: var(--primary) !important;
}

.faq-item-modal:has(.faq-a-modal.open) .faq-q-modal {
  color: var(--primary) !important;
}
/* ==========================================================================
   AJUSTE TELA CHEIA CELULAR: MODAL DE DÚVIDAS FREQUENTES (FAQ)
   ========================================================================== */
@media (max-width: 768px) {
  #modal-faq .cart-modal-body {
    width: 100vw !important; /* Ocupa 100% da largura */
    max-width: 100vw !important;
    height: 100vh !important; /* Ocupa 100% da altura */
    max-height: 100vh !important;
    border-radius: 0 !important; /* Retira os cantos arredondados */
    margin: 0 !important; /* Zera as margens para colar na tela */
    box-sizing: border-box !important;
    padding: 25px 20px !important;
  }

  /* Garante que a lista de perguntas consiga rolar até o fim sem cortar */
  #faq-list-modal {
    max-height: calc(100vh - 100px) !important;
  }
}

/* ==========================================================================
   AJUSTE FINAL: PALAVRA DO DIA (VISUAL NATIVO E TELA CHEIA)
   ========================================================================== */

/* Fundo da tela do Devocional */
#modal-devocional {
  background: #ffffff !important;
  align-items: flex-start !important;
}

/* O Container que ocupa 100% no celular */
.devocional-content-premium {
  background: #ffffff !important;
  width: 100vw !important;
  max-width: 600px !important; /* Limite para não ficar gigante no PC */
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 auto !important;
  padding: 20px 25px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* Barra Superior (Top Bar) */
.dev-top-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

.dev-close-btn {
  position: static !important;
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  color: #cbd5e1 !important; /* Cinza clarinho suave */
  cursor: pointer !important;
}

.dev-zap-btn {
  color: #22c55e !important;
  font-size: 1.6rem !important;
  text-decoration: none !important;
}

/* Cabeçalho: Folha e Título */
.dev-header {
  text-align: center !important;
  margin-bottom: 25px !important;
}

.dev-leaf-icon {
  color: #10b981 !important; /* Verde Folha (Esmeralda) */
  font-size: 1.8rem !important;
  margin-bottom: 10px !important;
}

.dev-title {
  color: #115e59 !important; /* Verde Escuro Profundo */
  font-family: "Georgia", serif !important;
  font-size: 1.8rem !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   O TEXTO DO JS: CARD DO VERSÍCULO E PARÁGRAFO
-------------------------------------------------------------------------- */
#dev-texto {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  text-align: center !important;
}

/* Engloba o primeiro bloco gerado pelo JS (transformando no Card Branco) */
#dev-texto > blockquote,
#dev-texto > div:first-child {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
  border-radius: 16px !important;
  padding: 35px 25px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
  margin-bottom: 30px !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* As aspas grandes no Card (Top e Bottom) */
#dev-texto > blockquote::before,
#dev-texto > div:first-child::before {
  content: "“";
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 3.5rem;
  color: #a7f3d0;
  font-family: "Georgia", serif;
  line-height: 0.5;
}

#dev-texto > blockquote::after,
#dev-texto > div:first-child::after {
  content: "”";
  position: absolute;
  bottom: -15px;
  right: 15px;
  font-size: 3.5rem;
  color: #a7f3d0;
  font-family: "Georgia", serif;
  line-height: 0.5;
}

/* Fonte do Versículo (Itálico e Serifado) */
#dev-texto > blockquote p:first-child,
#dev-texto > div:first-child p:first-child {
  font-family: "Georgia", serif !important;
  font-size: 1.25rem !important;
  font-style: italic !important;
  color: #334155 !important;
  margin-bottom: 15px !important;
  line-height: 1.5 !important;
}

/* A Referência (Ex: SALMOS 119:11) */
#dev-texto > blockquote p:last-child,
#dev-texto > div:first-child p:last-child {
  font-family: "Poppins", sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  color: #1e293b !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

/* O texto explicativo e a Curiosidade */
#dev-texto > p {
  font-family: "Poppins", sans-serif !important;
  font-size: 0.95rem !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin-bottom: 25px !important;
  width: 95% !important;
}

/* Botão Amém */
.dev-amem-btn {
  background: none !important;
  border: none !important;
  color: #10b981 !important;
  font-family: "Georgia", serif !important;
  font-size: 1.4rem !important;
  font-style: italic !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  padding: 10px !important;
  margin-top: auto !important; /* Joga para o final da tela */
  margin-bottom: 30px !important;
}
/* ==========================================================================
   PC — CARRINHO SEMPRE VISÍVEL NO MENU LATERAL
   ========================================================================== */

@media (min-width: 1025px) {
  /* Impede que o menu inteiro role */
  #premium-sidebar {
    overflow: hidden !important;
  }

  /* Somente os links centrais podem rolar */
  #premium-sidebar .sidebar-nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-bottom: 15px !important;
  }

  /* Área fixa do carrinho */
  #premium-sidebar .sidebar-cart-fixed {
    flex: 0 0 auto !important;
    padding: 12px 15px !important;
    background: var(--bg) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.06) !important;
    position: relative !important;
    z-index: 10 !important;
  }

  #premium-sidebar .sidebar-cart-button {
    width: 100% !important;
    min-height: 64px !important;
    padding: 12px 14px !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    gap: 13px !important;

    background: #e6f7ec !important;
    color: #166534 !important;
    border: 1px solid rgba(22, 163, 74, 0.18) !important;
    border-radius: 14px !important;

    box-shadow: 0 5px 14px rgba(22, 163, 74, 0.1) !important;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease !important;
  }

  #premium-sidebar .sidebar-cart-button:hover {
    background: #dcfce7 !important;
    color: #15803d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.16) !important;
  }

  #premium-sidebar .sidebar-cart-button .cart-icon-wrapper {
    position: relative !important;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #ffffff !important;
    color: #16a34a !important;
    border-radius: 11px !important;
    font-size: 1.15rem !important;
  }

  #premium-sidebar .sidebar-cart-text {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    line-height: 1.2 !important;
  }

  #premium-sidebar .sidebar-cart-text span {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
  }

  #premium-sidebar .sidebar-cart-text small {
    margin-top: 3px !important;
    color: #4b7d5d !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
  }

  #premium-sidebar .sidebar-cart-arrow {
    color: #16a34a !important;
    font-size: 0.85rem !important;
  }

  /* O acesso administrativo também permanece fixo */
  #premium-sidebar .sidebar-footer {
    flex: 0 0 auto !important;
  }
}
/* ==========================================================================
   IDENTIDADE DA LOJA — LOGO E NOME PROFISSIONAIS
   ========================================================================== */

.sidebar-header {
  padding: 16px 14px !important;
  gap: 10px !important;
}

.brand-store {
  flex: 1;
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 7px;
  border-radius: 14px;

  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.brand-store:hover {
  background: rgba(14, 165, 233, 0.07);
}

.brand-store:active {
  transform: scale(0.98);
}

.brand-logo-box {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 13px;

  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.brand-logo-box .brand-logo-img {
  width: 100% !important;
  height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  padding: 5px;
  object-fit: contain;
}

.brand-logo-box #brand-icon-default {
  color: var(--primary);
  font-size: 1.25rem;
}

.brand-store-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-store-info #brand-name {
  display: block;
  max-width: 155px;

  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-store-info small {
  margin-top: 4px;

  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

@media (max-width: 1024px) {
  .brand-store-info #brand-name {
    max-width: 165px;
  }
}

/* ==========================================================================
   LOGIN — DISPOSITIVO CONFIÁVEL
   ========================================================================== */

.trusted-device-option {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;

  width: 100%;
  margin: 5px 0 25px 0 !important;
  padding: 12px 14px;

  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;

  color: #334155 !important;
  text-align: left;
  cursor: pointer;
}

.trusted-device-option input {
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px;

  margin: 0 !important;
  accent-color: var(--primary);
  cursor: pointer;
}

.trusted-device-option span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.trusted-device-option strong {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.trusted-device-option small {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.7rem;
}

/* ==========================================================================
   CABEÇALHO PREMIUM — LARGURA TOTAL
   ========================================================================== */

.hero.hero-premium {
  width: 100vw;
  max-width: none;
  margin: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  padding: 0 !important;
  text-align: center;
}

/* No PC começa exatamente depois do menu lateral de 260px */
@media (min-width: 1025px) {
  .hero.hero-premium {
    width: calc(100vw - 260px);
    margin-left: calc(50% - 50vw + 130px) !important;
  }
}

.hero-premium-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 36px 28px 28px;
  border: none;
  border-radius: 0;
  box-sizing: border-box;

  background:
    radial-gradient(
      circle at 8% 8%,
      color-mix(in srgb, var(--primary) 18%, transparent),
      transparent 34%
    ),
    radial-gradient(
      circle at 92% 92%,
      color-mix(in srgb, var(--accent) 17%, transparent),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary) 8%, #ffffff),
      color-mix(in srgb, var(--accent) 8%, #ffffff)
    );

  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.07),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Detalhes decorativos */

.hero-premium-card::before,
.hero-premium-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero-premium-card::before {
  width: 170px;
  height: 170px;
  top: -105px;
  right: -55px;
  background: var(--primary);
  opacity: 0.08;
}

.hero-premium-card::after {
  width: 135px;
  height: 135px;
  bottom: -90px;
  left: -40px;
  background: var(--primary);
  opacity: 0.06;
}

.hero-premium-card > * {
  position: relative;
  z-index: 1;
}

/* Frase superior */

.hero-kicker {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 15px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.hero-kicker i {
  font-size: 0.7rem;
}

/* Título e subtítulo */

.hero.hero-premium h1 {
  max-width: 760px;
  margin: 0 auto 10px !important;
  color: #1e293b !important;
  font-size: clamp(1.8rem, 4vw, 2.65rem) !important;
  line-height: 1.12;
  letter-spacing: -1.3px !important;
  font-weight: 800;
}

.hero.hero-premium p {
  max-width: 650px;
  margin: 0 auto !important;
  color: #64748b !important;
  font-size: 0.96rem !important;
  line-height: 1.6;
  font-weight: 500 !important;
}

/* Botão Explorar categorias */

.hero-categories-toggle {
  min-width: 250px;
  margin: 24px auto 0;
  padding: 13px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 15px;
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.hero-categories-toggle:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow:
    0 13px 28px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 #ffffff;
}

.hero-categories-toggle:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.hero-toggle-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-toggle-main > i,
.hero-toggle-arrow {
  color: var(--primary);
}

.hero-toggle-arrow {
  transition:
    transform 0.35s ease,
    color 0.25s ease;
}

.hero-categories-toggle.open .hero-toggle-arrow {
  transform: rotate(180deg);
}

/* Painel das categorias */

.hero-categories-panel {
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-7px);
  pointer-events: none;
  border-top: 1px solid transparent;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    transform 0.35s ease,
    margin-top 0.35s ease,
    padding-top 0.35s ease;
}

.hero-categories-panel.open {
  max-height: 580px;
  margin-top: 22px;
  padding-top: 18px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  border-top-color: rgba(100, 116, 139, 0.12);
}

.hero-categories-caption {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Botões das categorias */

.hero-categories-grid {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-category-chip {
  min-width: 0;
  min-height: 47px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035);
  font-family: inherit;
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.hero-category-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-category-chip i {
  flex-shrink: 0;
  color: var(--primary);
  font-size: 0.75rem;
}

.hero-category-chip:hover {
  transform: translateY(-2px);
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.hero-category-chip.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 28%, transparent);
}

.hero-category-chip.active i {
  color: #ffffff;
}

.hero-category-chip.hero-category-more {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, #ffffff);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--primary) 36%, #e2e8f0);
}

/* Esconde o menu antigo */

#category-menu {
  display: none !important;
}

/* Cabeçalho compacto sem título e subtítulo */

.hero-premium-card.hero-sem-textos {
  padding-top: 24px;
  padding-bottom: 22px;
}

.hero-premium-card.hero-sem-textos .hero-kicker {
  margin-bottom: 0;
}

.hero-premium-card.hero-sem-textos .hero-categories-toggle {
  margin-top: 16px;
}

/* Celular e tablet */

@media (max-width: 1024px) {
  .hero.hero-premium {
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
  }
}

@media (max-width: 768px) {
  .hero-premium-card {
    padding: 28px 17px 22px;
    border-radius: 0;
  }

  .hero-kicker {
    margin-bottom: 13px;
    padding: 6px 11px;
    font-size: 0.61rem;
    letter-spacing: 1px;
  }

  .hero.hero-premium h1 {
    font-size: 1.65rem !important;
    letter-spacing: -0.8px !important;
  }

  .hero.hero-premium p {
    max-width: 290px;
    font-size: 0.86rem !important;
    line-height: 1.5;
  }

  .hero-categories-toggle {
    width: 100%;
    min-width: 0;
    max-width: 310px;
    margin-top: 20px;
    padding: 13px 15px;
    font-size: 0.82rem;
  }

  .hero-categories-panel.open {
    max-height: 700px;
  }

  .hero-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-category-chip {
    min-height: 48px;
    padding: 9px 8px;
    font-size: 0.68rem;
    border-radius: 12px;
  }

  .hero-premium-card.hero-sem-textos {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .hero-premium-card.hero-sem-textos .hero-categories-toggle {
    margin-top: 14px;
  }
}

/* MODAIS FAQ E CATEGORIAS — CORREÇÃO MOBILE */
@media (max-width: 768px) {
  #modal-faq,
  #modal-cats {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  #modal-faq .cart-modal-body,
  #modal-cats .modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* FAQ */
  #modal-faq .cart-modal-body {
    display: flex !important;
    flex-direction: column !important;
    padding: max(18px, env(safe-area-inset-top)) 18px
      max(18px, env(safe-area-inset-bottom)) !important;
  }

  #modal-faq .cart-modal-body > div:first-child {
    min-height: 56px;
    margin-bottom: 14px !important;
    padding: 0 2px 14px !important;
    gap: 12px;
    flex-shrink: 0;
  }

  #modal-faq h2 {
    margin: 0 !important;
    font-size: 1.55rem !important;
    line-height: 1.15 !important;
  }

  #modal-faq .close-modal {
    position: static !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    flex-shrink: 0 !important;
    font-size: 1.35rem !important;
    cursor: pointer !important;
    touch-action: manipulation;
  }

  #faq-list-modal {
    flex: 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 6px 2px 30px !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Categorias */
  #modal-cats .modal-content {
    display: flex !important;
    flex-direction: column !important;
    padding: max(18px, env(safe-area-inset-top)) 16px
      max(18px, env(safe-area-inset-bottom)) !important;
  }

  #modal-cats .modal-content > div:first-child {
    min-height: 56px;
    margin-bottom: 14px !important;
    padding: 0 2px 12px !important;
    gap: 12px;
    flex-shrink: 0;
  }

  #modal-cats .modal-content > div:first-child h3 {
    margin: 0 !important;
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
  }

  #modal-cats .modal-content > div:first-child > div:last-child {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    flex-shrink: 0 !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    touch-action: manipulation;
  }

  #cat-grid-container {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-bottom: 30px !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* TESTE — IMAGENS AUTOMÁTICAS NAS CATEGORIAS */

#modal-cats .cat-card-visual {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  color: #334155 !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
  border-radius: 20px !important;
  font: inherit;
  cursor: pointer;
}

#modal-cats .cat-card-visual img {
  position: absolute;
  z-index: 0;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  object-fit: contain;
  opacity: 0.42;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

#modal-cats .cat-card-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

#modal-cats .cat-card-visual span {
  position: relative;
  z-index: 2;
  max-width: 100%;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.95);
}

#modal-cats .cat-card-visual:hover img {
  opacity: 0.55;
  transform: scale(1.04);
}

#modal-cats .cat-card-visual.active {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent) !important;
}

#modal-cats .cat-card-fallback {
  position: absolute;
  z-index: 0;
  color: var(--primary);
  font-size: 2.5rem;
  opacity: 0.1;
}
