/* Contenedor de productos - Sistema de grid responsivo */
.productos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  max-width: 1400px;
  margin: 0 auto;
}

/* Estilos base de la tarjeta */
.producto-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.producto-card-content {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

/* Contenedor de imagen con ratio aspecto fijo */
.producto-image {
  position: relative;
  padding-top: 75%; /* Ratio aspecto 4:3 */
  overflow: hidden;
  background-color: #ffffff;
}

.producto-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

/* Tipografía responsiva */
.producto-card h3 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #333;
  margin: 12px 0;
  font-family: 'Noto Sans Japanese', sans-serif;
  font-weight: 600;
  line-height: 1.4;
}

.producto-card p {
  color: #666;
  margin: 8px 0;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.6;
  font-family: 'Noto Sans Japanese', sans-serif;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: #003087;
  color: #ffffff;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  border-radius: 6px;
  margin-top: 12px;
  font-family: 'Noto Sans Japanese', sans-serif;
  font-weight: 500;
}

/* Modal responsivo */
.producto-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 15px;
}

.popup-content {
  background-color: #fff;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f0f0f0;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2em;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.close-popup:hover {
  background-color: #e0e0e0;
}

/* Media Queries para diferentes dispositivos */
@media screen and (max-width: 768px) {
  .productos-container {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 10px;
  }
  
  .producto-card-content {
    padding: 15px;
  }
}

@media screen and (max-width: 480px) {
  .productos-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    padding: 8px;
  }
  
  .producto-card-content {
    padding: 12px;
  }
  
  .producto-image {
    padding-top: 100%; /* Ratio aspecto 1:1 para móviles */
  }
}


/* Agregar al final de product-card.css */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-size: 1.1em;
  color: #666;
}