/* Portado de React: Tienda.module.css (clases con prefijo "tienda-") */
.tienda-section {
  background: var(--cream);
  padding: 6rem 6%;
  scroll-margin-top: 90px; /* para que el menú fijo no tape el título */
}

.tienda-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 1rem;
}

.tienda-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  color: var(--green-deep);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tienda-subtitle {
  margin-top: 1rem;
  max-width: 540px;
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.65;
}

.tienda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.tienda-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(82, 183, 136, 0.15);
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.tienda-card:hover {
  border-color: rgba(82, 183, 136, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 58, 42, 0.08);
}

.tienda-imagen {
  aspect-ratio: 1 / 1;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tienda-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

.tienda-sinImagen {
  font-size: 3rem;
}

.tienda-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.tienda-info h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}

.tienda-descripcion {
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tienda-pie {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tienda-precio {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--green-deep);
}

.tienda-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.3rem;
  border-radius: 2rem;
  border: none;
  background: var(--green-mid);
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.tienda-btn:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.tienda-verCarrito {
  margin-top: 2.5rem;
  text-align: center;
}

.tienda-btnSecundario {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  border: 1px solid var(--green-mid);
  background: transparent;
  color: var(--green-mid);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.tienda-btnSecundario:hover {
  background: var(--green-mid);
  color: var(--white);
}

.tienda-mensaje {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--stone);
}

.tienda-skeleton {
  min-height: 380px;
  background: linear-gradient(90deg, var(--green-pale) 25%, #e6f4ec 50%, var(--green-pale) 75%);
  background-size: 200% 100%;
  animation: brillo 1.4s ease-in-out infinite;
}

@keyframes brillo {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (max-width: 600px) {
  .tienda-imagen { aspect-ratio: 4 / 3; }
  .tienda-skeleton { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .tienda-skeleton { animation: none; }
}
