/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #111111;
  color: #ffffff;
}

/* CONTENEDOR */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}


.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* CATEGORÍAS */
.categories {
  padding: 10px 0;
  background-color: #141414;
}

.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 5%;
}

.category {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
}

.category.active {
  background-color: #7CFC00;
  color: #000;
}


/* PRODUCTOS */
.products {
  padding: 20px 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas en desktop */
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* DESKTOP */
@media (min-width: 1300px) {
  .products {
    grid-template-columns: repeat(5, 1fr);
  }
}
/* TABLET */
@media (max-width: 1024px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* TABLET PEQUEÑA */
@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MÓVIL */
@media (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */
.footer {
  background-color: #1a1a1a;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 40px;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.product-card {
  background-color: #1c1c1c;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(124, 252, 0, 0.3);
}

.product-img {
  width: 100%;
  border-radius: 8px;
}

.product-name {
  font-size: 0.9rem;
}

.product-price {
  font-weight: bold;
  color: #7CFC00;
}

.whatsapp-btn {
  background-color: #7CFC00;
  color: #000;
  text-align: center;
  padding: 8px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  background-color: #5ed400;
}





.variant-select {
  width: 100%;
  padding: 10px;
  margin: 12px 0;
  border-radius: 6px;

  background-color: #222;
  color: #fff;
  border: 1px solid #39ff14;

  font-size: 14px;
  outline: none;
  transition: 0.3s ease;
}

.variant-select:focus {
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.badge {
  display: inline-block;
  background: #39ff14;
  color: #000;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.sort-container {
  margin: 15px 0;
}

#sortSelect {
  background: #222;
  color: #fff;
  border: 1px solid #39ff14;
}

.products.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.products.fade-in {
  opacity: 1;
  transform: translateY(0);
}



.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 60px;
}

.logo-text {
  font-weight: bold;
  color: #fff;
  font-size: 18px;
}

.promo-banner {
  background: #39ff14;
  color: #000;
  text-align: center;
  font-weight: bold;
  padding: 8px;
  font-size: 14px;
}


   
/* ===== HEADER ===== */

.header {
  background-color: #1a1a1a;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
   padding: 8px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0; /* MÁS COMPACTO */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 70px; /* reducido */
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 45px;
  }
}

.logo-text {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
}

/* ===== PROMO BANNER ===== */

.promo-banner {
  background: #39ff14;
  color: #000;
  text-align: center;
  font-weight: bold;
  padding: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeSlideDown 0.8s ease forwards;
  animation-delay: 0.3s;
}

/* ===== ANIMACIÓN ===== */

@keyframes fadeSlideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* PRODUCT DETAIL */
.product-detail {
  padding: 20px 0;
}

.product-detail-card {
  background: #1c1c1c;
  border-radius: 12px;
  padding: 20px;

  max-width: 900px;     /* un poco más ancho si pondrás imagen y texto lado a lado */
  margin: 30px auto;

  display: flex;
  flex-direction: column;   /* luego lo cambiaremos en desktop */
  gap: 20px;
}
/* Desktop */
@media (min-width: 768px) {
  .product-detail-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .product-detail-img {
    width: 50%;
    max-width: 400px;
  }

  .product-detail-info {
    width: 50%;
  }
}

.product-detail-img {
  width: 100%;
  border-radius: 10px;
}

.product-detail-name {
  font-size: 1.2rem;
  font-weight: bold;
}

.product-detail-price {
  font-size: 1.1rem;
  color: #39ff14;
  font-weight: bold;
}

.product-detail-description {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
}

.back-btn {
  display: inline-block;
  margin-bottom: 15px;
  color: #39ff14;
  text-decoration: none;
  font-size: 0.9rem;
}

.details-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 14px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;

  background: transparent;
  color: #7CFF00;
  border: 1px solid #7CFF00;

  transition: all 0.3s ease;
}

.details-btn:hover {
  background: #7CFF00;
  color: #000;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-detail-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 10px;
}
.product-detail-layout {
  display: flex;
  gap: 30px;
  align-items: center;
}

.product-detail-info {
  flex: 1;
}

.product-detail-info a,
.product-detail-info button {
  width: 100%; /* que cada botón siempre ocupe toda la pantalla en móvil */
}.product-detail-info a,
.product-detail-info button {
  width: 100%; /* que cada botón siempre ocupe toda la pantalla en móvil */
}

@media (max-width: 768px) {
  .product-detail-layout {
    flex-direction: column;
  }
}




.share-btn {
  margin-top: 10px;
  background: transparent;
  border: 1px solid #39ff14;
  color: #39ff14;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  display: block;
}

.share-btn:hover {
  background: #39ff14;
  color: #000;
}

/* 🟢 Más espacio entre descripción y botones en mobile */
@media (max-width: 768px) {
  .product-detail-description {
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .product-detail-info a,
  .product-detail-info button {
    margin-top: 8px;
  }
}

/* CONTENEDOR BOTONES PRODUCTO */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px; /* separación real entre botones */
}

/* BOTONES MISMO TAMAÑO */
.product-detail-info .whatsapp-btn,
.product-detail-info .share-btn {
  width: 100%;
  text-align: center;
}