/* ==================================================
  Produkt-Grid & Cards
================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch; /* alle Karten gleich hoch */
}

/* Abstand & Styling für den Etsy-Link unten */
.product-grid + .center {
  margin-top: 3rem;          /* mehr Abstand nach dem Grid */
}

.product-grid + .center .btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  position: relative;
}

/* ------------------------------
   Produktkarte
------------------------------- */
.card {
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 320px; /* einheitliche Höhe */
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
  border-width: 2px; /* nur beim Hover dicker */
}

/* Bild in der Card */
.card img {
  width: 100%;
  height: 180px;       /* Bildhöhe */
  object-fit: contain;  /* Bild bleibt komplett sichtbar */
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Hover-Scaling */
.card:hover img {
  transform: scale(1.05);
}

/* Titel */
.card h3 {
  margin: 1rem 0 0.5rem;
  color: var(--gold-dark);
  font-size: 1.2rem;
  flex-grow: 1; /* sorgt dafür, dass Karten gleiche Höhe bekommen */
}

/* Beschreibung */
.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

/* ------------------------------
   Responsive Produkt-Grid
------------------------------- */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}
