/* ==========================================================================
   Shop – eingebunden auf shop.html, shop-erfolg.html und index.html
   (dort für den Shop-Teaser, der dieselben Produktkarten verwendet).
   Warenkorb-Icon/Badge/Drawer sind seitenübergreifend und liegen daher in
   css/style.css, nicht hier.
   ========================================================================== */

.product-grid {
  list-style: none;
}

.product-grid > li {
  height: 100%;
}

.card--product {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

/* max-width: none hebt das globale img { max-width: 100% } aus style.css
   auf - sonst bleibt das Foto auf die Innenbreite der Karte begrenzt und
   rechts entsteht ein weißer Streifen. */
.product-photo {
  width: calc(100% + 3.4rem);
  max-width: none;
  margin: -2.2rem -1.7rem 1.2rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-photo--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
  font-size: 2.2rem;
}

.product-photo-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.card--product p {
  flex-grow: 1;
}

/* Variante steht direkt unter dem Namen und soll nicht mitwachsen -
   den freien Platz füllt die Zutatenliste darunter. */
.product-variant {
  flex-grow: 0;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.product-ingredients {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.product-variant strong,
.product-ingredients strong {
  color: var(--color-brown-dark);
}

.product-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-brown-dark);
  margin-bottom: 1.1rem;
}

.product-price small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--color-text-light);
  text-transform: none;
  letter-spacing: 0;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Teaser-Karte auf der Startseite: gleiche Produktkarte, aber komplett
   verlinkt statt mit Mengen-Stepper und Warenkorb-Button. */
.card--teaser {
  color: inherit;
  text-decoration: none;
}

.card--teaser .teaser-link {
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
}

.card--teaser .teaser-link::after {
  content: ' →';
}

.card--teaser:hover .teaser-link {
  color: var(--color-brown);
}

.shop-success {
  max-width: 640px;
  text-align: center;
}

.shop-success .notice-box {
  text-align: left;
}

.shop-success .btn {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-card-footer .btn {
    width: 100%;
    text-align: center;
  }
}
