/**
 * Produktkarten-Grid — gleiches Erscheinungsbild wie Startseite #shop
 * Gilt für: index.php (#shop.shop-home) und shop.php (.shop-ui-page)
 */
#shop.shop-home,
.shop-ui-page {
  --shop-card-radius: 10px;
  --shop-surface: #f4f6f9;
  --shop-surface-border: rgba(15, 23, 42, 0.08);
  --shop-card-border: #e8eaef;
  --shop-price: #0f172a;
  --shop-price-accent: #1d4ed8;
  --shop-cta: #153a5c;
  --shop-cta-hover: #0f2840;
}

#shop.shop-home .shop-catalog,
.shop-ui-page .shop-catalog,
.shop-ui-page .shop-ui-catalog {
  background: linear-gradient(180deg, #fafbfd 0%, var(--shop-surface) 100%);
  border: 1px solid var(--shop-surface-border);
  border-radius: 14px;
  padding: .95rem .75rem 1.1rem;
  margin-bottom: .5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

@media (min-width: 768px) {
  #shop.shop-home .shop-catalog,
  .shop-ui-page .shop-catalog,
  .shop-ui-page .shop-ui-catalog {
    padding: 1rem .85rem 1.15rem;
  }
}

#shop.shop-home .shop-product-grid,
.shop-ui-page .shop-product-grid {
  --bs-gutter-x: .65rem;
  --bs-gutter-y: .65rem;
}

@media (min-width: 768px) {
  #shop.shop-home .shop-product-grid,
  .shop-ui-page .shop-product-grid {
    --bs-gutter-x: .85rem;
    --bs-gutter-y: .85rem;
  }
}

#shop.shop-home .shop-product-card,
.shop-ui-page .shop-product-card {
  text-align: left;
  border-radius: var(--shop-card-radius);
  overflow: hidden;
  border: 1px solid var(--shop-card-border);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  transition: border-color .18s ease, box-shadow .18s ease;
}

#shop.shop-home .shop-product-card:hover,
.shop-ui-page .shop-product-card:hover {
  border-color: rgba(13, 110, 253, .35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08), 0 0 0 1px rgba(13, 110, 253, .06);
  transform: none;
}

#shop.shop-home .shop-product-card:focus-within,
.shop-ui-page .shop-product-card:focus-within {
  outline: 2px solid rgba(13, 110, 253, .35);
  outline-offset: 2px;
}

#shop.shop-home .shop-product-card .card-body,
.shop-ui-page .shop-product-card .card-body {
  padding: .65rem .75rem .7rem;
  gap: .2rem;
}

#shop.shop-home .shop-product-card__media,
.shop-ui-page .shop-product-card__media,
.shop-ui-page .shop-ui-card__media {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
  border-bottom: 1px solid var(--shop-card-border);
}

#shop.shop-home .shop-product-card__media::before,
.shop-ui-page .shop-product-card__media::before,
.shop-ui-page .shop-ui-card__media::before {
  content: '';
  display: block;
  padding-bottom: 62%;
}

#shop.shop-home .shop-product-card__img-wrap,
.shop-ui-page .shop-product-card__img-wrap,
.shop-ui-page .shop-ui-card__img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .6rem;
}

#shop.shop-home .shop-product-card__img,
.shop-ui-page .shop-product-card__img,
.shop-ui-page .shop-ui-card__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .2s ease;
}

@media (min-width: 768px) {
  #shop.shop-home .shop-product-card__img,
  .shop-ui-page .shop-product-card__img,
  .shop-ui-page .shop-ui-card__img {
    mix-blend-mode: normal;
  }
}

#shop.shop-home .shop-product-brand,
.shop-ui-page .shop-product-brand,
.shop-ui-page .shop-ui-brand {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: .1rem;
}

#shop.shop-home .shop-product-title,
.shop-ui-page .shop-product-title,
.shop-ui-page .shop-ui-card-title {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  letter-spacing: -.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
  margin-bottom: 0;
}

#shop.shop-home .shop-product-title a,
.shop-ui-page .shop-product-title a,
.shop-ui-page .shop-ui-card-title a {
  color: inherit;
  transition: color .15s ease;
}

#shop.shop-home .shop-product-title a:hover,
.shop-ui-page .shop-product-title a:hover,
.shop-ui-page .shop-ui-card-title a:hover {
  color: var(--shop-price-accent) !important;
}

#shop.shop-home .shop-product-card__media:hover .shop-product-card__img,
.shop-ui-page .shop-product-card__media:hover .shop-product-card__img,
.shop-ui-page .shop-ui-card__media:hover .shop-ui-card__img {
  transform: scale(1.03);
}

#shop.shop-home .shop-product-desc,
.shop-ui-page .shop-product-desc,
.shop-ui-page .shop-ui-desc {
  font-size: .7rem;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  margin-bottom: 0;
}

#shop.shop-home .shop-product-desc:empty,
.shop-ui-page .shop-product-desc:empty,
.shop-ui-page .shop-ui-desc:empty {
  display: none;
}

#shop.shop-home .shop-product-price-row,
.shop-ui-page .shop-product-price-row,
.shop-ui-page .shop-ui-price-row {
  border-top: 1px solid #eceef2;
  margin-top: .5rem;
  padding-top: .55rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

#shop.shop-home .shop-price-block,
.shop-ui-page .shop-price-block {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

#shop.shop-home .shop-price-label,
.shop-ui-page .shop-price-label,
.shop-ui-page .shop-ui-price-label {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
}

#shop.shop-home .shop-product-price,
.shop-ui-page .shop-product-price,
.shop-ui-page .shop-ui-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--shop-price);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

#shop.shop-home .shop-price-block--cashback .shop-price-label,
.shop-ui-page .shop-price-block--cashback .shop-price-label {
  color: #15803d;
}

#shop.shop-home .shop-product-cashback,
.shop-ui-page .shop-product-cashback,
.shop-ui-page .shop-ui-cashback {
  color: #166534 !important;
  font-size: .95rem;
}

#shop.shop-home .shop-price-block--effective .shop-price-label,
.shop-ui-page .shop-price-block--effective .shop-price-label {
  color: var(--shop-cta);
}

#shop.shop-home .shop-product-effective,
.shop-ui-page .shop-product-effective,
.shop-ui-page .shop-ui-effective {
  color: var(--shop-cta) !important;
  font-size: .95rem;
}

#shop.shop-home .shop-price-row-inner,
.shop-ui-page .shop-price-row-inner,
.shop-ui-page .shop-ui-price-row-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .35rem .5rem;
  flex: 0 0 auto;
  margin-top: .15rem;
  margin-bottom: .35rem;
}

#shop.shop-home .shop-price-row-inner.has-cashback,
.shop-ui-page .shop-price-row-inner.has-cashback,
.shop-ui-page .shop-ui-price-row-inner.has-cashback {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}

#shop.shop-home .shop-price-row-inner.has-cashback .shop-price-block,
.shop-ui-page .shop-price-row-inner.has-cashback .shop-price-block {
  flex: 1 1 calc(33.333% - .35rem);
  min-width: 4.25rem;
}

#shop.shop-home .shop-price-stk-block,
.shop-ui-page .shop-price-stk-block {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  flex: 0 0 auto;
  min-width: 3.15rem;
  max-width: 4.35rem;
  align-items: center;
  text-align: center;
}

#shop.shop-home .shop-price-stk-value,
.shop-ui-page .shop-price-stk-value {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--shop-price);
}

#shop.shop-home .shop-price-stk-value--muted,
.shop-ui-page .shop-price-stk-value--muted {
  font-size: .82rem;
  font-weight: 700;
  color: #94a3b8;
}

#shop.shop-home .shop-price-stk-hint,
.shop-ui-page .shop-price-stk-hint {
  font-size: .58rem;
  font-weight: 600;
  line-height: 1.25;
  color: #64748b;
  max-width: 5.5rem;
}

#shop.shop-home .shop-price-stk-block--above-prices,
.shop-ui-page .shop-price-stk-block--above-prices {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: .2rem .45rem;
  text-align: left;
  min-width: 0;
  max-width: none;
  width: 100%;
  margin-bottom: .05rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #eceef2;
}

#shop.shop-home .shop-price-stk-block--above-prices .shop-price-stk-hint,
.shop-ui-page .shop-price-stk-block--above-prices .shop-price-stk-hint {
  max-width: none;
}

#shop.shop-home .shop-product-grid.is-loading,
.shop-ui-page .shop-product-grid.is-loading,
.shop-ui-page .shop-ui-grid.is-loading {
  opacity: .55;
  pointer-events: none;
  transition: opacity .15s ease;
}

@media (max-width: 380px) {
  #shop.shop-home .shop-price-row-inner.has-cashback .shop-price-block,
  .shop-ui-page .shop-price-row-inner.has-cashback .shop-price-block {
    flex: 1 1 100%;
  }

  #shop.shop-home .shop-price-row-inner.has-cashback .shop-price-block.text-md-end,
  .shop-ui-page .shop-price-row-inner.has-cashback .shop-price-block.text-md-end {
    text-align: left !important;
  }
}

#shop.shop-home .shop-product-card .btn,
.shop-ui-page .shop-product-card .btn {
  font-size: .72rem;
  padding: .38rem .65rem;
  font-weight: 600;
  border-radius: 6px !important;
  letter-spacing: .01em;
}

#shop.shop-home .shop-product-card .btn-primary,
.shop-ui-page .shop-product-card .btn-primary,
.shop-ui-page .shop-product-card .shop-ui-btn-primary {
  background: var(--shop-cta);
  border-color: var(--shop-cta);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(13, 110, 253, .2);
}

#shop.shop-home .shop-product-card .btn-primary:hover,
.shop-ui-page .shop-product-card .btn-primary:hover,
.shop-ui-page .shop-product-card .shop-ui-btn-primary:hover {
  background: var(--shop-cta-hover);
  border-color: var(--shop-cta-hover);
  color: #fff;
}

#shop.shop-home .shop-product-card .btn-outline-secondary,
.shop-ui-page .shop-product-card .btn-outline-secondary,
.shop-ui-page .shop-product-card .shop-ui-btn-secondary {
  border-color: #d1d5db;
  color: #374151;
  background: #fff;
}

#shop.shop-home .shop-product-card .btn-outline-secondary:hover,
.shop-ui-page .shop-product-card .btn-outline-secondary:hover,
.shop-ui-page .shop-product-card .shop-ui-btn-secondary:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  color: #111827;
}

[data-bs-theme="dark"] #shop.shop-home,
[data-bs-theme="dark"] .shop-ui-page {
  --shop-surface: #1e293b;
  --shop-surface-border: rgba(148, 163, 184, .18);
  --shop-card-border: rgba(148, 163, 184, .22);
  --shop-price: #f9fafb;
  --shop-cta: #3b82f6;
  --shop-cta-hover: #2563eb;
}

[data-bs-theme="dark"] #shop .shop-catalog,
[data-bs-theme="dark"] .shop-ui-page .shop-catalog,
[data-bs-theme="dark"] .shop-ui-page .shop-ui-catalog {
  background: var(--shop-surface);
  border-color: var(--shop-surface-border);
}

[data-bs-theme="dark"] #shop .shop-product-card,
[data-bs-theme="dark"] .shop-ui-page .shop-product-card {
  background: #0f172a;
  border-color: var(--shop-card-border);
  box-shadow: none;
}

[data-bs-theme="dark"] #shop .shop-product-card__media,
[data-bs-theme="dark"] .shop-ui-page .shop-product-card__media,
[data-bs-theme="dark"] .shop-ui-page .shop-ui-card__media {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom-color: rgba(148, 163, 184, .12);
}

[data-bs-theme="dark"] #shop .shop-product-card__img,
[data-bs-theme="dark"] .shop-ui-page .shop-product-card__img,
[data-bs-theme="dark"] .shop-ui-page .shop-ui-card__img {
  mix-blend-mode: normal;
}

[data-bs-theme="dark"] #shop .shop-product-title,
[data-bs-theme="dark"] #shop .shop-product-title a,
[data-bs-theme="dark"] .shop-ui-page .shop-product-title,
[data-bs-theme="dark"] .shop-ui-page .shop-product-title a,
[data-bs-theme="dark"] .shop-ui-page .shop-ui-card-title a {
  color: #f1f5f9;
}

[data-bs-theme="dark"] #shop .shop-product-desc,
[data-bs-theme="dark"] .shop-ui-page .shop-product-desc,
[data-bs-theme="dark"] .shop-ui-page .shop-ui-desc {
  color: #94a3b8;
}

[data-bs-theme="dark"] #shop .shop-product-price-row,
[data-bs-theme="dark"] .shop-ui-page .shop-product-price-row,
[data-bs-theme="dark"] .shop-ui-page .shop-ui-price-row {
  border-top-color: rgba(148, 163, 184, .15);
}

[data-bs-theme="dark"] #shop .shop-price-block--cashback .shop-price-label,
[data-bs-theme="dark"] .shop-ui-page .shop-price-block--cashback .shop-price-label {
  color: #4ade80;
}

[data-bs-theme="dark"] #shop .shop-product-cashback,
[data-bs-theme="dark"] .shop-ui-page .shop-product-cashback,
[data-bs-theme="dark"] .shop-ui-page .shop-ui-cashback {
  color: #86efac !important;
}

[data-bs-theme="dark"] #shop .shop-price-block--effective .shop-price-label,
[data-bs-theme="dark"] .shop-ui-page .shop-price-block--effective .shop-price-label {
  color: #93c5fd;
}

[data-bs-theme="dark"] #shop .shop-product-effective,
[data-bs-theme="dark"] .shop-ui-page .shop-product-effective,
[data-bs-theme="dark"] .shop-ui-page .shop-ui-effective {
  color: #93c5fd !important;
}

[data-bs-theme="dark"] #shop .shop-product-card .btn-outline-secondary,
[data-bs-theme="dark"] .shop-ui-page .shop-product-card .btn-outline-secondary,
[data-bs-theme="dark"] .shop-ui-page .shop-product-card .shop-ui-btn-secondary {
  background: #1e293b;
  border-color: rgba(148, 163, 184, .25);
  color: #e2e8f0;
}
