:root{
  --site-nav-height: 64px;
  --z-header: 1000;
}

/* Ensure the fixed navigation does not cover content */
.site-nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background-color: rgba(31,41,55,0.95); /* tailwind gray-800 fallback */
}

/* The page content will be pushed down by the nav height */
body{
  padding-top: var(--site-nav-height);
}

/* Small utilities to keep consistent spacing */
main, header, section, footer, .container{
  transition: padding-top 150ms ease;
}

/* Make sure images and videos don't overflow under the nav */
img, video, canvas{
  max-width: 100%;
}

/* Common styles */
.hero-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.animate-delay-600 {
  animation-delay: 0.6s;
}

/* ===== MOBILE RESPONSIVE ===== */

/* Logo mobile - oculto em desktop */
.mobile-logo {
  display: none;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
}

/* Botão hamburger - oculto em desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

/* Links de navegação - horizontal em desktop */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* MOBILE: até 768px */
@media (max-width: 768px) {
  :root { --site-nav-height: 56px; }
  
  /* Mostrar logo e hamburger em mobile */
  .mobile-logo {
    display: flex;
    align-items: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  /* Menu dropdown - oculto por padrão */
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #1f2937;
    flex-direction: column;
    padding: 12px;
    gap: 6px;
    border-top: 1px solid #374151;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 80vh;
    overflow-y: auto;
  }
  
  /* Menu aberto */
  .nav-links.active {
    display: flex;
  }
  
  /* Links ocupam largura total */
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  
  /* Títulos menores em mobile */
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }
  
  /* Hero mais compacto */
  .hero-bg {
    padding: 1.5rem 1rem !important;
  }
  
  /* Estatísticas em coluna */
  .flex.justify-center.space-x-8 {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

/* TABLET: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

/* Container padding em mobile */
@media (max-width: 640px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ===== END MOBILE RESPONSIVE ===== */

/* Carrinho Flutuante */
.cart-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001;
}

/* Animação de shake no carrinho */
@keyframes cart-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.cart-shake {
  animation: cart-shake 0.5s ease;
}

/* Pulse animation para botões de adicionar */
@keyframes add-to-cart-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.add-to-cart-pulse {
  animation: add-to-cart-pulse 0.3s ease;
}

/* Glass effect para combos */
.glass-effect {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Tooltips */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* FadeInScale Animation */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fadeInScale {
  animation: fadeInScale 0.3s ease-out;
}

/* Slide In Right Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

/* Combo Card Discount Badge */
.combo-card .combo-discount {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(15deg);
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

/* Overclocking Menu */
.overclock-menu {
  cursor: pointer;
  transition: all 0.3s ease;
}

.overclock-menu:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.overclock-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.overclock-content.open {
  max-height: 5000px;
}