/**
 * BRUTUS BURGUERS - NOVO DESIGN SYSTEM
 * Identidade Visual Moderna e Responsiva
 * Versão 2.0 - Design Completo Renovado
 */

/* ============================================================================
   VARIÁVEIS CSS - DESIGN SYSTEM
   ============================================================================ */
:root {
  /* Cores Principais - Nova Identidade */
  --primary: #dc2626; /* Vermelho vibrante principal */
  --primary-dark: #b91c1c;
  --primary-light: #ef4444;
  --primary-gradient: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  
  /* Cores Secundárias */
  --secondary: #1f2937; /* Cinza escuro */
  --accent: #f59e0b; /* Laranja/dourado */
  --accent-light: #fbbf24;
  
  /* Cores Neutras */
  --black: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #e2e8f0;
  --gray-200: #f1f5f9;
  --gray-100: #f8fafc;
  --white: #ffffff;
  
  /* Cores de Status */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Tipografia */
  --font-primary: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', 'Montserrat', sans-serif;
  
  /* Tamanhos de Fonte */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Espaçamentos */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  
  /* Bordas */
  --radius-sm: 0.5rem;   /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  --radius-2xl: 2rem;    /* 32px */
  --radius-full: 9999px;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Transições */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* ============================================================================
   RESET E BASE
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

/* ============================================================================
   SCROLLBAR PERSONALIZADA
   ============================================================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* ============================================================================
   CONTAINER
   ============================================================================ */
.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-12);
  }
}

/* ============================================================================
   TIPOGRAFIA
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-700);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================================================
   HEADER - NOVO DESIGN
   ============================================================================ */
header#topo {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header#topo .cover {
  background: var(--primary-gradient);
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}

header#topo .cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

header#topo .cover .container {
  position: relative;
  z-index: 2;
}

header#topo .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

header#topo .info h1 {
  font-family: Poppins;
  font-weight: 900;
  color: #676767;
  margin: 0;
}

header#topo .info .detalhe {
  display: flex;
  flex-direction: row;
  font-size: small;
  gap: 10px;
  padding: 2px 0;
  color: #676767;
}

header#topo .info .detalhe i {
  color: #676767;
}

header#topo .info .detalhe span {
  color: #676767;
}

header#topo .info .detalhe b {
  color: #676767;
  font-weight: 600;
}

/* Status da loja */
header#topo .info .aberto {
  color: #676767;
  display: flex;
  align-items: center;
  gap: 5px;
}

header#topo .info .aberto i {
  color: #10b981;
}

header#topo .info .aberto .horario {
  color: #676767;
}

header#topo .info .icones {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

header#topo .info .icones a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  width: 45px;
  border: 2px solid #EEE;
  border-radius: 100px;
  background: #FFF;
  color: #AAA;
  font-size: 20px;
  transition: .2s;
}

header#topo .info .icones a:hover {
  color: #676767;
  border-color: #676767;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, .05);
}

header#topo .cover .logo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  background: var(--white);
  padding: var(--space-3);
  box-shadow: var(--shadow-2xl);
  margin: 0 auto var(--space-6);
  transition: transform var(--transition-base);
}

header#topo .cover .logo:hover {
  transform: scale(1.05) rotate(5deg);
}

header#topo .cover .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Menu de Categorias - Novo Design */
header#topo #menuCategorias {
  background: var(--secondary);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow-md);
}

header#topo #menuCategorias.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

header#topo .categorias {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-2) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-600) var(--secondary);
  -webkit-overflow-scrolling: touch;
}

header#topo .categorias::-webkit-scrollbar {
  height: 4px;
}

header#topo .categorias a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 5px 20px;
  white-space: nowrap;
  border-top: 2px solid #000000;
  transition: all var(--transition-base);
  position: relative;
  flex-shrink: 0;
  min-width: fit-content;
}

header#topo .categorias a:hover,
header#topo .categorias a.ativo {
  color: #ffffff;
  border-top-color: #ffffff;
}

header#topo .categorias a.ativo {
  font-weight: bold;
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */
main#lista {
  margin-top: 5px;
  padding-bottom: 85px;
  position: relative;
  z-index: 1;
  background: #ffffff;
}

main#lista .container {
  max-width: var(--container-2xl);
}

/* Banners de Conversão */
.conversion-banner,
.highlight-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gray-200);
}

.conversion-banner-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--space-2);
}

.conversion-banner-text {
  font-size: var(--text-base);
  color: var(--gray-600);
}

.highlight-box-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.highlight-box-text {
  font-size: var(--text-base);
  color: var(--gray-700);
}

/* Categorias de Produtos */
.categoria {
  position: relative;
  margin-bottom: 40px;
  padding-top: 20px;
  scroll-margin-top: 100px;
  z-index: 1;
}

.categoria h2 {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 5px;
}

/* Grid de Produtos - Responsivo melhorado para PC */
main#lista .produtos {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: var(--space-4);
}

/* Tablet */
@media (min-width: 640px) {
  main#lista .produtos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Desktop Médio */
@media (min-width: 1024px) {
  main#lista .produtos {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

/* Desktop Grande */
@media (min-width: 1280px) {
  main#lista .produtos {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Cards de Produto - Novo Design */
main#lista .produtos .item {
  position: relative;
}

/* Layout dos cards de produto - mantendo original */
main#lista .produtos .item a {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  padding: 10px 12px;
  background: #FFF;
  border-radius: 12px;
  border: 2px solid #cecece;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

main#lista .produtos .item a:hover {
  background: #f8fafc;
  border-color: #077c22;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

main#lista .produtos .item.pulsar a {
  animation: pulse 2s infinite;
  border-color: var(--primary);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: var(--shadow-lg), 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: var(--shadow-xl), 0 0 0 10px rgba(220, 38, 38, 0);
  }
}

/* Cards de Produto - Mantendo tamanhos originais */
main#lista .produtos .item .fotoProduto {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: fit-content;
  height: fit-content;
  flex-shrink: 0;
}

main#lista .produtos .item .fotoProduto figure {
  margin: 0;
  padding: 0;
  display: block;
  width: 110px;
  height: 110px;
  line-height: 0;
  border: 1px solid #cecece;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

main#lista .produtos .item .fotoProduto img {
  width: 70px;
  height: 70px;
  display: block;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: none;
  vertical-align: top;
  transition: transform var(--transition-base);
}

main#lista .produtos .item a:hover .fotoProduto img {
  transform: scale(1.05);
}

main#lista .produtos .item .texto {
  display: flex;
  flex-direction: column;
  padding-right: 10px;
  flex: 1;
  min-width: 0;
}

main#lista .produtos .item .texto h3 {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  line-height: 1.3;
  margin-bottom: 2px;
  color: #1a1a1a;
}

main#lista .produtos .item .texto span {
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

main#lista .produtos .item .texto span.precoPromocao {
  text-decoration: line-through;
  color: #999;
}

main#lista .produtos .item .texto span.preco {
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  margin-top: 4px;
}

/* Badges de Urgência - cores já definidas inline no HTML */
.urgency-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-md);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}

.stock-warning {
  background: var(--warning);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-3);
}

/* Alertas */
.alert {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
}

.alert-success {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid var(--warning);
  color: var(--black);
}

.alert .countdown {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-4);
}

.alert .countdown .box {
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 80px;
  box-shadow: var(--shadow-md);
}

.alert .countdown .box span {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--primary);
}

.alert .countdown .box p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: var(--space-1) 0 0 0;
}

/* ============================================================================
   BOTÕES - NOVO DESIGN
   ============================================================================ */
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

/* ============================================================================
   RESPONSIVIDADE ESPECÍFICA
   ============================================================================ */

/* Mobile First - Já está aplicado acima */

/* Tablet */
@media (min-width: 768px) {
  header#topo .info h1 {
    font-size: var(--text-4xl);
  }
  
  header#topo .categorias {
    justify-content: center;
  }
  
  .conversion-banner,
  .highlight-box {
    padding: var(--space-8);
  }
  
}

/* Desktop */
@media (min-width: 1024px) {
  header#topo .cover {
    padding: var(--space-10) 0;
  }
  
  header#topo .info h1 {
    font-size: var(--text-5xl);
  }
  
  header#topo .cover .logo {
    width: 150px;
    height: 150px;
  }
  
  main#lista {
    padding: var(--space-12) 0 var(--space-20);
  }
  
  .categoria {
    margin-bottom: var(--space-16);
  }
  
}

/* Desktop Grande */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-16);
  }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
  header#topo .info h1 {
    font-size: var(--text-2xl);
  }
  
  header#topo .categorias {
    gap: 6px;
    padding: 8px 10px;
    justify-content: flex-start;
  }
  
  header#topo .categorias a {
    font-size: 13px;
    padding: 6px 14px;
    flex-shrink: 0;
    min-width: fit-content;
  }
  
  
  .categoria h2 {
    font-size: var(--text-2xl);
  }
}

