/* ITNETCOM B2C + B2B compact mobile catalogue, two independent product cards per row.
   Never affects School, tablets > 540px, desktop, or coupon/payment logic. */
@media (max-width:540px) {
 body:not(.itn-school-mode) .shop-page .shop-products-grid {
   display:grid!important;
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   column-gap:9px!important;
   row-gap:12px!important;
   padding:3px 2px 12px!important;
   width:100%!important;
   overflow:visible!important;
   border:none!important;
   border-radius:0!important;
   background:#fff!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card {
   box-sizing:border-box!important;
   display:flex!important;
   flex-direction:column!important;
   min-height:0!important;
   min-width:0!important;
   grid-template:none!important;
   grid-row:auto!important;
   gap:0!important;
   padding:9px 8px 11px!important;
   border:1px solid #e3e7eb!important;
   border-radius:10px!important;
   background:#fff!important;
   overflow:hidden!important;
   box-shadow:0 2px 7px rgba(20,25,30,.035)!important;
   transform:none!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-top {
   display:flex!important;
   flex-direction:column!important;
   flex:1 1 auto!important;
   grid-template:none!important;
   min-width:0!important;
   height:auto!important;
   min-height:0!important;
   overflow:visible!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-badge-row {
   display:flex!important;
   flex-direction:column!important;
   align-items:flex-start!important;
   width:100%!important;
   height:auto!important;
   min-height:0!important;
   max-height:none!important;
   grid-row:auto!important;
   gap:4px!important;
   margin:0 0 6px!important;
   padding:0!important;
   overflow:visible!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-tag {
   box-sizing:border-box!important;
   display:inline-flex!important;
   align-self:flex-start!important;
   position:static!important;
   width:auto!important;
   max-width:100%!important;
   height:auto!important;
   min-height:19px!important;
   max-height:none!important;
   margin:0!important;
   padding:3px 6px!important;
   font-size:9px!important;
   line-height:1.28!important;
   white-space:normal!important;
   overflow:visible!important;
   text-overflow:clip!important;
   overflow-wrap:anywhere!important;
   word-break:normal!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-link {
   display:flex!important;
   flex-direction:column!important;
   grid-template:none!important;
   grid-row:auto!important;
   gap:4px!important;
   min-height:0!important;
   width:100%!important;
   min-width:0!important;
   overflow:visible!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-media {
   box-sizing:border-box!important;
   display:flex!important;
   flex:0 0 auto!important;
   align-items:center!important;
   justify-content:center!important;
   width:100%!important;
   height:124px!important;
   min-height:124px!important;
   max-height:124px!important;
   aspect-ratio:auto!important;
   margin:0 0 7px!important;
   padding:4px!important;
   overflow:hidden!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-media img {
   width:auto!important;
   height:auto!important;
   max-width:100%!important;
   max-height:100%!important;
   object-fit:contain!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-name {
   display:block!important;
   box-sizing:border-box!important;
   width:100%!important;
   min-width:0!important;
   height:auto!important;
   min-height:0!important;
   max-height:none!important;
   margin:2px 0 0!important;
   padding:0!important;
   font-size:12px!important;
   line-height:1.35!important;
   white-space:normal!important;
   overflow:visible!important;
   text-overflow:clip!important;
   overflow-wrap:break-word!important;
   hyphens:auto!important;
   -webkit-line-clamp:unset!important;
   line-clamp:unset!important;
   -webkit-box-orient:initial!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-meta {
   display:block!important;
   grid-row:auto!important;
   width:100%!important;
   min-width:0!important;
   height:auto!important;
   min-height:0!important;
   margin-top:8px!important;
   padding:0!important;
   overflow:visible!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid :is(.shop-product-brand,.shop-product-code,.shop-product-tech) {
   display:block!important;
   width:100%!important;
   min-width:0!important;
   max-width:100%!important;
   margin:0!important;
   font-size:9px!important;
   line-height:1.4!important;
   white-space:normal!important;
   overflow-wrap:anywhere!important;
   text-overflow:clip!important;
   text-align:left!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-bottom {
   display:flex!important;
   flex-direction:column!important;
   grid-row:auto!important;
   width:100%!important;
   min-width:0!important;
   min-height:0!important;
   margin-top:auto!important;
   padding-top:10px!important;
   overflow:visible!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-price {
   width:100%!important;
   font-size:16px!important;
   line-height:1.3!important;
   white-space:normal!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-stock {
   display:flex!important;
   align-items:center!important;
   flex-wrap:wrap!important;
   gap:4px!important;
   width:100%!important;
   min-width:0!important;
   font-size:10px!important;
   line-height:1.3!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-actions {
   display:flex!important;
   flex-direction:column!important;
   align-items:stretch!important;
   width:100%!important;
   gap:6px!important;
   margin-top:7px!important;
   min-width:0!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-qty {
   box-sizing:border-box!important;
   display:grid!important;
   grid-template-columns:32px minmax(0,1fr) 32px!important;
   width:100%!important;
   min-width:0!important;
   max-width:100%!important;
   height:36px!important;
   min-height:36px!important;
   max-height:36px!important;
   overflow:hidden!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-qty button {
   box-sizing:border-box!important;
   width:32px!important;
   min-width:32px!important;
   max-width:32px!important;
   height:36px!important;
   min-height:36px!important;
   visibility:visible!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-qty input {
   box-sizing:border-box!important;
   width:100%!important;
   min-width:0!important;
   max-width:100%!important;
   height:36px!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-cart[data-cart-add] {
   box-sizing:border-box!important;
   display:flex!important;
   justify-content:center!important;
   align-items:center!important;
   width:100%!important;
   min-width:0!important;
   max-width:100%!important;
   min-height:39px!important;
   height:39px!important;
   padding:0 4px!important;
   font-size:10.5px!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid :is(.itn-ic-volume-ui-widget,.shop-product-volume,.shop-product-tier) {
   max-width:100%!important;
   min-width:0!important;
   overflow-wrap:anywhere!important;
   white-space:normal!important;
 }
}
@media (max-width:360px) {
 body:not(.itn-school-mode) .shop-page .shop-products-grid{column-gap:7px!important;row-gap:10px!important;}
 body:not(.itn-school-mode) .shop-page .shop-products-grid > .shop-product-card{padding:8px 6px 10px!important;}
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-media{
   height:105px!important;min-height:105px!important;max-height:105px!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-qty{grid-template-columns:29px minmax(0,1fr) 29px!important}
 body:not(.itn-school-mode) .shop-page .shop-products-grid .shop-product-qty button{width:29px!important;min-width:29px!important;max-width:29px!important}
}

/* ITNETCOM_TWO_COLUMN_VOLUME_LABEL_FIX_V3:
 * Compact quantity-price tiers so they don't overwhelm two-column cards. */
@media(max-width:540px){
 body:not(.itn-school-mode) .shop-page .shop-products-grid .itn-volume-quantity{
   display:block!important;
   box-sizing:border-box!important;
   width:100%!important;
   max-width:100%!important;
   min-width:0!important;
   height:auto!important;
   margin:7px 0 4px!important;
   padding:6px 7px!important;
   border:1px solid #c9e4d1!important;
   border-radius:6px!important;
   background:#f6fcf7!important;
   color:#23663d!important;
   font:500 10px/1.4 Arial,Helvetica,sans-serif!important;
   letter-spacing:0!important;
   white-space:normal!important;
   overflow-wrap:break-word!important;
   word-break:normal!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .itn-volume-quantity .itn-volume-prefix{
   font:700 10px/1.4 Arial,Helvetica,sans-serif!important;
   color:#186a35!important;
   display:inline!important;
   white-space:normal!important;
 }
 body:not(.itn-school-mode) .shop-page .shop-products-grid .itn-volume-quantity [data-itn-volume-status]{
   font:500 10px/1.4 Arial,Helvetica,sans-serif!important;
   color:#246142!important;
   display:inline!important;
   white-space:normal!important;
 }
}
