
/* 1) Square picture box that old Safari sizes correctly */
html body .kh2-card .kh2-card__media{display:block!important;aspect-ratio:auto!important;height:0!important;padding:100% 0 0!important;position:relative!important;overflow:hidden!important;flex:0 0 auto!important;border-radius:11px 11px 0 0!important}
html body .kh2-card .kh2-card__media>a:first-child{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;display:block!important;width:auto!important;height:auto!important}
html body .kh2-card .kh2-card__media img{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important}
html body .kh2-card{overflow:visible!important}
html body .kh2-card>*{flex-shrink:0!important}
html body .kh2-card .kh2-price{display:block}
html body.kp-on .kp-card .kh2-price{display:flex}
/* 2) Phones: «تسوّق حسب احتياجك» as cards, two per row */
@media (max-width:767px){
  html body .kh2 .kh2-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body .kh2 .kh2-row__item{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:0 0 12px!important;background:#fff;border:1px solid var(--ka-line,rgba(5,54,89,.1))!important;border-radius:12px!important;overflow:hidden;min-width:0}
  html body .kh2 .kh2-row__item img{display:block!important;width:100%!important;height:auto!important;max-width:none!important;flex:0 0 auto!important;background:var(--ka-soft,#F1F4F7);object-fit:cover}
  html body .kh2 .kh2-row__item>span{display:block!important;padding:8px 10px 0!important;min-width:0}
  html body .kh2 .kh2-row__name{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(2 * 1.55em);font-size:13px!important;line-height:1.55!important;color:var(--ka-ink,#1C2B33)!important}
  html body .kh2 .kh2-row__item .kh2-price{display:block!important;padding-top:4px;font-size:14.5px!important;font-weight:700!important;color:var(--ka-ink,#1C2B33)!important}
}
