/* =========================================
   LAYOUT GENERAL DE LA PÁGINA DE PRODUCTOS
   (solo afecta productos.php)
========================================= */
body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #111827;
}

/* Contenedor de título + filtro tipo Shopify */
.productos-filtros {
  padding: 32px 16px 8px;
}

.contenedor-filtros {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contenedor-filtros h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Bloque de filtro tipo Shopify (arriba a la derecha) */
.filtro-shopify select {
  min-width: 210px;
  padding: 10px 32px 10px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 14px;
  color: #111827;
  outline: none;
  appearance: none;
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L10 12L14 8' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.filtro-shopify select:hover {
  border-color: #9ca3af;
}

.filtro-shopify select:focus {
  border-color: #111827;
  box-shadow: 0 0 0 1px #11182710;
}

/* Responsivo filtros */
@media (max-width: 768px) {
  .contenedor-filtros {
    flex-direction: column;
    align-items: flex-start;
  }

  .filtro-shopify {
    width: 100%;
  }

  .filtro-shopify select {
    width: 100%;
  }
}

/* =========================================
   GRID DE PRODUCTOS (mismo concepto que index)
========================================= */

.productos {
  padding: 16px;
}

.productos-grid {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* Tarjeta principal */
.producto-card {
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.producto-card:hover {
  transform: translateY(-4px);
  border-color: #d1d5db;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

/* Imagen del producto */
.producto-card-img {
  position: relative;
  overflow: hidden;
  background-color: #f9fafb;
}

.producto-card-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.producto-card:hover .producto-card-img img {
  transform: scale(1.03);
}

/* Info de texto */
.producto-info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.producto-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

/* =========================================
   ESTRELLAS Y CALIFICACIONES
========================================= */

.estrellas-php {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.estrellas-php span {
  font-size: 13px;
  color: #6b7280;
}

/* Base de estrellas (vas a usar los mismos spans que en index) */
.star {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Puedes adaptar estos SVG a los que ya uses en principal.css.
   Si ya tienes las clases .star.full/.half/.empty definidas,
   puedes borrar este bloque para no duplicar. */

.star.full {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='%23fbbf24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2.5L12.4721 7.50481L18 8.2918L13.9 11.9952L14.9443 17.5L10 14.875L5.05573 17.5L6.1 11.9952L2 8.2918L7.52786 7.50481L10 2.5Z'/%3E%3C/svg%3E");
}

.star.half {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='half'%3E%3Cstop offset='50%25' stop-color='%23fbbf24'/%3E%3Cstop offset='50%25' stop-color='%23e5e7eb'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 2.5L12.4721 7.50481L18 8.2918L13.9 11.9952L14.9443 17.5L10 14.875L5.05573 17.5L6.1 11.9952L2 8.2918L7.52786 7.50481L10 2.5Z' fill='url(%23half)'/%3E%3C/svg%3E");
}

.star.empty {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2.5L12.4721 7.50481L18 8.2918L13.9 11.9952L14.9443 17.5L10 14.875L5.05573 17.5L6.1 11.9952L2 8.2918L7.52786 7.50481L10 2.5Z' stroke='%23d1d5db' fill='white'/%3E%3C/svg%3E");
}

/* =========================================
   PRECIO + BOTÓN AGREGAR AL CARRITO
========================================= */

.precio {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-top: 4px;
}

/* Botón tipo Shopify */
.btn-agregar-carrito {
  margin-top: 8px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background-color: #111827;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn-agregar-carrito:hover {
  background-color: #000000;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.btn-agregar-carrito:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Mensaje "No se encontraron productos" */
.productos-grid > p {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}
