/* MKFOOL V54 — Home only. Layout, product pages and admin unaffected. */
.mk-home-v54{--mk-ink:#172a35;--mk-soft:#667986;--mk-primary:#087fa9;--mk-deep:#075f7e;--mk-border:#dfebf0;--mk-white:#fff;color:var(--mk-ink);font-family:"IBM Plex Sans Arabic",system-ui,sans-serif}
.mk-home-v54 *, .mk-home-v54 *::before,.mk-home-v54 *::after{box-sizing:border-box}
.mk-home-v54 a{text-decoration:none}
.mk-home-hero{display:grid;grid-template-columns:1.3fr .7fr;align-items:center;gap:28px;background:linear-gradient(110deg,#edf9fe 0%,#f8fcff 62%,#e5f4f9 100%);border:1px solid #d5eaf2;border-radius:24px;padding:42px clamp(24px,4.5vw,58px);overflow:hidden;position:relative}
.mk-home-hero__inner{position:relative;z-index:1}
.mk-home-kicker{display:inline-flex;gap:9px;align-items:center;border:1px solid #cce7f0;border-radius:30px;background:#fff;padding:7px 13px;color:var(--mk-deep);font-size:13px;font-weight:800}
.mk-home-kicker__dot{height:8px;width:8px;background:#22a889;border-radius:50%}
.mk-home-hero h1{font-family:Cairo,sans-serif;font-size:clamp(28px,3.7vw,47px);line-height:1.4;letter-spacing:-.4px;margin:14px 0;color:var(--mk-ink);font-weight:800}
.mk-home-hero h1 span{color:var(--mk-primary);display:inline-block}
.mk-home-hero p{font-size:15px;line-height:2;max-width:570px;margin:0 0 22px;color:#496474}
.mk-home-hero__cta{display:inline-flex;align-items:center;justify-content:center;gap:14px;background:var(--mk-primary);color:#fff!important;border-radius:12px;padding:12px 24px;font-weight:800;min-height:49px;transition:background .2s,transform .2s}
.mk-home-hero__cta:hover{background:var(--mk-deep);transform:translateY(-1px)}
.mk-home-hero__visual{min-height:218px;border-radius:24px;background:radial-gradient(circle at 70% 20%,#4dc2df 0%,#078eb2 55%,#08647f 100%);box-shadow:0 15px 35px #087fa924;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;transform:rotate(-4deg);position:relative}
.mk-home-hero__badge{position:absolute;top:18px;left:16px;background:#fff;color:#075f7e;font-weight:800;font-size:12px;padding:6px 11px;border-radius:30px}
.mk-home-hero__mark{color:#fff;font-family:Cairo,sans-serif;font-size:clamp(34px,5vw,60px);font-weight:800;text-shadow:0 3px 10px #06445c66}
.mk-home-hero__small{color:#e9faff;font-size:13px;font-weight:700}
.mk-home-perks{margin:18px 0 40px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mk-home-perk{display:flex;align-items:center;justify-content:center;gap:9px;background:#fff;border:1px solid var(--mk-border);padding:13px 9px;border-radius:13px;font-size:13px;font-weight:750;text-align:center}
.mk-home-perk__icon{display:inline-flex;flex:0 0 26px;width:26px;height:26px;border-radius:50%;align-items:center;justify-content:center;background:#e7f7fc;color:var(--mk-primary);font-weight:900}
.mk-home-products{scroll-margin-top:105px}
.mk-home-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
.mk-home-eyebrow{color:var(--mk-primary);font-size:12px;font-weight:800}
.mk-home-section-head h2,.mk-home-info h2,.mk-home-faq h2{font:800 clamp(22px,2.5vw,29px)/1.45 Cairo,sans-serif;color:var(--mk-ink);margin:5px 0 6px}
.mk-home-section-head p{color:var(--mk-soft);margin:0;font-size:13px}
.mk-home-count{flex-shrink:0;border-radius:30px;background:#e8f6fc;color:#117ca4;padding:6px 12px;font-weight:800;font-size:12px}
.mk-home-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.mk-home-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--mk-border);border-radius:17px;overflow:hidden;box-shadow:0 5px 18px #133b4c09;transition:transform .2s,box-shadow .2s}
.mk-home-card:hover{transform:translateY(-3px);box-shadow:0 13px 29px #133b4c18}
.mk-home-card__image-link{display:block;position:relative;aspect-ratio:1/1;width:100%;overflow:hidden;background:#f4f8fa}
.mk-home-card__image-link img.mk-home-product-image{display:block;width:100%;height:100%;aspect-ratio:1/1;object-fit:contain;object-position:center;background:#f4f8fa;transition:transform .25s}
.mk-home-card__image-link:hover img{transform:scale(1.035)}
.mk-home-card__image-link .empty-image{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center}
.mk-home-card__body{display:flex;flex:1;flex-direction:column;padding:14px;gap:9px}
.mk-home-card__title{font-size:14px;line-height:1.65;font-weight:800;margin:0;min-height:3.3em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.mk-home-card__title a{color:var(--mk-ink)}
.mk-home-card__prices{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin-top:auto;direction:rtl}
.mk-home-card__price{font-size:20px;line-height:1.25;color:#16804a;font-weight:900}
.mk-home-card__old-price{font-size:12px;color:#93a0a9}
.mk-home-card__button{margin-top:4px;min-height:43px;padding:9px 11px;border-radius:10px;display:flex;justify-content:center;align-items:center;gap:8px;background:var(--mk-primary);color:white!important;font-size:14px;font-weight:800;transition:background .2s}
.mk-home-card__button:hover{background:var(--mk-deep)}
.mk-home-info{margin-top:40px;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#e9f7fc;border:1px solid #d7eaf4;border-radius:18px}
.mk-home-info p{font-size:14px;color:#536979;margin:4px 0 0}
.mk-home-info__link{white-space:nowrap;display:inline-flex;align-items:center;gap:8px;font-weight:800;color:var(--mk-primary);padding:10px 0}
.mk-home-faq{margin:44px 0 4px;max-width:900px}
.mk-home-faq h2{margin-bottom:15px}
.mk-home-faq details{background:#fff;border:1px solid var(--mk-border);border-radius:12px;margin-bottom:9px;padding:0 15px}
.mk-home-faq summary{cursor:pointer;padding:13px 2px;font-weight:750;font-size:14px}
.mk-home-faq summary::marker{color:var(--mk-primary)}
.mk-home-faq details p{margin:0 0 15px;color:#607482;font-size:13px;line-height:1.9}
@media(max-width:1000px){.mk-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.mk-home-hero{grid-template-columns:1fr;padding:25px 19px;gap:15px}.mk-home-hero h1{font-size:clamp(26px,6vw,35px)}.mk-home-hero__visual{display:none}.mk-home-perks{margin:13px 0 29px;gap:6px}.mk-home-perk{padding:10px 5px;gap:4px;flex-direction:column;font-size:10px;line-height:1.5}.mk-home-perk__icon{width:23px;height:23px;flex-basis:23px}.mk-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mk-home-section-head{margin-bottom:14px}.mk-home-section-head h2{font-size:22px}.mk-home-section-head p{font-size:11px;line-height:1.8}.mk-home-count{font-size:10px;padding:5px 8px}.mk-home-card{border-radius:12px}.mk-home-card__body{padding:10px;gap:7px}.mk-home-card__title{font-size:12px;line-height:1.55;min-height:3.1em}.mk-home-card__price{font-size:16px}.mk-home-card__old-price{font-size:10px}.mk-home-card__button{font-size:12px;padding:8px 4px;min-height:39px;border-radius:8px}.mk-home-card__image-link,.mk-home-card__image-link img.mk-home-product-image{aspect-ratio:1/1}.mk-home-info{padding:20px 16px;display:block;margin-top:28px}.mk-home-info__link{margin-top:8px}.mk-home-faq{margin-top:30px}}
@media(max-width:360px){.mk-home-card__body{padding:8px}.mk-home-card__title{font-size:11.5px}.mk-home-card__price{font-size:14px}.mk-home-card__button{font-size:11px}.mk-home-perk{font-size:9px}}
@media(prefers-reduced-motion:reduce){.mk-home-v54 *{transition:none!important;transform:none!important;scroll-behavior:auto!important}}

/* MKFOOL V56: native system font prevents late webfont swaps on homepage. */
.mk-home-v54, .mk-home-v54 * {font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif}
.mk-home-hero h1,.mk-home-hero__mark,.mk-home-section-head h2,.mk-home-info h2,.mk-home-faq h2{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif}
/* Make the first paint match final geometry even on narrow screens. */
.mk-home-grid{min-width:0}
.mk-home-card__image-link{aspect-ratio:1/1;contain:layout style}
.mk-home-card__image-link img.mk-home-product-image{width:100%;height:100%;aspect-ratio:1/1;object-fit:contain}
.mk-home-card__title{overflow-wrap:anywhere}
.mk-home-hero__visual{min-width:0}
@media(max-width:760px){.mk-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Better visual affordance for inline footer links. */
.mk-home-v54 .mk-home-faq a{text-decoration:underline;text-underline-offset:3px}

/* MKFOOL V88 — homepage hierarchy only, mobile-first; no JS and no font dependencies. */
.mk-home-v54{max-width:1240px;margin-inline:auto}
.mk-home-v54 .mk-home-hero{grid-template-columns:minmax(0,1.3fr) minmax(180px,.7fr);gap:20px;padding:clamp(23px,3vw,36px);border-radius:20px}
.mk-home-v54 .mk-home-hero p{max-width:480px;line-height:1.8}
.mk-home-v54 .mk-home-products{margin-top:24px}
.mk-home-v54 .mk-home-section-head{align-items:end;gap:12px}
.mk-home-v54 .mk-home-section-head h2{margin-top:4px}
.mk-home-v54 .mk-home-grid{gap:14px}
.mk-home-v54 .mk-home-card{border-radius:15px;box-shadow:0 3px 12px #133b4c0b}
.mk-home-v54 .mk-home-card__body{gap:8px}
.mk-home-v54 .mk-home-card__button{margin-top:6px}
.mk-home-v54 .mk-home-perks{margin:26px 0 16px;gap:10px}
.mk-home-v54 .mk-home-info{margin-top:22px}
.mk-home-v54 .mk-home-faq{margin-top:32px}
@media(max-width:760px){
 .mk-home-v54 .mk-home-hero{grid-template-columns:minmax(0,1fr);padding:18px 15px 20px;border-radius:16px;gap:0}
 .mk-home-v54 .mk-home-hero h1{font-size:clamp(23px,6vw,32px);line-height:1.4;margin:8px 0}
 .mk-home-v54 .mk-home-hero p{font-size:12px;line-height:1.75;margin-bottom:13px}
 .mk-home-v54 .mk-home-hero__cta{min-height:43px;padding:9px 16px;font-size:13px}
 .mk-home-v54 .mk-home-products{margin-top:18px}
 .mk-home-v54 .mk-home-section-head{margin-bottom:11px;align-items:center}
 .mk-home-v54 .mk-home-section-head h2{font-size:21px}
 .mk-home-v54 .mk-home-grid{gap:10px}
 .mk-home-v54 .mk-home-perks{margin:22px 0 12px;gap:7px}
 .mk-home-v54 .mk-home-info{margin-top:16px}
}
/* V137: AI page main image on home cards — fill the square from the top (headline visible) */
.mk-home-card__image-link img.mk-home-product-image.mk-home-img-lp{object-fit:cover!important;object-position:center top!important}

/* V140: old prices always struck through (inline-flex .money blocked the line) */
del .money{display:inline!important;text-decoration:inherit}
del .money .sar-symbol{margin-right:.28em}
del{text-decoration:line-through;text-decoration-thickness:1.5px}
/* V169: hero card for every store name + Kufi font on the home page */
.mk-home-v54 .mk-home-hero h1,.mk-home-v54 .mk-home-section-head h2,.mk-home-v54 .mk-home-info h2,.mk-home-v54 .mk-home-faq h2,.mk-hv2__name{font-family:"Noto Kufi Arabic",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif}
.mk-home-hero__visual.mk-hv2{transform:rotate(-2.5deg);padding:22px 20px;gap:10px;text-align:center;overflow:hidden;min-height:230px}
.mk-hv2::after{content:"";position:absolute;inset:auto -40px -60px auto;width:180px;height:180px;border-radius:50%;background:#ffffff14;pointer-events:none}
.mk-hv2__logo{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:16px;padding:8px 14px;box-shadow:0 6px 16px #06445c33;max-width:78%}
.mk-hv2__logo img{display:block;height:44px;width:auto;max-width:100%;object-fit:contain}
.mk-hv2__name{color:#fff;font-weight:800;line-height:1.25;text-shadow:0 3px 10px #06445c66;max-width:100%;overflow-wrap:anywhere}
.mk-hv2--s{font-size:clamp(34px,4.2vw,50px)}
.mk-hv2--m{font-size:clamp(26px,3vw,36px)}
.mk-hv2--l{font-size:clamp(20px,2.3vw,28px)}
.mk-hv2__line{color:#e9faff;font-size:13px;font-weight:700}
.mk-hv2__row{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:4px}
.mk-hv2__chip{background:#ffffffe8;color:#075f7e;font-weight:800;font-size:11.5px;padding:5px 10px;border-radius:30px;white-space:nowrap}
