/* Reset e box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: black;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: sans-serif;
}

/* Canvas */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
}

canvas.fade-out { opacity: 0; }
canvas.fade-in { opacity: 1; }

/* Header */
header.glass-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(19, 19, 19, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100;
  color: #d3d3d3;
}

/* Logo */
.logo {
  height: 30px;
}

/* Top Menu */
nav.top-menu {
  display: flex;
  gap: 24px;
  font-size: 1.1rem;
}

nav.top-menu a,
.popup-menu a {
  color: #d3d3d3;
  text-decoration: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

nav.top-menu a:hover {
  color: #ffa600;
}

.popup-menu a:hover {
  text-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

/* Pop-up Menus */
.popup-menu {
  position: fixed;
  top: 74px;
  left: 0;
  width: 15%;
  height: 100vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(10px);
  background: rgba(19, 19, 19, 0.58);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  overflow-y: auto;
  scrollbar-width: none;
}

.popup-menu::-webkit-scrollbar {
  display: none;
}

/* Modais */
.section-content {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.section-content.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 32px;
  border-radius: 16px;
  width: 90%;
  max-width: 1024px;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

/* Produtos */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #f9f9f9;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  object-fit: cover;
}

.product-info h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #111;
  line-height: 1.4;
}

.product-info p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* Botão */
.buy-button {
  padding: 10px 24px;
  font-size: 1rem;
  background: #ff7b00;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.buy-button:hover {
  background: #e65a00;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ff7b00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Menu hover underline */
.menu-item {
  position: relative;
  padding: 10px 15px;
  text-decoration: none;
  color: #fff;
}

.menu-item::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.menu-item:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Aviso produtos */
.avisoprodutos {
  padding-top: 15px;
  font-size: 0.5rem;
  color: #666;
}

/* Responsividade */
@media (max-width: 1024px) {
  header.glass-menu {
    padding: 8px 16px;
    flex-direction: column;
    align-items: center;
  }

  nav.top-menu {
    padding-top: 25px;
    font-size: 1rem;
    gap: 12px;
    overflow-x: auto;
    display: flex;
    
  }

  .popup-menu {
    width: 100%;
    height: 100%;
    margin-top: 15%;
    flex-direction:column;
    flex-wrap: wrap;
    align-items: center;
  }

  .popup-menu a {
    font-size: 1.2rem;
  }

  .product-card {
    flex-direction: column;
    text-align: center;
  }

  .product-image {
    max-width: 90%;
  }

  .modal-content {
    padding: 16px;
    width: 95%;
  }

  .logo {
    height: 50px;
  }

  .product-info h3  {
    font-size: 1.2rem;
  }

  .product-info p {
        font-size: 1rem;

  }
}
