/* Shop overview only: preserve catalogue typography and responsive columns. */
.cf-shop-grid > .product-card {
 display:flex;
 flex-direction:column;
 min-width:0;
 position:relative;
}
.cf-shop-grid > .product-card > .product-image-link { flex-shrink:0; }
.cf-shop-grid > .product-card > .product-card-body {
 display:grid;
 grid-template-rows:repeat(4,auto);
 align-content:start;
 flex:1;
 min-width:0;
 padding-bottom:0;
}
.cf-shop-grid .product-card-body > h3 {
 grid-row:1;
 min-width:0;
 min-height:0;
 min-block-size:0;
 overflow-wrap:anywhere;
}
.cf-shop-grid .product-card-body > .price { grid-row:2; }
.cf-shop-grid .product-card-body > .cf-vat-note { grid-row:3; }
.cf-shop-grid .product-card-body > .product-format { grid-row:4; }
.cf-shop-grid .product-card-body > :is(.price,.cf-vat-note,.product-format) {
 min-width:0;
 align-self:start;
 overflow-wrap:anywhere;
}
.cf-shop-grid > .product-card > .cf-shop-card-actions {
 display:grid;
 grid-template-rows:minmax(44px,auto) minmax(19px,auto);
 gap:8px;
 flex-shrink:0;
 margin:12px 14px 14px;
 font-size:12px;
}
.cf-shop-grid .cf-shop-card-actions > :first-child { grid-row:1; margin:0; }
.cf-shop-grid .cf-shop-card-actions .button {
 width:100%;
 height:100%;
 min-height:44px;
 padding:8px;
 font-size:12px;
 line-height:1.4;
 white-space:normal;
 text-align:center;
}
.cf-shop-grid .cf-shop-card-actions .button .icon { flex-shrink:0; }
.cf-shop-grid .cf-shop-card-actions .button:disabled { opacity:.65; cursor:default; }
.cf-shop-grid .cf-shop-card-actions > .cf-card-details {
 grid-row:2;
 align-self:start;
 justify-self:start;
 max-width:100%;
 margin:0;
 white-space:normal;
 text-align:left;
}

/* Each visual row shares its content tracks, including unusually long names.
   Optional VAT cells retain their track; no text is truncated or hidden. */
@supports (grid-template-rows:subgrid) {
 /* Keep the catalogue's spacing between whole cards, not between every
    content track. Natural text heights determine each shared row. */
 .cf-shop-grid { row-gap:0; }
 .cf-shop-grid > .product-card {
  display:grid;
  grid-row:span 7;
  grid-template-rows:subgrid;
  row-gap:0;
  margin-bottom:25px;
 }
 .cf-shop-grid > .product-card > .product-image-link { grid-row:1; align-self:start; }
 .cf-shop-grid > .product-card > .product-card-body {
  grid-row:2 / span 4;
  grid-template-rows:subgrid;
  row-gap:0;
 }
 .cf-shop-grid > .product-card > .cf-shop-card-actions {
  grid-row:6 / span 2;
  grid-template-rows:subgrid;
  row-gap:8px;
 }
}
@media (max-width:1100px) {
 @supports (grid-template-rows:subgrid) {
  .cf-shop-grid > .product-card { margin-bottom:18px; }
 }
}
@media (max-width:600px) {
 @supports (grid-template-rows:subgrid) {
  .cf-shop-grid > .product-card { margin-bottom:14px; }
 }
 .cf-shop-grid > .product-card > .cf-shop-card-actions { margin-inline:10px; }
 .cf-shop-grid .cf-shop-card-actions .button { font-size:11px; }
}
