/* ITNETCOM B2C phone: override legacy 5-row subgrid on product cards.
   All rows grow naturally so category and welcome label cannot clip. */
@media (max-width:540px) {
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card {
   display:flex !important;
   flex-direction:column !important;
   grid-template:none !important;
   grid-template-rows:none !important;
   grid-row:auto !important;
   overflow:visible !important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card .shop-product-top {
   display:flex !important;
   flex-direction:column !important;
   grid-template:none !important;
   grid-template-rows:none !important;
   grid-row:auto !important;
   overflow:visible !important;
   min-height:0 !important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card .shop-product-badge-row {
   position:static !important;
   display:flex !important;
   flex-direction:column !important;
   flex-wrap:nowrap !important;
   align-items:flex-start !important;
   justify-content:flex-start !important;
   align-self:stretch !important;
   grid-row:auto !important;
   grid-column:auto !important;
   height:auto !important;
   min-height:0 !important;
   max-height:none !important;
   margin:0 0 10px !important;
   padding:0 !important;
   gap:7px !important;
   overflow:visible !important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card .shop-product-badge-row .shop-product-tag {
   display:inline-flex !important;
   position:static !important;
   align-items:center !important;
   align-self:flex-start !important;
   flex:none !important;
   width:auto !important;
   max-width:100% !important;
   min-width:0 !important;
   height:auto !important;
   min-height:22px !important;
   max-height:none !important;
   padding:3px 8px !important;
   white-space:normal !important;
   overflow:visible !important;
   text-overflow:clip !important;
   overflow-wrap:anywhere !important;
   word-break:normal !important;
   line-height:1.35 !important;
   font-size:10.5px !important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card .shop-product-badge-row .itn-welcome-card-row {
   display:block !important;
   position:static !important;
   grid-row:auto !important;
   grid-column:auto !important;
   height:auto !important;
   max-height:none !important;
   min-height:0 !important;
   padding:0 !important;
   margin:0 !important;
   overflow:visible !important;
   visibility:visible !important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card .shop-product-badge-row .itn-welcome-card-note {
   display:inline-flex !important;
   width:auto !important;
   max-width:100% !important;
   white-space:normal !important;
   line-height:1.45 !important;
   font-size:11px !important;
   padding:4px 8px !important;
   overflow:visible !important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card .shop-product-link {
   grid-row:auto !important;
   grid-column:auto !important;
   grid-template:none !important;
   grid-template-rows:none !important;
   display:flex !important;
   flex-direction:column !important;
   overflow:visible !important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card .shop-product-meta,
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card .shop-product-bottom {
   grid-row:auto !important;
 }
}
