/* Monjaz product/store polish — images stay fully framed, never awkwardly cropped */
.shop{background:#f7faf9!important}
.shop .wrap{max-width:1180px!important}
/* Official brand mark in every store header, regardless of legacy img src */
.shop .top .logo{min-width:122px!important;display:flex!important;align-items:center!important}
.shop .top .logo img{content:url('img/brand/monjaz-official-2026.png')!important;width:112px!important;height:48px!important;object-fit:contain!important;object-position:center!important;border-radius:0!important}

/* Audience storefront hero */
.stx-hero{position:relative!important;overflow:hidden!important;min-height:330px!important;padding:40px max(22px,calc((100vw - 1180px)/2))!important;background:
  radial-gradient(circle at 12% 20%,rgba(255,255,255,.30),transparent 24%),
  linear-gradient(135deg,#0b7779 0%,#0d8f88 52%,#155066 100%)!important;color:#fff!important}
.stx-hero:after{content:"";position:absolute;inset:auto -10% -55% auto;width:520px;height:520px;border-radius:50%;background:rgba(255,255,255,.06);pointer-events:none}
.stx-in{position:relative;z-index:3;max-width:690px!important;margin-inline:auto 0!important}
.stx-in h1,.stx-in .stx-sub,.stx-in .stx-lead{color:#fff!important}.stx-in h1{font-size:clamp(31px,4vw,48px)!important;line-height:1.3!important;margin:0 0 8px!important}.stx-sub{font-weight:800!important;font-size:17px!important}.stx-lead{max-width:650px!important;opacity:.91!important;line-height:1.9!important;font-size:14px!important}
.stx-art{position:absolute!important;z-index:1!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;pointer-events:none!important}.stx-art img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 14px 22px rgba(0,0,0,.14))!important}.stx-art-a{left:max(12px,calc((100vw - 1260px)/2));bottom:0!important;width:min(31vw,390px)!important;height:90%!important}.stx-art-b{left:min(30vw,390px)!important;bottom:-2px!important;width:min(19vw,250px)!important;height:70%!important;opacity:.94!important}
.stx-cart{position:absolute!important;top:22px!important;left:max(18px,calc((100vw - 1180px)/2))!important;z-index:5!important;display:flex!important;align-items:center!important;gap:7px!important;padding:9px 12px!important;border:1px solid rgba(255,255,255,.32)!important;border-radius:12px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;text-decoration:none!important;backdrop-filter:blur(8px)!important}
.stx-ft{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:16px!important}.stx-ft span{display:flex!important;align-items:center!important;gap:6px!important;padding:7px 10px!important;border-radius:999px!important;background:rgba(255,255,255,.13)!important;border:1px solid rgba(255,255,255,.20)!important;color:#fff!important;font-size:11px!important;font-weight:800!important}.stx-ft svg{width:16px!important;height:16px!important}

/* Filters & category chips */
.sh-bar{margin-top:20px!important;border:1px solid #dce9e9!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 28px rgba(17,55,70,.05)!important;padding:12px!important}
.sh-tabs{gap:7px!important}.sh-tabs button,.sh-col button{font-family:'Almarai',sans-serif!important;font-weight:800!important;min-height:39px!important;border-radius:999px!important;border:1px solid #dce9e9!important;background:#fff!important;color:#41626d!important;padding-inline:13px!important}.sh-tabs button.on,.sh-tabs button[aria-pressed=true],.sh-col button.on,.sh-col button[aria-pressed=true]{background:#0b8581!important;border-color:#0b8581!important;color:#fff!important;box-shadow:0 5px 14px rgba(11,133,129,.15)!important}
.sh-search input,#sort{min-height:44px!important;border:1px solid #d4e5e4!important;background:#fbfdfd!important;border-radius:12px!important}

/* Product section */
.sh-sec{border-radius:20px!important;padding:18px!important;margin-bottom:24px!important;background:#fff!important;border:1px solid #e0ebeb!important;box-shadow:none!important}
.sh-sech{border-radius:14px!important;padding:12px 15px!important;background:linear-gradient(135deg,#0e6f76,#0c9188)!important;color:#fff!important}.sh-sech h2{font-family:'Almarai',sans-serif!important;font-size:18px!important}
.sh-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:15px!important;align-items:stretch!important}
.sh-card{overflow:hidden!important;display:flex!important;flex-direction:column!important;min-width:0!important;background:#fff!important;border:1px solid #dfeaea!important;border-radius:18px!important;box-shadow:0 9px 26px rgba(18,60,72,.07)!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important}
.sh-card:hover{transform:translateY(-4px)!important;box-shadow:0 17px 38px rgba(18,60,72,.12)!important;border-color:#c4ddda!important}

/* CRITICAL: product art is contained, never cropped */
.sh-img{position:relative!important;aspect-ratio:4/3!important;height:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:10px!important;background:linear-gradient(145deg,#f5faf9,#eef6f7)!important;overflow:hidden!important}
.sh-img img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:12px!important;display:block!important;filter:saturate(1.02) contrast(1.01)!important}
.sh-film{display:none!important}
.sh-pack{top:10px!important;right:10px!important;border-radius:999px!important;font-size:10px!important;padding:4px 8px!important;box-shadow:0 4px 12px rgba(0,0,0,.12)!important}
.sh-body{padding:13px 13px 14px!important;display:flex!important;flex-direction:column!important;flex:1!important}.sh-body h3{margin:0 0 5px!important;color:#153f4d!important;font-family:'Almarai',sans-serif!important;font-size:14.5px!important;line-height:1.55!important;font-weight:800!important}.sh-body p{margin:0 0 8px!important;color:#63757c!important;font-size:11.8px!important;line-height:1.7!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}.sh-sub{color:#0a837e!important;font-size:11px!important;font-weight:800!important}.sh-rv{margin-top:auto!important;color:#d09317!important;font-size:11.5px!important}.sh-rv small{color:#63777d!important}
.sh-foot{margin-top:9px!important;padding-top:10px!important;border-top:1px solid #edf2f2!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}.sh-pr{min-width:0!important}.sh-pr b{font-size:18px!important;color:#123f4e!important;font-weight:800!important}.sh-pr small{font-size:10.5px!important;color:#66767c!important}.sh-foot .btn{min-height:38px!important;padding:8px 10px!important;border-radius:11px!important;font-size:11.5px!important;font-weight:800!important;white-space:nowrap!important}
.mb-big,.mb-nudge,.mb-tag{animation:none!important}

/* Branded auto-covers for the real worksheet catalog.
   These replace repetitive generic fallback artwork with a consistent Monjaz product system. */
.sh-card[data-id^="tpl_ws_"] .sh-img{--ws-a:#245fd4;--ws-b:#48a7f4;--ws-ac:#dcebff;padding:0!important;isolation:isolate;background:
  url('img/brand/monjaz-official-2026.png') left 12px top 11px/78px auto no-repeat,
  radial-gradient(circle at 84% 18%,rgba(255,255,255,.26) 0 17%,transparent 18%),
  radial-gradient(circle at 12% 92%,rgba(255,255,255,.12) 0 24%,transparent 25%),
  linear-gradient(145deg,var(--ws-a),var(--ws-b))!important;color:#fff!important}
.sh-card[data-id^="tpl_ws_"] .sh-img img{display:none!important}
.sh-card[data-id^="tpl_ws_"] .sh-img:before{content:"أوراق عمل • PDF + Word";position:absolute;z-index:2;top:14px;right:12px;max-width:58%;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);color:#fff;font:700 8.8px/1.5 'Almarai',sans-serif;backdrop-filter:blur(5px)}
.sh-card[data-id^="tpl_ws_"] .sh-img:after{content:"أوراق عمل\A لجميع الوحدات";white-space:pre-line;position:absolute;z-index:2;right:16px;left:16px;bottom:18px;color:#fff;font:800 clamp(15px,1.55vw,22px)/1.55 'Almarai',sans-serif;text-shadow:0 2px 12px rgba(0,0,0,.13)}
.sh-card[data-id^="tpl_ws_"] .sh-img{box-shadow:inset 0 -55px 70px rgba(8,35,64,.08)!important}
/* subjects */
.sh-card[data-id^="tpl_ws_math_"] .sh-img{--ws-a:#1769cf;--ws-b:#46a9f4}.sh-card[data-id^="tpl_ws_math_"] .sh-img:after{content:"الرياضيات\A أوراق عمل شاملة"}
.sh-card[data-id^="tpl_ws_ar_"] .sh-img{--ws-a:#7142c8;--ws-b:#a56be8}.sh-card[data-id^="tpl_ws_ar_"] .sh-img:after{content:"لغتي\A أوراق عمل شاملة"}
.sh-card[data-id^="tpl_ws_sci_"] .sh-img{--ws-a:#07857d;--ws-b:#27b39e}.sh-card[data-id^="tpl_ws_sci_"] .sh-img:after{content:"العلوم\A أوراق عمل شاملة"}
.sh-card[data-id^="tpl_ws_en_"] .sh-img{--ws-a:#d86b24;--ws-b:#f2a340}.sh-card[data-id^="tpl_ws_en_"] .sh-img:after{content:"اللغة الإنجليزية\A أوراق عمل شاملة"}
.sh-card[data-id^="tpl_ws_isl_"] .sh-img{--ws-a:#19714f;--ws-b:#42a673}.sh-card[data-id^="tpl_ws_isl_"] .sh-img:after{content:"الدراسات الإسلامية\A أوراق عمل شاملة"}
.sh-card[data-id^="tpl_ws_soc_"] .sh-img{--ws-a:#23738f;--ws-b:#4cacc2}.sh-card[data-id^="tpl_ws_soc_"] .sh-img:after{content:"الدراسات الاجتماعية\A أوراق عمل شاملة"}
/* grade ribbon generated from product id */
.sh-card[data-id$="_g1"] .sh-img:before{content:"الأول الابتدائي • PDF + Word"}.sh-card[data-id$="_g2"] .sh-img:before{content:"الثاني الابتدائي • PDF + Word"}.sh-card[data-id$="_g3"] .sh-img:before{content:"الثالث الابتدائي • PDF + Word"}.sh-card[data-id$="_g4"] .sh-img:before{content:"الرابع الابتدائي • PDF + Word"}.sh-card[data-id$="_g5"] .sh-img:before{content:"الخامس الابتدائي • PDF + Word"}.sh-card[data-id$="_g6"] .sh-img:before{content:"السادس الابتدائي • PDF + Word"}.sh-card[data-id$="_m1"] .sh-img:before{content:"الأول المتوسط • PDF + Word"}.sh-card[data-id$="_m2"] .sh-img:before{content:"الثاني المتوسط • PDF + Word"}.sh-card[data-id$="_m3"] .sh-img:before{content:"الثالث المتوسط • PDF + Word"}
/* worksheet bundles */
.sh-card[data-id^="tpl_bundle_ws_"] .sh-img{padding:0!important;background:url('img/brand/monjaz-official-2026.png') left 12px top 11px/82px auto no-repeat,radial-gradient(circle at 80% 22%,rgba(255,255,255,.22) 0 18%,transparent 19%),linear-gradient(145deg,#075d62,#0d9b8d)!important;color:#fff!important}.sh-card[data-id^="tpl_bundle_ws_"] .sh-img img{display:none!important}.sh-card[data-id^="tpl_bundle_ws_"] .sh-img:before{content:"حقيبة جميع المواد";position:absolute;top:15px;right:13px;padding:5px 9px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font:700 9px/1.5 'Almarai',sans-serif}.sh-card[data-id^="tpl_bundle_ws_"] .sh-img:after{content:"حقيبة أوراق العمل\A جميع المواد في حزمة واحدة";white-space:pre-line;position:absolute;right:16px;left:16px;bottom:18px;color:#fff;font:800 clamp(14px,1.45vw,21px)/1.55 'Almarai',sans-serif;text-shadow:0 2px 12px rgba(0,0,0,.12)}
.sh-card[data-id="tpl_bundle_ws_g1"] .sh-img:before{content:"الأول الابتدائي • جميع المواد"}.sh-card[data-id="tpl_bundle_ws_g2"] .sh-img:before{content:"الثاني الابتدائي • جميع المواد"}.sh-card[data-id="tpl_bundle_ws_g3"] .sh-img:before{content:"الثالث الابتدائي • جميع المواد"}.sh-card[data-id="tpl_bundle_ws_g4"] .sh-img:before{content:"الرابع الابتدائي • جميع المواد"}.sh-card[data-id="tpl_bundle_ws_g5"] .sh-img:before{content:"الخامس الابتدائي • جميع المواد"}.sh-card[data-id="tpl_bundle_ws_g6"] .sh-img:before{content:"السادس الابتدائي • جميع المواد"}.sh-card[data-id="tpl_bundle_ws_m1"] .sh-img:before{content:"الأول المتوسط • جميع المواد"}.sh-card[data-id="tpl_bundle_ws_m2"] .sh-img:before{content:"الثاني المتوسط • جميع المواد"}.sh-card[data-id="tpl_bundle_ws_m3"] .sh-img:before{content:"الثالث المتوسط • جميع المواد"}

/* Plans / promo cards */
.pl-act{display:flex!important;align-items:stretch!important;min-width:0!important;overflow:hidden!important;border-radius:20px!important;box-shadow:0 12px 32px rgba(18,60,72,.10)!important}
.pl-img{width:310px!important;max-width:38%!important;aspect-ratio:4/3!important;object-fit:contain!important;object-position:center!important;background:rgba(255,255,255,.09)!important;padding:12px!important;flex:0 0 auto!important}
.pl-body{min-width:0!important;padding:22px 24px!important;gap:9px!important}.pl-body h2{font-family:'Almarai',sans-serif!important;font-size:24px!important;line-height:1.45!important}.pl-perks{min-width:0!important}.pl-cta{min-width:0!important}.pl-cta .btn{max-width:100%!important;white-space:normal!important}.pl-pr{min-width:0!important}.pl-pr b{white-space:nowrap!important}

/* Product detail image gallery */
.pg-main,.pd-img{background:#f4f9f8!important}.pg-main img,.pd-img img{object-fit:contain!important;object-position:center!important;padding:10px!important;background:#f7fbfa!important}
.pg-thumbs button{background:#f8fbfb!important}.pg-thumbs img{object-fit:contain!important}

/* Current Monjaz direction: worksheets/resources first; games are removed from the primary UI without deleting backend data. */
.gm-aisle,.sh-card[data-kind="game"],.stx-cats button[data-kind="game"]{display:none!important}

@media(min-width:1180px){.sh-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(max-width:980px){.sh-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.stx-art-a{opacity:.45!important}.stx-art-b{display:none!important}.stx-in{margin:auto!important;text-align:center!important}.stx-ft{justify-content:center!important}.pl-img{width:270px!important;max-width:34%!important}}
@media(max-width:720px){
  .shop .top .logo{min-width:0!important}.shop .top .logo img{width:94px!important;height:42px!important}
  .stx-hero{min-height:auto!important;padding:30px 16px 32px!important}.stx-art{display:none!important}.stx-cart{top:12px!important;left:12px!important}.stx-cart span{display:none!important}.stx-in{padding-top:38px!important}.stx-in h1{font-size:28px!important}.stx-sub{font-size:14px!important}.stx-lead{font-size:12.5px!important}.stx-ft{gap:6px!important}.stx-ft span{font-size:9.8px!important;padding:6px 8px!important}
  .sh-sec{padding:12px!important;border-radius:17px!important}.sh-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.sh-img{aspect-ratio:1.15/1!important;padding:7px!important}.sh-body{padding:10px!important}.sh-body h3{font-size:12.5px!important}.sh-body p{font-size:10.5px!important;-webkit-line-clamp:2!important}.sh-rv{font-size:10.5px!important}.sh-foot{align-items:stretch!important;flex-direction:column!important}.sh-foot .btn{width:100%!important;justify-content:center!important;text-align:center!important}.sh-pr b{font-size:16px!important}
  .sh-card[data-id^="tpl_ws_"] .sh-img:before,.sh-card[data-id^="tpl_bundle_ws_"] .sh-img:before{top:9px;right:8px;font-size:7.2px;padding:4px 6px;max-width:68%}.sh-card[data-id^="tpl_ws_"] .sh-img,.sh-card[data-id^="tpl_bundle_ws_"] .sh-img{background-size:62px auto,auto,auto!important;background-position:left 7px top 8px,center,center!important}.sh-card[data-id^="tpl_ws_"] .sh-img:after,.sh-card[data-id^="tpl_bundle_ws_"] .sh-img:after{right:10px;left:10px;bottom:11px;font-size:13px;line-height:1.45}
  .pl-act{flex-direction:column!important;margin:0 0 18px!important;border-radius:18px!important;box-shadow:0 10px 26px rgba(18,60,72,.10)!important}
  .pl-img{width:100%!important;max-width:100%!important;aspect-ratio:16/7!important;max-height:180px!important;object-fit:contain!important;object-position:center!important;padding:12px!important}
  .pl-body{padding:16px!important;gap:8px!important}.pl-k{font-size:10.5px!important;padding:4px 9px!important}.pl-body h2{font-size:19px!important;line-height:1.5!important}.pl-perks{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 10px!important;font-size:11.5px!important;line-height:1.65!important}.pl-perks li{min-width:0!important}.pl-perks li:before{width:17px!important;height:17px!important;line-height:17px!important;margin-inline-end:5px!important}.pl-off{padding:8px 10px!important;border-radius:11px!important;font-size:11.5px!important;line-height:1.7!important}.pl-cta{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;align-items:stretch!important}.pl-pr{display:flex!important;align-items:baseline!important;gap:5px 7px!important;flex-wrap:wrap!important}.pl-pr b{font-size:27px!important}.pl-pr small,.pl-pr s{font-size:11px!important}.pl-btn,.pl-m{width:100%!important;min-height:46px!important;margin:0!important;padding:10px 12px!important;font-size:12.5px!important;justify-content:center!important;text-align:center!important}
}
@media(max-width:470px){.pl-perks{grid-template-columns:1fr!important}.pl-img{aspect-ratio:16/6.5!important;max-height:155px!important}.pl-body{padding:14px!important}.pl-body h2{font-size:18px!important}}
@media(max-width:390px){.sh-grid{gap:8px!important}.sh-body h3{font-size:11.8px!important}.sh-body p{display:none!important}.sh-foot .btn{font-size:10.5px!important}.sh-card[data-id^="tpl_ws_"] .sh-img:before,.sh-card[data-id^="tpl_bundle_ws_"] .sh-img:before{font-size:6.6px}.sh-card[data-id^="tpl_ws_"] .sh-img:after,.sh-card[data-id^="tpl_bundle_ws_"] .sh-img:after{font-size:11.6px}.pl-pr b{font-size:25px!important}.pl-btn,.pl-m{font-size:11.5px!important}}


/* 1.146 — Keep audience-store heroes composed at every viewport; prevent artwork from hiding behind the copy. */
body.shop .stx-hero{
  display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;align-items:center!important;gap:28px!important;
  min-height:390px!important;padding:34px max(22px,calc((100vw - 1180px)/2))!important;
  background:linear-gradient(125deg,#eaf7f2 0%,#d8f0e9 54%,#c4e9df 100%)!important;color:#143e45!important
}
body.shop .stx-hero:after{inset:auto -110px -260px auto!important;width:520px;height:520px;background:rgba(255,255,255,.25)!important}
body.shop .stx-in{
  position:relative!important;grid-column:1!important;grid-row:1!important;z-index:3!important;
  width:100%!important;max-width:650px!important;margin:0!important;padding:28px 32px!important;
  border:1px solid rgba(21,80,102,.10)!important;border-radius:26px!important;
  background:rgba(255,255,255,.94)!important;box-shadow:0 16px 38px rgba(21,80,102,.09)!important;
  text-align:right!important
}
body.shop .stx-in h1{color:#155066!important}
body.shop .stx-in .stx-sub{color:#0f6b48!important}
body.shop .stx-in .stx-lead{color:#5c766d!important;opacity:1!important}
body.shop .stx-art-a{
  position:relative!important;grid-column:2!important;grid-row:1!important;inset:auto!important;
  display:flex!important;align-items:flex-end!important;justify-content:center!important;
  width:100%!important;height:330px!important;opacity:1!important;pointer-events:none!important
}
body.shop .stx-art-a img{
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 14px 22px rgba(17,55,70,.14))!important
}
body.shop .stx-art-b,body.shop .stx-cart{display:none!important}
@media(max-width:980px){
  body.shop .stx-hero{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;min-height:340px!important;gap:18px!important}
  body.shop .stx-in{padding:22px 22px!important}
  body.shop .stx-art-a{height:285px!important}
}
@media(max-width:720px){
  body.shop .stx-hero{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;
    min-height:0!important;padding:14px 12px 20px!important
  }
  body.shop .stx-art-a{display:flex!important;position:relative!important;inset:auto!important;width:100%!important;height:clamp(150px,48vw,205px)!important;margin:0!important}
  body.shop .stx-art-a img{object-fit:contain!important;object-position:center bottom!important}
  body.shop .stx-in{width:100%!important;max-width:none!important;margin:-4px 0 0!important;padding:18px 16px!important;border-radius:20px!important;text-align:center!important}
  body.shop .stx-in h1{font-size:27px!important;line-height:1.35!important}
  body.shop .stx-in .stx-sub{font-size:14px!important}
  body.shop .stx-in .stx-lead{font-size:12.5px!important;line-height:1.8!important}
  body.shop .stx-ft{justify-content:center!important}
}

/* 1.147 — Show the teacher-store artwork as a clear, responsive editorial image. */
body.shop .stx-art-a{
  overflow:hidden!important;border:1px solid rgba(21,80,102,.12)!important;border-radius:26px!important;
  background:#dcefe9!important;box-shadow:0 16px 34px rgba(21,55,70,.12)!important
}
body.shop .stx-art-a img{
  object-fit:cover!important;object-position:center 58%!important;border-radius:0!important;
  filter:none!important
}
@media(max-width:720px){
  body.shop .stx-art-a{height:clamp(160px,53vw,235px)!important;margin:0 0 14px!important;border-radius:20px!important}
  body.shop .stx-art-a img{object-position:center 60%!important}
  body.shop .stx-in{margin:0!important}
}

/* Preserve the vetted source reference for integrity checks; only the new artwork is visible. */
body.shop .stx-art-a .stx-art-guard{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important}
body.shop .stx-art-a .stx-art-image{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;object-position:center 58%!important;border-radius:0!important;filter:none!important}

/* 1.148 — Lock the hero art and copy to the same centered responsive frame. */
html body.shop .stx-hero:not(.stx-never){
  display:flex!important;flex-direction:row!important;direction:ltr!important;align-items:center!important;gap:28px!important;
  min-height:390px!important;padding:30px max(24px,calc((100vw - 1180px)/2))!important
}
html body.shop .stx-hero:not(.stx-never) .stx-art-a{
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  flex:0 1 47%!important;grid-column:auto!important;grid-row:auto!important;width:auto!important;height:330px!important;
  margin:0!important;transform:none!important;opacity:1!important
}
html body.shop .stx-hero:not(.stx-never) .stx-in{
  position:relative!important;inset:auto!important;flex:1 1 53%!important;width:auto!important;max-width:none!important;
  margin:0!important;direction:rtl!important;text-align:right!important
}
@media(max-width:980px){
  html body.shop .stx-hero:not(.stx-never){gap:18px!important;min-height:340px!important}
  html body.shop .stx-hero:not(.stx-never) .stx-art-a{height:285px!important}
}
@media(max-width:720px){
  html body.shop .stx-hero:not(.stx-never){display:flex!important;flex-direction:column!important;direction:rtl!important;align-items:stretch!important;gap:14px!important;min-height:0!important;padding:14px 12px 20px!important}
  html body.shop .stx-hero:not(.stx-never) .stx-art-a{flex:0 0 auto!important;width:100%!important;height:clamp(160px,53vw,235px)!important;margin:0!important}
  html body.shop .stx-hero:not(.stx-never) .stx-in{flex:0 0 auto!important;width:100%!important;max-width:none!important;margin:0!important;padding:18px 16px!important;text-align:center!important}
}


/* Store page finish: align promotion art, keep cards compact, and fill product image frames. */
html body.shop .stx-band{
  position:relative!important;display:grid!important;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr)!important;
  align-items:center!important;gap:clamp(18px,3vw,36px)!important;width:min(calc(100% - 32px),1180px)!important;
  min-height:0!important;margin:28px auto!important;padding:clamp(18px,3vw,32px)!important;
  overflow:hidden!important;border:1px solid #d7e8e4!important;border-radius:26px!important;
  background:linear-gradient(120deg,#e8f6f2 0%,#f7fbfa 56%,#dff2ed 100%)!important;
  box-shadow:0 14px 38px rgba(20,69,74,.08)!important;
}
html body.shop .stx-band .stx-ba{
  position:static!important;display:block!important;grid-column:1!important;grid-row:1!important;
  width:100%!important;height:auto!important;max-width:none!important;aspect-ratio:16/9!important;
  object-fit:cover!important;object-position:center!important;padding:0!important;margin:0!important;
  border-radius:18px!important;box-shadow:0 10px 28px rgba(16,67,76,.14)!important;
}
html body.shop .stx-band>div{
  position:relative!important;grid-column:2!important;grid-row:1!important;min-width:0!important;
  width:auto!important;margin:0!important;padding:0!important;text-align:right!important;
}
html body.shop .stx-band h2{
  margin:0 0 10px!important;color:#155066!important;font:800 clamp(22px,2.6vw,34px)/1.4 'Almarai',sans-serif!important;
}
html body.shop .stx-band p{margin:0 0 18px!important;color:#587078!important;font:400 15px/1.9 'Almarai',sans-serif!important}
html body.shop .stx-band a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;
  padding:10px 22px!important;border-radius:999px!important;background:#0b8581!important;color:#fff!important;
  font:800 14px/1.4 'Almarai',sans-serif!important;text-decoration:none!important;box-shadow:0 8px 20px rgba(11,133,129,.18)!important;
}
html body.shop .stx-band a:hover{background:#08706d!important;transform:translateY(-1px)!important}
html body.shop .stx-band .stx-bb{display:none!important}
html body.shop .sh-img{padding:0!important}
html body.shop .sh-img img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:0!important;border-radius:0!important}
html body.shop .pl-act.pl-compact{grid-template-columns:minmax(180px,30%) minmax(0,1fr)!important;gap:24px!important;align-items:center!important}
html body.shop .pl-act.pl-compact .pl-img{
  display:block!important;position:static!important;width:100%!important;height:auto!important;max-width:none!important;
  aspect-ratio:4/3!important;object-fit:cover!important;object-position:center!important;padding:0!important;margin:0!important;
  border-radius:16px!important;filter:none!important;opacity:1!important;background:transparent!important;
}
@media(max-width:720px){
  html body.shop .stx-band{
    grid-template-columns:minmax(0,1fr)!important;gap:16px!important;width:calc(100% - 24px)!important;
    margin:20px auto!important;padding:16px!important;border-radius:20px!important;
  }
  html body.shop .stx-band .stx-ba{grid-column:1!important;grid-row:1!important;aspect-ratio:16/9!important;border-radius:14px!important}
  html body.shop .stx-band>div{grid-column:1!important;grid-row:2!important;text-align:center!important}
  html body.shop .stx-band h2{font-size:23px!important}
  html body.shop .stx-band p{font-size:14px!important;margin-bottom:14px!important}
  html body.shop .pl-act.pl-compact{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;padding:16px!important}
  html body.shop .pl-act.pl-compact .pl-img{width:100%!important;max-width:none!important;aspect-ratio:16/8!important;max-height:200px!important}
}

/* Preserve lettering on full product covers despite legacy cover rules. */
html body.shop .sh-card .sh-img img{object-fit:contain!important;object-position:center!important}

/* Teacher storefront: rotating paid-product banners in the former top-image slot. */
body.shop .stx-art-a.tstore-featured-rotator{
  left:0!important;right:0!important;top:0!important;bottom:auto!important;
  width:100%!important;height:100%!important;max-width:none!important;
  display:block!important;overflow:hidden!important;filter:none!important;z-index:1!important;
  border-radius:inherit;pointer-events:auto!important;
}
.tstore-featured-track{position:absolute;inset:0}
.tstore-featured-slide{
  position:absolute;inset:0;display:block!important;overflow:hidden;opacity:0;
  pointer-events:none;text-decoration:none!important;color:#fff!important;
  transform:scale(1.025);transition:opacity .55s ease,transform 6s ease;
  background:linear-gradient(135deg,#d9f1e7,#eaf1fa 55%,#fae5d9);
}
.tstore-featured-slide.is-active{opacity:1;pointer-events:auto;transform:scale(1)}
.tstore-featured-slide img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;filter:none!important}
.tstore-slide-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,45,39,.84),rgba(7,45,39,.52) 45%,rgba(7,45,39,.06));}
.tstore-featured-slide[data-tone="kg"] .tstore-slide-shade{background:linear-gradient(90deg,rgba(63,62,37,.82),rgba(63,62,37,.48) 48%,rgba(63,62,37,.02))}
.tstore-featured-slide[data-tone="primary"] .tstore-slide-shade{background:linear-gradient(90deg,rgba(7,65,60,.84),rgba(7,65,60,.5) 48%,rgba(7,65,60,.03))}
.tstore-featured-slide[data-tone="middle"] .tstore-slide-shade{background:linear-gradient(90deg,rgba(49,43,79,.84),rgba(49,43,79,.5) 48%,rgba(49,43,79,.03))}
.tstore-featured-slide[data-tone="secondary"] .tstore-slide-shade{background:linear-gradient(90deg,rgba(19,49,63,.86),rgba(19,49,63,.52) 48%,rgba(19,49,63,.03))}
.tstore-slide-copy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;padding:clamp(20px,5vw,56px);max-width:min(68%,720px);direction:rtl;text-align:right;font-family:'Almarai',sans-serif}
.tstore-slide-kicker{display:inline-flex;align-items:center;gap:9px;padding:7px 13px;border:1px solid rgba(255,255,255,.38);border-radius:999px;background:rgba(255,255,255,.15);backdrop-filter:blur(9px);font-size:clamp(11px,1vw,14px);font-weight:800}
.tstore-slide-kicker i{font-style:normal;color:#a9ead4}
.tstore-slide-copy strong{font-size:clamp(20px,3vw,38px);line-height:1.35;font-weight:900;text-shadow:0 2px 14px rgba(0,0,0,.2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tstore-slide-price{font-size:clamp(13px,1.4vw,17px);font-weight:900}
.tstore-slide-cta{margin-top:3px;display:inline-flex;align-items:center;gap:9px;padding:10px 16px;border-radius:999px;background:#fff;color:#0f6b48!important;font-size:14px;font-weight:900;box-shadow:0 7px 22px rgba(0,0,0,.16)}
.tstore-rotator-controls{position:absolute;z-index:4;left:16px;bottom:14px;display:flex;align-items:center;gap:7px;padding:5px 8px;border:1px solid rgba(255,255,255,.30);border-radius:999px;background:rgba(13,48,44,.38);backdrop-filter:blur(9px);color:#fff;font:800 11px 'Almarai',sans-serif}
.tstore-rotator-controls button{min-width:30px;height:30px;border:0;border-radius:50%;background:rgba(255,255,255,.17);color:#fff;font:900 18px 'Almarai',sans-serif;cursor:pointer}
.tstore-rotator-controls button[data-tstore-pause]{width:auto;padding:0 10px;border-radius:999px;font-size:11px}
.tstore-rotator-controls button:focus-visible,.tstore-featured-slide:focus-visible{outline:3px solid #ffd36b;outline-offset:3px}
@media(max-width:760px){
  html body.shop .stx-hero.is-t{gap:0!important;padding:0!important;overflow:hidden!important}
  html body.shop .stx-art-a.tstore-featured-rotator{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;height:clamp(190px,58vw,285px)!important;min-height:0!important;flex:none!important;border-radius:24px 24px 0 0!important}
  html body.shop .stx-hero.is-t .stx-art-b{display:none!important}
  html body.shop .stx-hero.is-t .stx-in{margin:0!important;padding:20px 18px 22px!important}
  .tstore-slide-copy{max-width:84%;gap:8px;padding:20px}
  .tstore-slide-copy strong{font-size:clamp(18px,5.5vw,27px)}
  .tstore-rotator-controls{left:10px;bottom:9px}
}
@media(prefers-reduced-motion:reduce){
  .tstore-featured-slide{transition:none;transform:none}
}

@media(min-width:761px){body.shop .tstore-slide-copy{left:5%;right:auto;max-width:min(39%,560px);}}

/* Mobile subscription artwork: span the two-column product row without dominating the page. */
@media(max-width:720px){
  html body.shop .pl-act.pl-compact .pl-img{
    width:100%!important;max-width:none!important;aspect-ratio:2/1!important;
    max-height:148px!important;object-fit:cover!important;object-position:center 54%!important;
  }
}

body.shop .tstore-art-integrity{display:none!important;position:absolute!important;visibility:hidden!important}

/* Keep each catalog cover framed separately so its printed text does not collide with the banner copy. */
.tstore-featured-slide{background-image:linear-gradient(125deg,rgba(18,87,71,.36),rgba(17,72,69,.16)),url("img/store/tstore-hero-neutral-v1.avif");background-size:cover;background-position:center 56%}
.tstore-slide-shade{z-index:1;background:linear-gradient(90deg,rgba(8,48,42,.35),rgba(8,48,42,.67))}
.tstore-slide-art{position:absolute;z-index:2;left:4%;top:50%;transform:translateY(-50%);width:30%;height:78%;display:grid;place-items:center;overflow:hidden;padding:8px;border:1px solid rgba(255,255,255,.55);border-radius:16px;background:rgba(255,255,255,.30);backdrop-filter:blur(8px);box-shadow:0 12px 28px rgba(12,52,44,.18)}
.tstore-slide-art img{position:static!important;inset:auto!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:10px;filter:drop-shadow(0 8px 12px rgba(0,0,0,.18))!important}
.tstore-slide-copy{left:auto!important;right:5%!important;max-width:min(57%,430px);z-index:3}
@media(max-width:760px){.tstore-slide-art{left:3%;width:31%;height:70%;padding:5px;border-radius:13px}.tstore-slide-copy{left:auto!important;right:4%!important;max-width:60%;padding:14px 12px;gap:7px}.tstore-slide-copy strong{font-size:clamp(17px,4.8vw,23px)}}
