/* Estilos para la página de índice de vapeadores */

/* ================================
   LAYOUT BASE
   ================================ */

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .wrapper {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .wrapper {
    padding: 0 3rem;
  }
}

.vapes-index-page {
  background-color: #000;
  color: #fff;
  min-height: 100vh;
}

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

.vapes-header {
  position: relative;
  min-height: 100vh;
  background-size: 110%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  display: flex;
  align-items: end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Parallax solo en desktop - sin transición para evitar lag */
@media (min-width: 769px) {
  .vapes-header {
    will-change: background-position;
  }
}

/* En mobile, background fijo */
@media (max-width: 768px) {
  .vapes-header {
    background-size: cover;
    background-position: center !important;
  }
}

.vapes-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.vapes-header .wrapper {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.header-text {
  width: 100%;
}

.header-text .title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1;
  color: #fff;
  text-align: center;
}

.header-text .subtitle {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.95;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  margin-bottom: 2rem;
}

/* ================================
   NOTA DE RESPONSABILIDAD
   ================================ */

.note {
  padding: 2rem 0;
  background-color: #000;
  color: #fff;
}

.note p {
  margin: 0;
  line-height: 1.6;
  font-size: 1.125rem;
  font-style: italic;
}

/* ================================
   FILTROS
   ================================ */

.vapes-filters {
  background-color: #000;
  padding: 2rem 0;
}

.filter-options {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-group label {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.filter-select {
  padding: 0.75rem 1rem;
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 180px;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

/* ================================
   GRID DE PRODUCTOS
   ================================ */

.vapes-grid {
  padding: 3rem 0;
  background-color: #000;
}

.vapes-grid .wrapper {
  padding: 2rem;
  background-color: #ff6b6b;
  border-radius: 8px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   TARJETAS DE PRODUCTO
   ================================ */

.product-card {
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Nombre del producto */
.product-card > .product-link {
  padding: 1rem;
  background-color: #fff;
  border-bottom: 2px solid #f0f0f0;
  text-align: center;
}

.product-card > .product-link .product-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #333;
  line-height: 1.3;
}

/* Imagen del producto */
.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #efefef;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
}

.product-link {
  text-decoration: none;
  color: inherit;
}

/* Información del producto */
.product-info {
  padding: 1rem 1.5rem 1.5rem;
  color: #333;
  flex-grow: 1;
  background-color: #fff;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #666;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

/* ================================
   MENSAJES
   ================================ */

.no-products,
.no-results-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #333;
  background-color: #fff;
  border-radius: 8px;
}

/* ================================
   PAGINACIÓN
   ================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-link {
  padding: 0.75rem 1.5rem;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.pagination-link:hover {
  background-color: #000;
}

.pagination-info {
  color: #fff;
  font-weight: 500;
}

/* ================================
   DISCLAIMER
   ================================ */

.disclaimer {
  padding: 3rem 0;
  background-color: #000;
  color: #fff;
}

.disclaimer p {
  margin: 0;
  line-height: 1.6;
  font-size: 1.125rem;
}

/* ================================
   ANIMACIONES
   ================================ */

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .header-text .title {
    font-size: 2.5rem;
  }

  .header-text .subtitle {
    font-size: 1.5rem;
  }

  .note p,
  .disclaimer p {
    font-size: 1rem;
  }

  .filter-options {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .filter-group label {
    text-align: left;
  }

  .filter-select {
    width: 100%;
    min-width: auto;
  }

  .vapes-grid .wrapper {
    padding: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

  .product-image {
    height: 150px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .header-text .title {
    font-size: 2rem;
  }

  .header-text .subtitle {
    font-size: 1.25rem;
  }

  .vapes-grid .wrapper {
    padding: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .pagination {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pagination-link {
    width: 100%;
    text-align: center;
  }
}
