/**
 * PREMIUM STYLES
 * Design sofisticado e único para Brutus Burguers
 * 
 * Este arquivo adiciona um toque premium e sofisticado ao site,
 * com tipografia elegante, gradientes sutis, sombras refinadas
 * e animações suaves para uma experiência única.
 */

:root {
  /* Cores Premium */
  --premium-black: #0a0a0a;
  --premium-dark: #1a1a1a;
  --premium-gray: #2a2a2a;
  --premium-light-gray: #f8f8f8;
  --premium-white: #ffffff;
  
  /* Cores de destaque */
  --accent-primary: #077c22;
  --accent-primary-dark: #055a18;
  --accent-primary-light: #0a9d2e;
  --accent-gold: #d4af37;
  --accent-gold-light: #f4d03f;
  
  /* Gradientes Premium */
  --gradient-primary: linear-gradient(135deg, #077c22 0%, #0a9d2e 100%);
  --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
  
  /* Sombras Premium */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(7, 124, 34, 0.3);
  
  /* Espaçamentos */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  
  /* Bordas */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transições */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   TIPOGRAFIA PREMIUM
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--premium-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--premium-black);
}

/* ============================================================================
   HEADER PREMIUM
   ============================================================================ */
header#topo {
  background: var(--premium-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
}

header#topo .cover {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

header#topo .cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

header#topo .cover .logo {
  position: relative;
  z-index: 2;
  border: 5px solid var(--premium-white);
  box-shadow: var(--shadow-xl), 0 0 0 8px rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

header#topo .cover .logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl), 0 0 0 8px rgba(255, 255, 255, 0.2), var(--shadow-glow);
}

header#topo .borda {
  background: var(--premium-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  border-radius: 40px 40px 0 0;
  z-index: 1;
}

header#topo .info h1 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--premium-black);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

header#topo .info .icones a {
  width: 44px;
  height: 44px;
  border: 2px solid var(--premium-gray);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  background: var(--premium-white);
}

header#topo .info .icones a:hover {
  background: var(--gradient-primary);
  border-color: var(--accent-primary);
  color: var(--premium-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

header#topo #menuCategorias {
  background: var(--premium-white);
  box-shadow: var(--shadow-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

header#topo .categorias a {
  font-weight: 600;
  font-size: 15px;
  color: var(--premium-gray);
  padding: 16px 24px;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-base);
  position: relative;
}

header#topo .categorias a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

header#topo .categorias a.ativo,
header#topo .categorias a:hover {
  color: var(--accent-primary);
}

header#topo .categorias a.ativo::after,
header#topo .categorias a:hover::after {
  width: 80%;
}

/* ============================================================================
   PRODUTOS PREMIUM
   ============================================================================ */
main#lista .produtos .item {
  transition: all var(--transition-base);
}

main#lista .produtos .item a {
  background: var(--premium-white);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

main#lista .produtos .item a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.05;
  transition: left var(--transition-slow);
}

main#lista .produtos .item a:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

main#lista .produtos .item a:hover::before {
  left: 0;
}

main#lista .produtos .item .texto h3 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--premium-black);
  margin-bottom: 4px;
  line-height: 1.3;
}

main#lista .produtos .item .texto span {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  display: block;
  margin-bottom: 6px;
}

main#lista .produtos .item .texto .precoPromocao {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-right: 8px;
}

main#lista .produtos .item .texto .preco {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Montserrat', 'Poppins', sans-serif;
}

main#lista .produtos .item .texto .preco b,
main#lista .produtos .item .texto span.preco b {
  background: #077c22 !important;
  color: white !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  font-weight: 700 !important;
  font-family: 'Montserrat', 'Poppins', sans-serif !important;
  display: inline-block;
  font-size: 18px !important;
}

main#lista .produtos .item .fotoProduto {
  flex-shrink: 0;
}

main#lista .produtos .item .texto .estoque {
  display: block !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #666 !important;
  font-family: 'Poppins', sans-serif !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

main#lista .produtos .item .texto .estoque b {
  display: inline-block !important;
  background: #e74c3c !important;
  color: white !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  margin: 0 2px !important;
  font-family: 'Montserrat', 'Poppins', sans-serif !important;
  white-space: nowrap !important;
}

main#lista .produtos .item .texto .estoque span {
  display: inline !important;
  white-space: normal !important;
}

main#lista .produtos .item .texto .estoque #estoqueCombo {
  display: inline !important;
  font-weight: 700 !important;
}

/* Ajuste para item pulsar */
main#lista .produtos .item.pulsar .texto,
main#lista .produtos .item a.pulsar .texto {
  position: relative;
  z-index: 1;
}

main#lista .produtos .item.pulsar .fotoProduto,
main#lista .produtos .item a.pulsar .fotoProduto {
  position: relative;
  z-index: 1;
}

main#lista .produtos .item .fotoProduto figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

main#lista .produtos .item a:hover .fotoProduto figure {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ============================================================================
   ALERTAS PREMIUM
   ============================================================================ */
.alert {
  background: var(--premium-white);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-dark), var(--accent-primary));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.alert-success {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 50%, #ffd6d6 100%);
  border: 3px solid #ff4757;
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.25), 0 0 30px rgba(255, 71, 87, 0.1);
  color: #c11e24;
  font-weight: 600;
  position: relative;
  animation: alert-pulse 3s ease-in-out infinite;
}

@keyframes alert-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.25), 0 0 30px rgba(255, 71, 87, 0.1);
  }
  50% {
    box-shadow: 0 6px 30px rgba(255, 71, 87, 0.4), 0 0 40px rgba(255, 71, 87, 0.2);
  }
}

.alert-success::after {
  content: '⚡';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.alert b {
  font-weight: 800;
  color: #c11e24;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(193, 30, 36, 0.2);
}

/* ============================================================================
   BOTÕES PREMIUM
   ============================================================================ */
.btn,
.add-to-cart-btn,
.cart-checkout-btn,
.checkout-submit-btn {
  background: var(--gradient-primary);
  color: var(--premium-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before,
.add-to-cart-btn::before,
.cart-checkout-btn::before,
.checkout-submit-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,
.add-to-cart-btn:hover::before,
.cart-checkout-btn:hover::before,
.checkout-submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover,
.add-to-cart-btn:hover,
.cart-checkout-btn:hover,
.checkout-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--accent-primary-dark);
}

.btn:active,
.add-to-cart-btn:active,
.cart-checkout-btn:active,
.checkout-submit-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

/* ============================================================================
   CARRINHO PREMIUM
   ============================================================================ */
.side-cart {
  background: var(--premium-white);
  box-shadow: var(--shadow-xl);
}

.side-cart-header {
  background: var(--gradient-dark);
  border-bottom: none;
  padding: 24px;
}

.side-cart-header h2 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--premium-white);
  letter-spacing: -0.01em;
}

.cart-item {
  background: var(--premium-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.cart-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.cart-item-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-item-name {
  font-weight: 600;
  color: var(--premium-black);
  font-size: 14px;
}

.cart-item-price {
  font-weight: 700;
  font-size: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cart-toggle {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.cart-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(7, 124, 34, 0.4);
}

.cart-badge {
  background: var(--accent-primary);
  color: var(--premium-white);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  font-family: 'Montserrat', 'Poppins', sans-serif;
}

/* ============================================================================
   CHECKOUT PREMIUM
   ============================================================================ */
.checkout-header {
  background: var(--gradient-dark);
  box-shadow: var(--shadow-md);
}

.checkout-form {
  background: var(--premium-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.checkout-form-section h3 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--premium-black);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-primary);
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  transition: all var(--transition-base);
  background: var(--premium-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(7, 124, 34, 0.1);
  outline: none;
}

.payment-method {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-base);
  background: var(--premium-white);
}

.payment-method:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.payment-method input[type="radio"]:checked + label {
  color: var(--accent-primary);
  font-weight: 600;
}

.checkout-summary {
  background: linear-gradient(135deg, var(--premium-light-gray) 0%, var(--premium-white) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================================================
   PÁGINA DE PRODUTO PREMIUM
   ============================================================================ */
.product-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.product-content {
  background: var(--premium-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xl);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--premium-light-gray);
}

.product-info h1 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--premium-black);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.price-current {
  font-size: 42px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.option-group {
  background: var(--premium-light-gray);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.option-group-title {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--premium-black);
  margin-bottom: 12px;
}

.option-item {
  background: var(--premium-white);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.option-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.option-item.selected {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(7, 124, 34, 0.05) 0%, rgba(7, 124, 34, 0.02) 100%);
  box-shadow: var(--shadow-sm);
}

.quantity-btn {
  background: var(--premium-white);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  font-size: 16px;
}

.quantity-btn:hover {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: var(--premium-white);
  transform: scale(1.1);
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   ANIMAÇÕES PREMIUM
   ============================================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

main#lista .produtos .item {
  animation: fadeInUp 0.5s ease-out backwards;
}

main#lista .produtos .item:nth-child(1) { animation-delay: 0.1s; }
main#lista .produtos .item:nth-child(2) { animation-delay: 0.2s; }
main#lista .produtos .item:nth-child(3) { animation-delay: 0.3s; }
main#lista .produtos .item:nth-child(4) { animation-delay: 0.4s; }
main#lista .produtos .item:nth-child(5) { animation-delay: 0.5s; }
main#lista .produtos .item:nth-child(n+6) { animation-delay: 0.6s; }

/* ============================================================================
   SCROLLBAR PREMIUM
   ============================================================================ */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--premium-light-gray);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  border: 3px solid var(--premium-light-gray);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary-dark);
}

/* ============================================================================
   RESPONSIVE PREMIUM
   ============================================================================ */
@media (max-width: 768px) {
  header#topo .info h1 {
    font-size: 24px;
  }
  
  .product-info h1 {
    font-size: 28px;
  }
  
  .price-current {
    font-size: 32px;
  }
  
  .product-content {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  header#topo .info h1 {
    font-size: 20px;
  }
  
  .product-info h1 {
    font-size: 24px;
  }
  
  .price-current {
    font-size: 28px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  main#lista .produtos {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  main#lista .produtos .item a {
    padding: 14px;
  }
}

/* ============================================================================
   FOOTER PREMIUM
   ============================================================================ */
footer {
  background: var(--gradient-dark);
  color: var(--premium-white);
  padding: var(--spacing-xl) 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-base);
}

footer a:hover {
  color: var(--premium-white);
}

/* ============================================================================
   LOADING STATES PREMIUM
   ============================================================================ */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

