/* ITNETCOM_SHOP_MOBILE_FULL_PRODUCT_TITLES_V1
   Both B2C and B2B: previously the legacy catalogue CSS truncated product
   titles after three lines. Allow the complete name to wrap naturally.
   No changes to the desktop layout, product content or commerce logic. */
@media (max-width:760px){
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-name {
  display:block!important;
  height:auto!important;
  min-height:58px!important;
  max-height:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  -webkit-line-clamp:unset!important;
  line-clamp:unset!important;
  -webkit-box-orient:initial!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  hyphens:auto!important;
  line-height:1.38!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-top {
  min-height:0!important;
  overflow:visible!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-link {
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
 }
}

/* ITNETCOM_MOBILE_META_SUBGRID_V1 — titles remain complete; align Brand, SKU, Category and bottom actions by row, no JavaScript. */
@media (max-width:760px){
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:subgrid!important;
  grid-row:span 5!important;
  align-content:stretch!important;
  min-height:0!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-top {
  grid-row:1 / span 4!important;
  grid-column:1!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:subgrid!important;
  min-height:0!important;
  align-content:stretch!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-badge-row {
  grid-row:1!important;grid-column:1!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-link {
  grid-row:2 / span 2!important;
  grid-column:1!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:subgrid!important;
  min-height:0!important;
  align-content:stretch!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-media {
  grid-row:1!important;grid-column:1!important;margin-bottom:0!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-name {
  grid-row:2!important;grid-column:1!important;
  align-self:start!important;margin:0!important;padding:0!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-meta {
  grid-row:4!important;grid-column:1!important;
  margin-top:0!important;
  align-self:start!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-bottom {
  grid-row:5!important;grid-column:1!important;
  margin-top:0!important;align-self:stretch!important;
  padding-top:12px!important;
 }
}

/* ITNETCOM_MOBILE_META_TITLE_SEPARATION_V2
 * Small breathing room above Brand/SKU/Category. Shared subgrid rows
 * preserve equal baseline across cards regardless of title length. */
@media (max-width:760px){
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-card .shop-product-meta {
  box-sizing:border-box!important;
  padding-top:8px!important;
 }
}
