/* Dedicated taxonomy/archive product card renderer styles.
   Scope: product archive + produktkategorie card grid only.
   This layer intentionally isolates the sensitive category/archive card layout. */

.taxonomy-products-anchor .container{
  display:grid;
  gap:1.4rem;
}

.taxonomy-product-grid,
.taxonomy-products-anchor .taxonomy-product-grid,
.tax-produktkategorie .taxonomy-product-grid,
.post-type-archive-produkt .taxonomy-product-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.75rem;
  align-items:stretch;
}

.taxonomy-product-card,
.taxonomy-products-anchor .taxonomy-product-card,
.tax-produktkategorie .taxonomy-product-card,
.post-type-archive-produkt .taxonomy-product-card{
  display:block;
  min-width:0;
  height:100%;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(30,46,62,.08);
  border-radius:24px;
  box-shadow:0 12px 28px rgba(16,29,43,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.taxonomy-product-card:hover,
.taxonomy-product-card:focus-within{
  transform:translateY(-2px);
  box-shadow:0 18px 38px rgba(15,27,40,.1);
  border-color:#d8e0e8;
}

.taxonomy-product-card-link,
.taxonomy-products-anchor .taxonomy-product-card-link,
.tax-produktkategorie .taxonomy-product-card-link,
.post-type-archive-produkt .taxonomy-product-card-link{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-height:100%;
  color:inherit;
  text-decoration:none;
}

.taxonomy-product-card-link:hover,
.taxonomy-product-card-link:focus,
.taxonomy-products-anchor .taxonomy-product-card-link:hover,
.taxonomy-products-anchor .taxonomy-product-card-link:focus,
.tax-produktkategorie .taxonomy-product-card-link:hover,
.tax-produktkategorie .taxonomy-product-card-link:focus,
.post-type-archive-produkt .taxonomy-product-card-link:hover,
.post-type-archive-produkt .taxonomy-product-card-link:focus,
.taxonomy-products-anchor .taxonomy-product-card-link *,
.tax-produktkategorie .taxonomy-product-card-link *,
.post-type-archive-produkt .taxonomy-product-card-link *{
  color:inherit;
  text-decoration:none;
}

.taxonomy-product-thumb,
.taxonomy-products-anchor .taxonomy-product-thumb,
.tax-produktkategorie .taxonomy-product-thumb,
.post-type-archive-produkt .taxonomy-product-thumb{
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:16 / 8.2;
  min-height:0;
  padding:.85rem 1rem .7rem;
  background:#f7f8fa;
  border-bottom:1px solid var(--line);
}

.taxonomy-product-thumb img,
.taxonomy-products-anchor .taxonomy-product-thumb img,
.tax-produktkategorie .taxonomy-product-thumb img,
.post-type-archive-produkt .taxonomy-product-thumb img{
  width:auto;
  height:auto;
  max-width:82%;
  max-height:78%;
  object-fit:contain;
  display:block;
  margin:0 auto;
  padding:0;
}

.taxonomy-product-thumb.is-fallback{
  outline:2px dashed rgba(212,68,12,.28);
  outline-offset:-2px;
}

.taxonomy-product-card-pad,
.taxonomy-products-anchor .taxonomy-product-card-pad,
.tax-produktkategorie .taxonomy-product-card-pad,
.post-type-archive-produkt .taxonomy-product-card-pad{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.68rem;
  flex:1 1 auto;
  min-width:0;
  padding:1.15rem 1.35rem 1.2rem;
}

.taxonomy-product-card h3,
.taxonomy-products-anchor .taxonomy-product-card h3,
.tax-produktkategorie .taxonomy-product-card h3,
.post-type-archive-produkt .taxonomy-product-card h3{
  margin:0;
  font-size:clamp(1.18rem,1.02rem + .4vw,1.45rem);
  line-height:1.08;
  color:var(--steel);
  text-decoration:none;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.taxonomy-product-card p,
.taxonomy-products-anchor .taxonomy-product-card p,
.tax-produktkategorie .taxonomy-product-card p,
.post-type-archive-produkt .taxonomy-product-card p{
  margin:0;
  font-size:.96rem;
  line-height:1.55;
  color:var(--muted);
  text-decoration:none;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.taxonomy-product-card .pill-row,
.taxonomy-products-anchor .taxonomy-product-card .pill-row,
.tax-produktkategorie .taxonomy-product-card .pill-row,
.post-type-archive-produkt .taxonomy-product-card .pill-row{
  gap:.5rem;
  padding-top:.05rem;
}

.taxonomy-product-card .pill{
  min-height:36px;
  padding:0 .75rem;
  font-size:.84rem;
  background:#f4f7fa;
  border-color:#dfe6ee;
  color:#516577;
}

.taxonomy-card-button,
.taxonomy-products-anchor .taxonomy-card-button,
.tax-produktkategorie .taxonomy-card-button,
.post-type-archive-produkt .taxonomy-card-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin-top:auto;
  padding:0 1rem;
  width:max-content;
  border-radius:999px;
  background:var(--accent);
  color:#fff !important;
  font-size:.9rem;
  font-weight:800;
  box-shadow:0 10px 24px rgba(212,68,12,.18);
  text-decoration:none;
}

@media (max-width: 900px){
  .taxonomy-product-grid,
  .taxonomy-products-anchor .taxonomy-product-grid,
  .tax-produktkategorie .taxonomy-product-grid,
  .post-type-archive-produkt .taxonomy-product-grid{
    grid-template-columns:1fr;
  }

  .taxonomy-product-thumb,
  .taxonomy-products-anchor .taxonomy-product-thumb,
  .tax-produktkategorie .taxonomy-product-thumb,
  .post-type-archive-produkt .taxonomy-product-thumb{
    aspect-ratio:16 / 9;
  }
}
