/* ==========================================================================
   Root Variables - Paleta Boutique & Confeitaria Fina
   ========================================================================== */
:root {
  --primary: #b57fe6; 
  --primary-dark: #8e4ec6;
  --primary-light: #f7effe;
  --secondary: #fca5b7; 
  --secondary-light: #fff0f3;
  --accent-gold: #d4a373;
  --text-dark: #3e2723; 
  --text-muted: #6d5b57;
  --text-light: #8d7b77;
  --bg: #faf7fc; 
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(181, 127, 230, 0.08);
  --shadow: 0 8px 25px rgba(142, 78, 198, 0.12);
  --shadow-lg: 0 15px 35px rgba(142, 78, 198, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --whatsapp-light: #e8fdf0;
}

/* ==========================================================================
   Base/Reset Styles
   ========================================================================== */
* {
  box-sizing: border-box;
}

body { 
  font-family: 'Poppins', sans-serif; 
  background-color: var(--bg); 
  color: var(--text-dark); 
  margin: 0; 
  padding: 0; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Header Styles com Efeito Glassmorphism
   ========================================================================== */
header {
  background: linear-gradient(135deg, rgba(181, 127, 230, 0.96), rgba(252, 165, 183, 0.96));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white); 
  text-align: center; 
  padding: 15px 15px 12px;
  position: sticky; 
  top: 0; 
  z-index: 100;
  box-shadow: 0 4px 20px rgba(142, 78, 198, 0.2); 
  border-bottom-left-radius: 24px; 
  border-bottom-right-radius: 24px;
}

.header-top { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  width: 100%; 
  position: relative;
}

.header-logo { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px; 
  font-family: 'Great Vibes', cursive; 
  font-size: 34px; 
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1); 
  margin: 0 auto;
}

.header-logo img { 
  width: 50px; 
  height: 50px; 
  border-radius: 50%; 
  object-fit: cover; 
  border: 2px solid var(--white); 
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

#user-greeting { 
  font-size: 12px; 
  opacity: 0.9; 
  margin-top: 5px; 
  font-weight: 400; 
}

/* ==========================================================================
   User Menu / Dropdown Styles
   ========================================================================== */
.user-menu-btn { 
  background-color: rgba(255,255,255,0.2); 
  color: var(--white); 
  border: 1px solid rgba(255,255,255,0.5); 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 16px; 
  cursor: pointer; 
  transition: 0.3s; 
  backdrop-filter: blur(5px); 
  padding: 0; 
  position: absolute; 
  right: 0; 
  top: 5px;
}

.user-menu-btn:hover { 
  background-color: var(--white); 
  color: var(--primary); 
}

.user-dropdown { 
  position: absolute; 
  top: 50px; 
  right: 0; 
  background: var(--white); 
  border-radius: 12px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
  width: 180px; 
  display: none; 
  flex-direction: column; 
  overflow: hidden; 
  z-index: 200;
}

.user-dropdown.show { 
  display: flex; 
  animation: fadeIn 0.2s ease;
}

.user-dropdown button { 
  background: none; 
  color: var(--text-dark); 
  border-radius: 0; 
  padding: 12px 15px; 
  text-align: left; 
  font-weight: 500; 
  font-size: 13px; 
  box-shadow: none; 
  border-bottom: 1px solid #f0f0f0; 
  width: 100%; 
  justify-content: flex-start;
}

.user-dropdown button:last-child { 
  border-bottom: none; 
  color: #e74c3c; 
}

.user-dropdown button:hover { 
  background: #f9f9f9; 
  color: var(--primary); 
  transform: none; 
}

.user-dropdown button i { 
  margin-right: 10px; 
  width: 16px; 
  text-align: center; 
}

/* ==========================================================================
   Layout Styles
   ========================================================================== */
.container { 
  padding: 22px 15px 110px; 
  max-width: 620px; 
  margin: 0 auto; 
}

@keyframes screenEntrance {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.screen { 
  display: none; 
}

.screen.active { 
  display: block; 
  animation: screenEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.row-2 { 
  display: flex; 
  gap: 10px; 
}

.row-2 .form-group { 
  flex: 1; 
}

.loading-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px;
  text-align: center;
  color: var(--text-light);
}

/* ==========================================================================
   Product Cards Styles
   ========================================================================== */
.produto-card, .admin-card, .login-box, .panel-card { 
  background: var(--white); 
  border-radius: var(--radius); 
  padding: 18px; 
  margin-bottom: 20px; 
  box-shadow: var(--shadow); 
  display: flex; 
  align-items: center; 
  border: 1px solid rgba(0,0,0,0.03); 
}

.produto-card { 
  flex-direction: column; 
  align-items: stretch; 
  padding: 0; 
  overflow: hidden; 
}

.produto-header { 
  display: flex; 
  align-items: center; 
  padding: 15px; 
}

.produto-img { 
  width: 90px; 
  height: 90px; 
  object-fit: cover; 
  border-radius: 12px; 
  margin-right: 15px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.produto-info { 
  flex: 1; 
}

.produto-info h3 { 
  margin: 0 0 4px 0; 
  font-size: 18px; 
  color: var(--text-dark); 
  font-weight: 600; 
}

.produto-desc { 
  padding: 0 15px 15px; 
  font-size: 13px; 
  color: var(--text-light); 
  line-height: 1.5; 
}

.produto-footer { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 12px 15px; 
  background: #fafafa; 
  border-top: 1px solid #f0f0f0; 
}

.preco { 
  font-weight: 600; 
  color: var(--primary-dark); 
  font-size: 16px;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */
button { 
  background-color: var(--primary); 
  color: var(--white); 
  border: none; 
  padding: 12px 20px; 
  border-radius: 10px; 
  font-weight: 600; 
  font-family: 'Poppins', sans-serif; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  box-shadow: 0 4px 10px rgba(196, 150, 242, 0.3); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px;
}

button:hover { 
  background-color: var(--primary-dark); 
  transform: translateY(-2px); 
}

button:active { 
  transform: translateY(0); 
}

.btn-adicionar { 
  padding: 8px 15px; 
  font-size: 13px; 
  border-radius: 20px; 
}

.btn-outline { 
  background-color: transparent; 
  color: var(--primary); 
  border: 2px solid var(--primary); 
  box-shadow: none; 
}

.btn-outline:hover { 
  background-color: var(--primary); 
  color: var(--white); 
}

.btn-danger { 
  background-color: #ff6b6b; 
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3); 
}

.btn-danger:hover { 
  background-color: #ff4757; 
}

.btn-google { 
  background-color: #ffffff; 
  color: #444444; 
  border: 1px solid #dcdfe6; 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); 
}

.btn-google:hover { 
  background-color: #f9f9f9; 
  border-color: #c0c4cc; 
  color: #222222; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

/* ==========================================================================
   Forms Styles
   ========================================================================== */
.form-group { 
  margin-bottom: 15px; 
  width: 100%;
}

.form-group label { 
  display: block; 
  font-weight: 600; 
  margin-bottom: 6px; 
  font-size: 13px; 
  color: var(--text-dark); 
}

.form-group input, .form-group select, .form-group textarea { 
  width: 100%; 
  padding: 12px 15px; 
  border: 2px solid #eee; 
  border-radius: 10px; 
  font-family: 'Poppins', sans-serif; 
  font-size: 14px; 
  background-color: #fafafa; 
  transition: border-color 0.3s; 
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
  border-color: var(--primary); 
  outline: none; 
  background-color: var(--white); 
}

/* ==========================================================================
   Cart Button Styles
   ========================================================================== */
#btn-ver-carrinho { 
  position: fixed; 
  bottom: 25px; 
  left: 5%; 
  width: 90%; 
  padding: 16px; 
  font-size: 16px; 
  background: var(--text-dark); 
  color: var(--white); 
  border-radius: 30px; 
  box-shadow: 0 10px 25px rgba(92, 64, 51, 0.4); 
  display: none; 
  justify-content: space-between; 
  align-items: center; 
  z-index: 90;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */
.modal-overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.55); 
  z-index: 99999; 
  display: none; 
  align-items: center; 
  justify-content: center; 
  backdrop-filter: blur(5px); 
  animation: fadeIn 0.25s ease-out;
  padding: 15px;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-content { 
  background: var(--white); 
  width: 100%; 
  max-width: 600px; 
  border-top-left-radius: 24px; 
  border-top-right-radius: 24px; 
  padding: 25px 20px; 
  position: relative; 
  animation: slideUp 0.3s ease-out; 
  max-height: 90vh; 
  overflow-y: auto;
}

.close-modal { 
  position: absolute; 
  top: 15px; 
  right: 20px; 
  font-size: 24px; 
  color: #aaa; 
  cursor: pointer; 
}

.modal-img-container { 
  text-align: center; 
  margin-bottom: 15px; 
}

.modal-img-container img { 
  width: 120px; 
  height: 120px; 
  object-fit: cover; 
  border-radius: 16px; 
  box-shadow: var(--shadow); 
}

.modal-title { 
  font-size: 22px; 
  color: var(--text-dark); 
  margin: 0 0 5px; 
  font-weight: 600; 
  text-align: center; 
}

.modal-price { 
  color: var(--primary-dark); 
  font-size: 18px; 
  font-weight: bold; 
  text-align: center; 
  margin-bottom: 15px; 
}

.modal-desc { 
  font-size: 13px; 
  color: var(--text-light); 
  text-align: center; 
  margin-bottom: 20px; 
  line-height: 1.5; 
}

/* ==========================================================================
   Variations Box Styles
   ========================================================================== */
.variations-box { 
  background: #fafafa; 
  border: 1px solid #eee; 
  border-radius: 12px; 
  padding: 15px; 
  margin-bottom: 20px; 
}

.variations-title { 
  font-weight: 600; 
  font-size: 14px; 
  margin-bottom: 10px; 
  color: var(--text-dark); 
}

.variation-item { 
  display: flex; 
  align-items: center; 
  padding: 8px 0; 
  border-bottom: 1px dashed #ddd; 
  cursor: pointer;
}

.variation-item:last-child { 
  border-bottom: none; 
}

.variation-item input { 
  margin-right: 10px; 
  width: 18px; 
  height: 18px; 
  accent-color: var(--primary); 
}

/* ==========================================================================
   Admin Panel Styles
   ========================================================================== */
.admin-nav { 
  display: flex; 
  gap: 8px; 
  margin-bottom: 25px; 
  overflow-x: auto; 
  padding-bottom: 5px;
}

.admin-nav button { 
  flex: 1; 
  background-color: #f0f0f0; 
  color: #555; 
  padding: 10px; 
  font-size: 13px; 
  border-radius: 8px; 
  white-space: nowrap; 
  box-shadow: none; 
  border: 1px solid #e0e0e0; 
  justify-content: center;
}

.admin-nav button.active { 
  background-color: var(--primary); 
  color: var(--white); 
  border-color: var(--primary); 
}

.admin-tab { 
  display: none; 
  animation: fadeIn 0.3s; 
}

.admin-tab.active { 
  display: block; 
}

.admin-item-card { 
  background: var(--white); 
  padding: 15px; 
  border-radius: 12px; 
  margin-bottom: 15px; 
  box-shadow: var(--shadow); 
  border-left: 5px solid var(--primary); 
}

.user-list-item { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 15px; 
  background: var(--white); 
  border-radius: 12px; 
  margin-bottom: 12px; 
  box-shadow: var(--shadow); 
}

/* ==========================================================================
   Calendar Styles
   ========================================================================== */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar { 
  width: 100%; 
  border-collapse: collapse; 
  background: var(--white); 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: var(--shadow); 
}

.calendar th { 
  background: var(--primary); 
  color: var(--white); 
  padding: 12px 5px; 
  font-size: 13px; 
  font-weight: 600;
}

.calendar td { 
  border: 1px solid #f0f0f0; 
  padding: 12px 5px; 
  text-align: center; 
  vertical-align: top; 
  height: 60px; 
  cursor: pointer; 
  transition: 0.2s;
}

.calendar td.has-order { 
  background-color: #fff0f5; 
  font-weight: bold; 
  color: var(--primary-dark); 
  border-bottom: 2px solid var(--secondary);
}

/* ==========================================================================
   File Upload Styles
   ========================================================================== */
.file-upload-wrapper { 
  position: relative; 
  overflow: hidden; 
  display: inline-block; 
  width: 100%; 
}

.file-upload-wrapper input[type=file] { 
  font-size: 100px; 
  position: absolute; 
  left: 0; 
  top: 0; 
  opacity: 0; 
  cursor: pointer; 
  height: 100%; 
}

.btn-upload { 
  background-color: #f9f9f9; 
  border: 2px dashed #ccc; 
  color: #666; 
  padding: 15px; 
  text-align: center; 
  border-radius: 10px; 
  display: block; 
  width: 100%; 
  transition: 0.3s;
}

.btn-upload:hover { 
  border-color: var(--primary); 
  color: var(--primary); 
  background-color: #fff9ff;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(10px); } 
  to { opacity: 1; transform: translateY(0); } 
}

@keyframes slideUp { 
  from { transform: translateY(100%); } 
  to { transform: translateY(0); } 
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (min-width: 768px) {
  .container {
    max-width: 800px;
  }
  
  #btn-ver-carrinho {
    width: 400px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .produto-card {
    flex-direction: row;
    align-items: center;
  }
  
  .produto-img {
    width: 120px;
    height: 120px;
  }
  
  .produto-header {
    flex: 1;
  }
  
  .produto-footer {
    flex-direction: column;
    justify-content: center;
    border-top: none;
    border-left: 1px solid #f0f0f0;
    width: 150px;
  }
}

/* ==========================================================================
   Estoque & Financeiro Active States
   ========================================================================== */
.btn-filtro-estoque.active,
.btn-periodo-fin.active,
.btn-filtro-extrato.active {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(196, 150, 242, 0.35);
  font-weight: 600;
}

/* ==========================================================================
   Carrinho Editável & Controles de Quantidade
   ========================================================================== */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.cart-item-row:hover {
  border-color: #e2e8f0;
}

.cart-item-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
}

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

.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.cart-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.btn-qty {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.btn-qty:hover {
  background: var(--primary);
  color: #ffffff;
}

.cart-qty-value {
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--text-dark);
}

.cart-item-subtotal {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  min-width: 70px;
  text-align: right;
  white-space: nowrap;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-remove-item:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* ==========================================================================
   Seletor de Modalidade: Entrega vs Retirada
   ========================================================================== */
.delivery-options-toggle {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-toggle-modalidade {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-toggle-modalidade i {
  font-size: 16px;
}

.btn-toggle-modalidade:hover {
  border-color: #cbd5e1;
}

.btn-toggle-modalidade.active {
  border-color: var(--primary);
  background: #faf5ff;
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(196, 150, 242, 0.2);
}

/* ==========================================================================
   Cards de Pedidos do Cliente (Meus Pedidos)
   ========================================================================== */
.user-order-card {
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.user-order-card:hover {
  border-color: #cbd5e1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pendente {
  background: #fef3c7;
  color: #92400e;
}

.status-preparo {
  background: #e0f2fe;
  color: #0369a1;
}

.status-pronto {
  background: #ede9fe;
  color: #6d28d9;
}

.status-entregue {
  background: #ecfdf5;
  color: #047857;
}

.status-cancelado {
  background: #fee2e2;
  color: #b91c1c;
}

.status-outro {
  background: #f1f5f9;
  color: #475569;
}

@media (max-width: 480px) {
  .cart-item-row {
    flex-wrap: wrap;
    padding: 10px;
  }
  .cart-item-title {
    white-space: normal;
  }
  .cart-item-subtotal {
    margin-left: auto;
  }
  .delivery-options-toggle {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================================================
   WhatsApp Conector & Botões de Ação Rápida
   ========================================================================== */
.btn-whatsapp {
  background: var(--whatsapp) !important;
  color: #ffffff !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 140, 126, 0.35);
}

.btn-whatsapp-sm {
  background: var(--whatsapp) !important;
  color: #ffffff !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-whatsapp-sm:hover {
  background: var(--whatsapp-dark) !important;
  transform: translateY(-1px);
}

.btn-whatsapp-outline {
  background: #ffffff !important;
  color: var(--whatsapp-dark) !important;
  border: 1.5px solid var(--whatsapp) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-whatsapp-outline:hover {
  background: var(--whatsapp-light) !important;
}

.whatsapp-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.whatsapp-pulse-dot.online {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

.whatsapp-pulse-dot.offline {
  background: #94a3b8;
}

.whatsapp-pulse-dot.direct {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.whatsapp-template-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.whatsapp-template-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.whatsapp-tag-pill {
  display: inline-block;
  background: #ede9fe;
  color: #6d28d9;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  margin: 2px 3px 2px 0;
  cursor: pointer;
  transition: background 0.15s;
}

.whatsapp-tag-pill:hover {
  background: #ddd6fe;
}

/* Polimento de inputs e botões com foco */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(181, 127, 230, 0.22) !important;
  outline: none;
}

/* ==========================================================================
   LUNOCA BOUTIQUE - Hero Banner & Ambientação
   ========================================================================== */
.hero-boutique {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 50%, #fff0f3 100%);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(181, 127, 230, 0.18);
  box-shadow: 0 10px 30px rgba(142, 78, 198, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-boutique::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(252, 165, 183, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7effe;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(181, 127, 230, 0.3);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.hero-benefits-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #f1e9f7;
  font-size: 11.5px;
  font-weight: 600;
  color: #554440;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.hero-benefit-item i {
  color: var(--primary);
  font-size: 12px;
}

/* ==========================================================================
   Barra de Pesquisa & Filtros por Categoria
   ========================================================================== */
.store-controls-wrapper {
  margin-bottom: 20px;
}

.store-search-box {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.store-search-box input {
  width: 100%;
  padding: 13px 40px 13px 44px;
  border-radius: 16px;
  border: 1.5px solid #ebdcf7;
  background: #ffffff;
  font-size: 13.5px;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  box-shadow: 0 3px 12px rgba(181, 127, 230, 0.05);
  transition: all 0.25s ease;
}

.store-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(181, 127, 230, 0.16);
  background: #ffffff;
}

.store-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 15px;
  pointer-events: none;
}

.store-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  display: none;
  box-shadow: none;
}

.category-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-chips-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1.5px solid #ece4f5;
  background: #ffffff;
  color: #5c4e4b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  white-space: nowrap;
}

.category-chip:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(142, 78, 198, 0.28);
}

/* ==========================================================================
   Cards de Doces Gourmet Redesenhados (Boutique)
   ========================================================================== */
.produtos-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.produto-card-boutique {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(181, 127, 230, 0.16);
  box-shadow: 0 4px 18px rgba(92, 64, 51, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.produto-card-boutique:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 127, 230, 0.4);
  box-shadow: 0 10px 28px rgba(142, 78, 198, 0.12);
}

.produto-thumb-wrap {
  width: 125px;
  min-height: 125px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #fbf9ff;
}

.produto-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.produto-card-boutique:hover .produto-thumb-wrap img {
  transform: scale(1.06);
}

.produto-badge-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--primary-dark);
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.produto-body {
  flex: 1;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.produto-title-wrap {
  margin-bottom: 6px;
}

.produto-nome-boutique {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.produto-desc-boutique {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produto-sabores-preview {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.sabor-mini-pill {
  font-size: 10px;
  font-weight: 600;
  background: #f7effe;
  color: var(--primary-dark);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.sabor-mini-pill.more {
  background: #f1f5f9;
  color: #64748b;
}

.produto-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #f1e9f7;
}

.preco-boutique {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  flex-direction: column;
}

.preco-boutique small {
  font-size: 10.5px;
  color: #887a77;
  font-weight: 500;
  margin-top: -2px;
}

.btn-comprar-boutique {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(181, 127, 230, 0.3);
  transition: all 0.2s ease;
}

.btn-comprar-boutique:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(142, 78, 198, 0.4);
}

/* ==========================================================================
   Skeleton Shimmer Loading
   ========================================================================== */
.skeleton-box {
  background: linear-gradient(90deg, #f1eef5 25%, #faf7fc 50%, #f1eef5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 10px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 120px;
  border-radius: 20px;
  border: 1px solid #f1eef5;
  margin-bottom: 14px;
}

/* ==========================================================================
   Modal de Produto Modernizado (Interativo)
   ========================================================================== */
.modal-hero-cover {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #fbf9ff;
  border: 1px solid #f1e9f7;
}

.modal-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-price-tag-floating {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(181, 127, 230, 0.2);
}

.sabor-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.sabor-chip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1.5px solid #ebdcf7;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s ease;
  user-select: none;
}

.sabor-chip-label:hover {
  border-color: var(--primary);
  background: #faf5ff;
}

.sabor-chip-label input[type="radio"] {
  display: none;
}

.sabor-chip-label .sabor-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: white;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sabor-chip-label input[type="radio"]:checked ~ .sabor-indicator {
  background: var(--primary);
  border-color: var(--primary);
}

.sabor-chip-label:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: #f7effe;
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(181, 127, 230, 0.2);
}

.modal-qty-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #faf7fc;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #ebdcf7;
  margin-top: 15px;
  margin-bottom: 15px;
}

.modal-qty-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2d7ec;
  padding: 3px;
}

.modal-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #faf7fc;
  color: var(--text-dark);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background 0.15s;
}

.modal-qty-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: none;
}

.modal-qty-display {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 28px;
  text-align: center;
}

/* ==========================================================================
   Header Cart Icon & Micro-Interações
   ========================================================================== */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 0;
  top: 5px;
}

.header-cart-quick-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(5px);
  padding: 0;
  position: relative;
  box-shadow: none;
}

.header-cart-quick-btn:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: scale(1.05);
}

.header-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Responsividade Mobile Refinada */
@media (max-width: 480px) {
  .produto-thumb-wrap {
    width: 105px;
    min-height: 105px;
  }
  .produto-nome-boutique {
    font-size: 14.5px;
  }
  .produto-desc-boutique {
    font-size: 12px;
  }
  .preco-boutique {
    font-size: 15px;
  }
  .btn-comprar-boutique {
    padding: 7px 11px;
    font-size: 11.5px;
  }
  .sabor-chip-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Gestão de Usuários & Níveis de Acesso no Admin
   ========================================================================== */
.user-card-admin {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #ebdcf7;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.user-card-admin:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(142, 78, 198, 0.1);
}

.user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.user-card-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-card-avatar.admin {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  border: 1.5px solid #f59e0b;
}

.user-card-avatar.operador {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
  border: 1.5px solid #0284c7;
}

.user-card-avatar.cliente {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #7e22ce;
  border: 1.5px solid #a855f7;
}

.badge-nivel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-nivel.admin {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-nivel.operador {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.badge-nivel.cliente {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.user-card-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  background: #faf7fc;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.user-card-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-info-item i {
  color: var(--primary);
  font-size: 13px;
  width: 14px;
  text-align: center;
}

.user-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  border-top: 1px dashed #f1e9f7;
  padding-top: 10px;
}

.user-metric-card {
  flex: 1;
  min-width: 100px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #ebdcf7;
  text-align: center;
}

/* ==========================================================================
   Etapa 2: Operação Diária & Experiência de Gestão (Nooty-Style)
   ========================================================================== */

.hoje-metricas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.metric-card-nooty {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card-nooty:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(181, 127, 230, 0.08);
}

.filtro-pills-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filtro-pill-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filtro-pill-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.filtro-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(181, 127, 230, 0.25);
}

.encomenda-card-nooty {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.encomenda-card-nooty:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.badge-estorno-alerta {
  font-size: 11px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.alerta-operacional {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}




/* ===== Etapa 2 - Fechamento: Revisão Financeira ===== */
.badge-revisao-financeira {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  animation: pulse-revisao 2.2s ease-in-out infinite;
}
@keyframes pulse-revisao {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
}
.filtro-pill-btn.filtro-pill-alerta {
  border-color: #fca5a5;
  color: #b91c1c;
}
.filtro-pill-btn.filtro-pill-alerta.active {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
