/* Kartenbude Layout 5er Grid V5
   Ergänzt die Lesbarkeits-Version V4.
   Ziel: Auf Startseite und auf "Alle Produkte" nur 5 Artikel pro Reihe auf Desktop.
*/

/* ===== Startseite: Produktreihe auf 5 Karten begrenzen ===== */
@media (min-width: 1200px) {
  .kb-preview-home .premium-product-grid,
  .kb-preview-home .product-grid,
  .kb-preview-home .featured-products-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .kb-preview-home .premium-product-grid .product-card,
  .kb-preview-home .product-grid .product-card,
  .kb-preview-home .featured-products-grid .product-card {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ===== Alle Produkte / Produktlisten: 5 Karten pro Reihe ===== */
@media (min-width: 1200px) {
  .shop-grid,
  .all-products-grid,
  .products-grid,
  .premium-shop-grid,
  .catalog-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .shop-grid .product-card,
  .all-products-grid .product-card,
  .products-grid .product-card,
  .premium-shop-grid .product-card,
  .catalog-grid .product-card {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ===== Etwas mehr Luft, damit es weniger überfüllt wirkt ===== */
@media (min-width: 1200px) {
  .shop-grid .product-card,
  .all-products-grid .product-card,
  .products-grid .product-card,
  .premium-shop-grid .product-card,
  .catalog-grid .product-card,
  .kb-preview-home .premium-product-grid .product-card,
  .kb-preview-home .product-grid .product-card,
  .kb-preview-home .featured-products-grid .product-card {
    padding-bottom: 12px !important;
  }
}

/* ===== Tablet fallback ===== */
@media (min-width: 900px) and (max-width: 1199px) {
  .kb-preview-home .premium-product-grid,
  .kb-preview-home .product-grid,
  .kb-preview-home .featured-products-grid,
  .shop-grid,
  .all-products-grid,
  .products-grid,
  .premium-shop-grid,
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
