/* Shared catalogue cards. Loaded after storefront.css and seo.css.
   Shared selectors cover SSR, discovery collections and reconciled live cards.
   No image source, lazy-loading, hidden-card or application contract changes. */
.all-product-card{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  min-width:0;
  padding:18px;
  border:1px solid #dce4f2;
  border-radius:20px;
  background:#fff;
  box-shadow:0 3px 12px #1230a106;
}
.all-product-card .all-product-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:6px;
  min-width:0;
  margin:0;
  color:#53627c;
  font-size:11px;
  line-height:1.65;
}
.all-product-card .all-product-meta>span{
  max-width:100%;
  padding:4px 7px;
  border-radius:7px;
  background:#f2f5fc;
  overflow-wrap:anywhere;
}
.all-product-card>.all-product-image,
.all-product-card>.all-product-placeholder{
  display:block;
  flex:none;
  width:100%;
  height:180px;
  min-height:180px;
  max-height:180px;
  margin:0;
  padding:10px;
  border:1px solid #edf1f7;
  border-radius:14px;
  background:#fff;
  object-fit:contain;
}
.all-product-card>.all-product-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:#f7f9fd;
  color:#5b6b88;
  text-align:center;
  font-size:12px;
  line-height:1.7;
  overflow-wrap:anywhere;
}
.all-product-card>.all-product-placeholder svg{
  flex:none;
  width:54px;
  height:54px;
  color:var(--forest,#1230a1);
}
.all-product-card>h3{
  min-width:0;
  min-height:58px;
  margin:0;
  color:var(--ink,#172340);
  font-size:18px;
  font-weight:700;
  line-height:1.65;
  overflow-wrap:anywhere;
}
.all-product-card .all-product-title{
  display:inline;
  color:inherit;
  text-decoration:none;
  text-underline-offset:4px;
}
.all-product-card .all-product-title:hover,
.all-product-card .all-product-title:focus-visible{
  color:var(--forest,#1230a1);
  text-decoration:underline;
}
.all-product-card>.all-product-subtitle{
  min-width:0;
  margin:0;
  color:#586780;
  font-size:13px;
  line-height:1.8;
  unicode-bidi:plaintext;
  overflow-wrap:anywhere;
}
.all-product-card>.equipment-badge{
  align-self:flex-start;
  max-width:100%;
  margin:0;
  padding:5px 9px;
  border:1px solid #dce4f2;
  border-radius:8px;
  background:#f2f5fc;
  color:#304a81;
  font-size:12px;
  line-height:1.7;
  white-space:normal;
  overflow-wrap:anywhere;
}
.all-product-card>.equipment-image-note{
  min-width:0;
  margin:0;
  padding:8px 10px;
  border-radius:8px;
  background:#fff8e8;
  color:#73551b;
  font-size:12px;
  line-height:1.8;
  overflow-wrap:anywhere;
}
.all-product-card>.card-order-status{
  min-width:0;
  margin:0;
  padding:10px;
  border:1px solid #ccd9fc;
  border-radius:12px;
  background:#f0f5ff;
  color:var(--forest,#1230a1);
  font-size:12px;
  line-height:1.8;
}
.all-product-card>.all-product-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(76px,.42fr);
  align-items:stretch;
  gap:8px;
  width:100%;
  min-width:0;
  margin-top:auto;
  padding-top:4px;
}
.all-product-card>.all-product-actions>.button{
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:46px;
  height:auto;
  padding:9px 8px;
  border-radius:10px;
  font-size:13px;
  line-height:1.65;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
}
.all-product-card>.all-product-actions>.button-text{
  border:1px solid #dce4f2;
  background:#fff;
  color:var(--forest,#1230a1);
  text-decoration:none;
}
.all-product-card>.all-product-actions>.button:focus-visible{
  outline:3px solid #617ee6;
  outline-offset:3px;
}
@media(hover:hover){
  .all-product-card:hover{border-color:#bdcdee;box-shadow:0 5px 18px #1230a10a}
}
@media(max-width:600px){
  .all-product-card{
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    align-items:start;
    gap:10px 12px;
    padding:14px;
    border-radius:17px;
  }
  .all-product-card>.all-product-meta{grid-column:1/-1;font-size:10px}
  .all-product-card>.all-product-image,
  .all-product-card>.all-product-placeholder{
    grid-column:1;
    grid-row:2/span 3;
    align-self:start;
    width:96px;
    height:108px;
    min-height:108px;
    max-height:108px;
    padding:6px;
    border-radius:11px;
  }
  .all-product-card>.all-product-placeholder{gap:6px;font-size:10px;line-height:1.6}
  .all-product-card>.all-product-placeholder svg{width:37px;height:37px}
  .all-product-card>h3{
    grid-column:2;
    min-height:0;
    font-size:16px;
    line-height:1.7;
  }
  .all-product-card>.all-product-subtitle,
  .all-product-card>.equipment-badge{
    grid-column:2;
    min-width:0;
    font-size:12px;
    line-height:1.8;
  }
  .all-product-card>.equipment-badge{justify-self:start;padding:4px 7px}
  .all-product-card>.equipment-image-note,
  .all-product-card>.card-order-status,
  .all-product-card>.all-product-actions{grid-column:1/-1}
  .all-product-card>.all-product-actions{margin-top:0;padding-top:2px}
  .all-product-card>.all-product-actions>.button{min-height:46px;font-size:13px}
  .all-product-card .card-order-row{gap:5px;align-items:center}
  .all-product-card .card-order-row span{flex:1;min-width:0}
  .all-product-card .card-order-row .button{min-height:44px}
}
@media(max-width:350px){
  .all-product-card{grid-template-columns:84px minmax(0,1fr);column-gap:10px;padding:12px}
  .all-product-card>.all-product-image,
  .all-product-card>.all-product-placeholder{width:84px;height:100px;min-height:100px;max-height:100px}
  .all-product-card>h3{font-size:15px}
}

/* Keep mobile action labels whole without changing the desktop cards. */
@media(max-width:600px){
 .all-product-card>.all-product-actions{grid-template-columns:minmax(0,1fr) max-content}
 .all-product-card>.all-product-actions>.button-text{white-space:nowrap;overflow-wrap:normal}
}
