/* 8-product grid: 2 rows x 4, hover-expand like the original */
#products,#products>.e-con-inner{width:100%}
#products>.e-con-inner{max-width:min(100%,1320px)!important}
#products .elementor-element-3eb1cce0,#products .elementor-shortcode{width:100%}
#product_grid{display:flex;flex-direction:column;gap:20px;width:100%}
#product_grid .prow{display:flex;gap:20px;width:100%}
#product_grid .box-container{flex:1 1 0;min-width:0;width:auto;height:420px;margin:0;display:block;
  transition:flex-grow .45s ease,background-color .4s ease,color .4s ease}
#product_grid .box-container:hover{flex-grow:2.15}
#product_grid .box-container a{display:block;height:100%;color:inherit}
#product_grid .main-content{padding:32px 28px 24px}
#product_grid .main-content h3{font-size:22px;line-height:30px;font-weight:400;margin:0}
#product_grid .pro_icon{max-width:calc(100% - 56px);max-height:64px;width:auto;height:auto}
#product_grid .mono{filter:brightness(0) invert(1)}
#product_grid .number_span{position:absolute;left:28px;bottom:20px;font-size:56px;line-height:64px}
#product_grid .extra-content{padding:28px;box-sizing:border-box;left:-100%}
#product_grid .box-container:hover .extra-content{left:0}
#product_grid .extra-content p{margin:0;font-size:16px;line-height:24px}
#product_grid .extra-content .pro_logo{max-width:100%;max-height:70px;width:auto;height:auto;margin-bottom:16px;display:block}
#product_grid .pro_category{margin-bottom:24px}
#product_grid .pc-hackify:hover{background-color:#F26722!important;color:#231F20;background-image:url(/wp-content/uploads/2025/04/Vector-8-1-hk.svg)!important}
#product_grid .pc-salis:hover{background-color:#6A5B9D!important;color:#fff;background-image:url(/wp-content/uploads/2025/04/Group-1000002538-1.svg)!important}
#product_grid .pc-connect:hover{background-color:#DEF763!important;color:#231F20;background-image:url(/wp-content/uploads/products/connect-mark-lime.png)!important}
#product_grid .pc-grc:hover{background-color:#5E56DE!important}
#product_grid .pc-riyal:hover{background-color:#4C8DF6!important}
#product_grid .pc-wafir:hover{background-color:#5B6168!important}
#product_grid .pc-procx:hover{background-color:#2E3A8C!important}
#product_grid .pc-aml:hover{background-color:#7E4FA8!important}
@media (max-width:900px){
  #product_grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #product_grid .prow{display:contents}
  #product_grid .box-container{height:300px}
  #product_grid .box-container:hover{flex-grow:1}
  #product_grid .extra-content{display:none}
}
@media (max-width:600px){#product_grid{grid-template-columns:1fr}#product_grid .box-container{height:260px!important}}

/* decorative corner marks for the new products (same look as the first three) */
#product_grid .pc-grc,#product_grid .pc-aml{background-position:top right;background-repeat:no-repeat}
#product_grid .pc-grc:hover,#product_grid .pc-aml:hover{background-image:url(/wp-content/uploads/2025/04/Group-1000002538-1.svg)!important}
#product_grid .pc-aml:hover{background-color:#7E4FA8!important}
#product_grid .pc-riyal::before,#product_grid .pc-wafir::before,#product_grid .pc-procx::before{
  content:"";position:absolute;pointer-events:none;top:0;right:-40px;width:170px;height:170px;
  filter:brightness(0) invert(1);opacity:.06;background-repeat:no-repeat;transition:opacity .4s ease}
#product_grid .pc-riyal:hover::before,#product_grid .pc-wafir:hover::before,#product_grid .pc-procx:hover::before{opacity:.16}
#product_grid .pc-riyal::before{background-image:url(/wp-content/uploads/products/riyal.png);width:170px;height:182px;background-size:691px auto;background-position:0 0}
#product_grid .pc-procx::before{background-image:url(/wp-content/uploads/products/procurement-x-mark.svg);background-size:contain;background-position:center}
@media (max-width:900px){#product_grid .pc-riyal::before,#product_grid .pc-wafir::before,#product_grid .pc-procx::before{right:-50px}}

#product_grid .pc-connect,#product_grid .pc-connect:hover{background-repeat:no-repeat!important;background-position:right -22% top 8%!important;background-size:auto 70%!important}

/* tidy cards: no corner names, big logos, big corner marks */
#product_grid .main-content h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#product_grid .pro_icon,#product_grid .extra-content .pro_logo{width:calc(100% - 56px)!important;max-width:290px!important;height:auto!important;max-height:74px!important;object-fit:contain;object-position:left center}
#product_grid .extra-content .pro_logo{margin-bottom:16px}
#product_grid .box-container{background-repeat:no-repeat;background-position:right -10% top -4%;background-size:auto 80%!important}
#product_grid .pc-riyal::before{top:-4%;right:-10%;width:auto;height:80%;aspect-ratio:170/182;background-size:406% auto;background-position:0 0}
#product_grid .pc-hackify .pro_icon,#product_grid .pc-hackify .extra-content .pro_logo{max-height:104px!important;object-position:left bottom}

/* StrategyTik card */
#product_grid .pc-strategytik:hover{background-color:#DE0B82!important;color:#fff}
#product_grid .pc-strategytik::before{content:"";position:absolute;pointer-events:none;top:-4%;right:-10%;height:80%;aspect-ratio:296/309;background:url(/wp-content/uploads/products/strategytik-mark-light.png) center/contain no-repeat;filter:brightness(0) invert(1);opacity:.06;transition:opacity .4s ease}
#product_grid .pc-strategytik:hover::before{opacity:.16}
#product_grid .pc-strategytik .pro_icon,#product_grid .pc-strategytik .extra-content .pro_logo{max-height:112px!important}

/* Procurement X card */
#product_grid .pc-procx:hover{background-color:#3B3EA8!important;color:#fff}
#product_grid .pc-procx::before{background-image:url(/wp-content/uploads/products/procurement-x-mark.svg);top:-4%;right:-10%;width:auto;height:80%;aspect-ratio:96/106;background-size:contain;background-position:center;background-repeat:no-repeat;filter:brightness(0) invert(1)}
#product_grid .pc-procx .pro_icon,#product_grid .pc-procx .extra-content .pro_logo{max-width:calc(100% - 56px)!important;width:calc(100% - 56px)!important}


/* Wafir corner mark: the real bars mark from the brand PDF */
#product_grid .pc-wafir::before{background-image:url(/wp-content/uploads/products/wafir-mark.png)!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;top:-4%;right:-6%;width:auto;height:86%;aspect-ratio:1060/1120}
