
/* Monjaz store gateway — audience choice with compact, balanced portal cards. */
html body.shop .mj-store-gateway{width:min(1120px,calc(100% - 48px));margin:0 auto;padding:42px 0 48px;font-family:Almarai,Tahoma,sans-serif;color:#173f42}
html body.shop .mjg-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:0 0 26px;padding:0;background:none;border:0;box-shadow:none;position:static}
.mjg-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#187c71;font-size:12px;font-weight:800;margin-bottom:10px}
.mjg-eyebrow::before{content:"";width:22px;height:2px;background:#58b49d;border-radius:2px}
html body.shop .mjg-intro h1{margin:0;color:#114f47!important;background:none!important;-webkit-text-fill-color:#114f47;font-size:clamp(27px,3vw,38px);line-height:1.45;font-weight:800;text-shadow:none!important}
.mjg-intro p{margin:10px 0 0;color:#657b79;font-size:14px;line-height:1.9}
.mjg-all{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:none;min-height:44px;padding:10px 16px;border:1px solid #ccdfd9;border-radius:12px;background:#fff;color:#176c62!important;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.mjg-all svg,.mjg-enter svg,.mjg-members a svg{width:18px;height:18px;flex:none}
.mjg-portals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
html body.shop .mjg-portal{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff;border:1px solid #d9e6e1;border-radius:22px;color:inherit;text-decoration:none;box-shadow:0 10px 30px rgba(15,74,62,.045);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.mjg-portal:hover{border-color:#75b4a4!important;box-shadow:0 14px 34px rgba(15,74,62,.10)!important;transform:translateY(-3px)}
.mjg-art{position:relative;height:196px;overflow:hidden;background:#edf4ee}
html body.shop .mjg-art img{display:block!important;width:100%!important;max-width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 54%!important;aspect-ratio:auto!important;padding:0!important;border-radius:0!important;transform:none!important}
.mjg-art::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(7,55,44,.25));pointer-events:none}
.mjg-art-label{position:absolute;z-index:1;inset:auto 18px 14px auto;padding:7px 11px;border:1px solid rgba(255,255,255,.8);border-radius:9px;background:rgba(255,255,255,.95);color:#185a4b;font-size:11px;font-weight:800}
.mjg-content{display:flex;flex-direction:column;flex:1;padding:23px}
.mjg-title{display:flex;align-items:center;gap:12px}
.mjg-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;background:#edf7f2;border:1px solid #d9ebe2;border-radius:14px;color:#1f806f}
.mjg-icon svg{width:24px;height:24px}
.mjg-kicker{display:block;margin-bottom:4px;color:#667571;font-size:10px;font-weight:700}
html body.shop .mjg-title h2{margin:0;color:#185b4e!important;font-size:24px;line-height:1.4;font-weight:800}
.mjg-content>p{margin:16px 0 14px;max-width:47ch;color:#647a73;font-size:12px;line-height:1.95}
.mjg-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:0;list-style:none}
.mjg-tags li{padding:6px 9px;border:1px solid #e1eae5;border-radius:7px;background:#fafcfb;color:#60776e;font-size:10px;font-weight:700}
.mjg-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:auto;padding:12px 0;border-top:1px solid #edf1ee;color:#677770;font-size:10px;line-height:1.7}
.mjg-meta b{color:#2d6755}
.mjg-enter{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:11px 15px;border-radius:11px;background:#176f60;color:#fff!important;font-size:13px;font-weight:800}
.mjg-portal:hover .mjg-enter{background:#125c50}
.mjg-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0;padding:18px 0;border-block:1px solid #dce7e2}
.mjg-benefits>div,.mjg-benefits>a{display:flex;align-items:center;gap:10px;min-width:0;color:inherit;text-decoration:none}
.mjg-benefits svg{flex:0 0 21px;width:21px;height:21px;color:#337e6d}
.mjg-benefits b,.mjg-benefits small{display:block}
.mjg-benefits b{font-size:11px;line-height:1.6;color:#315c4f}
.mjg-benefits small{margin-top:3px;font-size:9px;line-height:1.7;color:#67756d}
.mjg-members{display:flex;align-items:center;gap:16px;padding:20px 23px;border:1px solid #d9e8dd;border-radius:17px;background:#edf6ef}
.mjg-member-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:13px;background:#fff;color:#328269}
.mjg-member-icon svg{width:23px;height:23px}
html body.shop .mjg-members h2{margin:0 0 6px;font-size:16px;line-height:1.5;color:#225b43!important}
.mjg-members p{margin:0;font-size:11px;line-height:1.8;color:#5e7863}
.mjg-members a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;flex:none;margin-inline-start:auto;padding:10px 14px;border:1px solid #c4dccc;border-radius:10px;background:#fff;color:#25634b;font-size:11px;font-weight:800;text-decoration:none}
.mj-store-gateway a:focus-visible{outline:3px solid #248d7b;outline-offset:4px}
@media(max-width:980px){
 html body.shop .mj-store-gateway{width:calc(100% - 40px);padding-top:30px}
 .mjg-intro{gap:18px}.mjg-intro p{font-size:12px}
 .mjg-portals{gap:16px}.mjg-art{height:170px}.mjg-content{padding:19px}
 .mjg-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .mjg-members{padding:18px}
}
@media(max-width:600px){
 html body.shop .mj-store-gateway{width:calc(100% - 28px);padding:25px 0 32px}
 html body.shop .mjg-intro{display:block;margin-bottom:20px}
 html body.shop .mjg-intro h1{font-size:27px}
 .mjg-intro p{font-size:12px;margin-top:8px}
 .mjg-all{margin-top:14px;min-height:44px;font-size:11px}
 .mjg-portals{grid-template-columns:1fr;gap:18px}
 .mjg-art{height:156px}.mjg-content{padding:19px}
 .mjg-title h2{font-size:23px}.mjg-content>p{font-size:12px;margin:13px 0}
 .mjg-tags{margin-bottom:12px}.mjg-meta{font-size:10px}
 .mjg-benefits{padding:17px 0;margin:20px 0;gap:17px 12px}
 .mjg-benefits>div,.mjg-benefits>a{gap:8px}
 .mjg-benefits b{font-size:10px}.mjg-benefits small{font-size:9px}
 .mjg-members{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:16px}
 .mjg-member-icon{width:36px;height:36px}
 .mjg-members a{grid-column:1/-1;margin:3px 0 0;width:100%;box-sizing:border-box}
 html body.shop .mjg-members h2{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.mjg-portal{transition:none;transform:none!important}}

/* Custom editorial artwork for both storefronts. */
html body.shop .mjg-art{height:230px;background:#c8e1d3}
html body.shop .mjg-art img{object-position:center 55%}
html body.shop section.stx-hero.mj-store-hero{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 align-items:center!important;direction:rtl!important;gap:32px!important;
 width:calc(100% - 48px)!important;max-width:1120px!important;margin:30px auto 24px!important;
 padding:0!important;min-height:0!important;border-radius:24px!important;
 background:#f0f7f3!important;border:1px solid #dce9e0!important;overflow:hidden!important;
 box-shadow:none!important;
}
html body.shop section.stx-hero.mj-store-hero:before,
html body.shop section.stx-hero.mj-store-hero:after{display:none!important}
html body.shop section.stx-hero.mj-store-hero .mj-store-hero-art{
 grid-column:2!important;grid-row:1!important;position:relative!important;width:100%!important;height:340px!important;min-width:0;overflow:hidden
}
html body.shop section.stx-hero.mj-store-hero .mj-store-hero-art img{
 display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;filter:none!important;border-radius:0!important;opacity:1!important
}
html body.shop section.stx-hero.mj-store-hero .stx-in{
 grid-column:1!important;grid-row:1!important;position:relative!important;inset:auto!important;
 width:100%!important;max-width:none!important;margin:0!important;padding:28px 30px!important;
 background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:right!important;min-width:0!important
}
html body.shop section.stx-hero.mj-store-hero .stx-in h1{font-size:32px!important;color:#14533e!important;-webkit-text-fill-color:#14533e!important;text-shadow:none!important}
html body.shop section.stx-hero.mj-store-hero .stx-in .stx-sub{color:#277759!important}
html body.shop section.stx-hero.mj-store-hero .stx-in .stx-lead{color:#586f64!important;font-size:14px!important;line-height:1.9!important}
html body.shop section.stx-hero.mj-store-hero .stx-ft{justify-content:flex-start!important;flex-wrap:wrap!important}
@media(max-width:900px){
 html body.shop section.stx-hero.mj-store-hero{gap:10px!important}
 html body.shop section.stx-hero.mj-store-hero .stx-in{padding:22px!important}
 html body.shop section.stx-hero.mj-store-hero .mj-store-hero-art{height:320px!important}
}
@media(max-width:600px){
 html body.shop .mjg-art{height:210px}
 html body.shop section.stx-hero.mj-store-hero{display:flex!important;flex-direction:column!important;width:calc(100% - 28px)!important;margin:18px auto!important;gap:0!important}
 html body.shop section.stx-hero.mj-store-hero .mj-store-hero-art{height:auto!important;aspect-ratio:3/2!important;flex:none!important}
 html body.shop section.stx-hero.mj-store-hero .stx-in{padding:22px 20px!important;text-align:right!important}
 html body.shop section.stx-hero.mj-store-hero .stx-in h1{font-size:27px!important}
}

/* Keep the custom teacher hero as complete as the student hero. */
html body.shop section.stx-hero.mj-store-hero .stx-in h1{
 background:none!important;box-shadow:none!important;border:0!important;padding:0!important;border-radius:0!important;display:flex!important;align-items:center!important;gap:12px!important;width:auto!important
}
html body.shop section.stx-hero.mj-store-hero .stx-in .stx-sub,
html body.shop section.stx-hero.mj-store-hero .stx-in .stx-lead{display:block!important;visibility:visible!important}
html body.shop section.stx-hero.mj-store-hero .stx-in .stx-ft{display:flex!important;visibility:visible!important;gap:8px!important}
html body.shop section.stx-hero.mj-store-hero .stx-ft span{
 color:#315f4e!important;background:#fff!important;border:1px solid #d7e7de!important;border-radius:12px!important;padding:9px 10px!important;min-width:0!important;flex:0 1 auto!important;box-shadow:none!important;font-size:11px!important
}
html body.shop section.stx-hero.mj-store-hero .stx-ft span i{background:#e6f3ec!important;color:#1d7856!important}

/* Mobile portal cards: shorter artwork and no repeated tag chips, so both storefronts are reachable without a long scroll. */
@media(max-width:600px){
 html body.shop .mjg-art{height:168px}
 html body.shop .mjg-tags{display:none}
 html body.shop .mjg-portal .mjg-content{padding:18px}
 html body.shop .mjg-portal .mjg-content>p{margin:12px 0}
}

/* Premium storefront finish */
html body.shop .mj-store-gateway{padding:34px 0 58px!important}
html body.shop .mjg-intro{position:relative!important;overflow:hidden!important;isolation:isolate!important;align-items:center!important;min-height:220px!important;margin:0 0 24px!important;padding:36px 38px!important;border:1px solid #246e6250!important;border-radius:28px!important;background:radial-gradient(ellipse at 12% 5%,rgba(93,187,157,.28),transparent 34%),linear-gradient(120deg,#103f3c 0%,#145c50 56%,#187765 100%)!important;box-shadow:0 22px 48px rgba(12,62,53,.17)!important}
html body.shop .mjg-intro:after{content:"";position:absolute;z-index:-1;left:-55px;bottom:-135px;width:320px;height:320px;border:1px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 28px #ffffff08,0 0 0 58px #ffffff06}
html body.shop .mjg-eyebrow{color:#c8ead9!important;letter-spacing:.02em}
html body.shop .mjg-eyebrow:before{background:#efd28b!important}
html body.shop .mjg-intro h1{max-width:720px;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:clamp(29px,3.3vw,43px)!important;line-height:1.35!important;letter-spacing:-.025em}
html body.shop .mjg-intro p{max-width:680px;color:#d8e9e2!important;font-size:14px!important;line-height:2!important}
html body.shop .mjg-all{border-color:#f0dca5!important;background:#f3dfa7!important;color:#174c42!important;box-shadow:0 8px 22px #082c2630!important;transition:transform .2s ease,box-shadow .2s ease}
html body.shop .mjg-all:hover{transform:translateY(-2px);box-shadow:0 12px 26px #082c2640!important}
html body.shop .mjg-portals{gap:24px!important}
html body.shop .mjg-portal{border-color:#d5e4dd!important;border-radius:25px!important;box-shadow:0 14px 36px rgba(17,66,55,.08)!important}
html body.shop .mjg-art{height:clamp(190px,22vw,270px)!important;background:#e8f0e8!important}
html body.shop .mjg-art img{transition:transform .5s cubic-bezier(.2,.7,.2,1)!important}
html body.shop .mjg-portal:hover .mjg-art img{transform:scale(1.035)!important}
html body.shop .mjg-content{padding:24px 25px 25px!important}
html body.shop .mjg-title h2{font-size:25px!important;letter-spacing:-.02em}
html body.shop .mjg-tags li{border-radius:999px!important;padding:7px 11px!important;background:#f8fbf8!important}
html body.shop .mjg-enter{min-height:52px!important;border-radius:13px!important;background:linear-gradient(110deg,#176f60,#1b8370)!important;box-shadow:0 8px 18px #176f6025!important}
html body.shop .mjg-benefits{gap:10px!important;margin:25px 0!important;padding:18px!important;border:1px solid #dce9e2!important;border-radius:20px!important;background:linear-gradient(135deg,#fff,#f4f9f5)!important;box-shadow:0 8px 24px #17493a09!important}
html body.shop .mjg-benefits>div,html body.shop .mjg-benefits>a{padding:5px 7px!important}
html body.shop .mjg-benefits svg{color:#1a7968!important}
html body.shop .mjg-members{border-radius:20px!important;background:linear-gradient(110deg,#eff7ef,#e7f2eb)!important;box-shadow:0 8px 24px #17493a0a!important}
@media(max-width:760px){
 html body.shop .mj-store-gateway{width:min(100% - 28px,560px)!important;padding:22px 0 38px!important}
 html body.shop .mjg-intro{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:18px!important;min-height:0!important;margin-bottom:16px!important;padding:25px 21px!important;border-radius:22px!important}
 html body.shop .mjg-intro h1{font-size:clamp(27px,7vw,34px)!important}
 html body.shop .mjg-intro p{font-size:13px!important;line-height:1.9!important}
 html body.shop .mjg-all{align-self:flex-start!important;min-height:42px!important}
 html body.shop .mjg-portals{grid-template-columns:minmax(0,1fr)!important;gap:15px!important}
 html body.shop .mjg-art{height:clamp(165px,53vw,230px)!important}
 html body.shop .mjg-content{padding:18px!important}
 html body.shop .mjg-title h2{font-size:22px!important}
 html body.shop .mjg-content>p{font-size:12px!important}
 html body.shop .mjg-benefits{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:13px!important}
 html body.shop .mjg-benefits>div,html body.shop .mjg-benefits>a{align-items:flex-start!important;padding:6px 3px!important}
 html body.shop .mjg-members{align-items:flex-start!important;padding:16px!important}
}
@media(prefers-reduced-motion:reduce){html body.shop .mjg-portal,html body.shop .mjg-art img{transition:none!important}}


/* Store atmosphere: deeper Monjaz green with a quiet school-supply pattern. */
html body.shop.shop {
  background-color: #e5eee9 !important;
  background-image: radial-gradient(900px 520px at 8% 3%, rgba(67, 155, 127, .12), transparent 68%), radial-gradient(760px 420px at 96% 24%, rgba(21, 95, 77, .07), transparent 72%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23176D5D' stroke-opacity='.095' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 42c13-6 25-5 34 1v31c-9-6-21-7-34-1zM66 43c10-6 22-7 35-1v31c-13-6-25-5-35 1zM66 43v31'/%3E%3Cpath d='m154 35 11 5-21 46-11-5zM144 86l-10 7 1-12zM164 40l4-8 11 5-4 8'/%3E%3Cpath d='M38 155h49M38 162h34M38 169h42M38 176h25M127 145l9 20 9-20 9 20 9-20 9 20 9-20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 220px 220px !important;
  background-repeat: no-repeat, no-repeat, repeat !important;
}

/* Store background: strengthen the school icon pattern over legacy theme layers. */
html body.shop.shop { background-color: #dfeae4 !important; background-image: radial-gradient(900px 520px at 8% 3%, rgba(67,155,127,.12), transparent 68%), radial-gradient(760px 420px at 96% 24%, rgba(21,95,77,.07), transparent 72%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23176D5D' stroke-opacity='.12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 42c13-6 25-5 34 1v31c-9-6-21-7-34-1zM66 43c10-6 22-7 35-1v31c-13-6-25-5-35 1zM66 43v31'/%3E%3Cpath d='m154 35 11 5-21 46-11-5zM144 86l-10 7 1-12z'/%3E%3Cpath d='M38 155h49M38 162h34M38 169h42M38 176h25'/%3E%3C/g%3E%3C/svg%3E") !important; background-size: auto, auto, 220px 220px !important; background-repeat: no-repeat, no-repeat, repeat !important; }
/* Keep category controls compact on narrow storefronts. */
@media (max-width: 600px) {
  html body.shop .stx-cats { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; justify-content: flex-start !important; scroll-snap-type: x proximity; }
  html body.shop .stx-cats button { flex: 0 0 90px !important; scroll-snap-align: start; }
  html body.shop .mj-store-shortcuts { padding: 12px !important; }
}

@media (max-width: 600px) {
  html body.shop .stx-cats > .wrap { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scroll-snap-type: x proximity; }
  html body.shop .stx-cats > .wrap button { scroll-snap-align: start; }
}

/* Store action hierarchy. */
html body.shop.mj-commerce-v2 header.top .acts .mjs-btn,
html body.shop.mj-commerce-v2 .sh-card[data-id] .sh-actions .btn.pri,
html body.shop.mj-commerce-v2 .pl-act.pl-compact .pl-cta .pl-btn {
  background: linear-gradient(150deg, #175b4c, #104238) !important;
  color: #fff !important;
  border: 1px solid #104238 !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 8px rgba(16, 66, 56, .16);
}
html body.shop.mj-commerce-v2 .stx-cats > .wrap button,
html body.shop.mj-commerce-v2 #moreGames {
  background: #e7f0ed !important;
  color: #185347 !important;
  border: 1px solid #b9d2c9 !important;
  border-radius: 12px !important;
}
html body.shop.mj-commerce-v2 .stx-cats > .wrap button > span {
  background: #d4e7df !important;
  color: #185347 !important;
}
html body.shop.mj-commerce-v2 .stx-cats > .wrap button:is(:hover, .on, [aria-pressed="true"]),
html body.shop.mj-commerce-v2 #moreGames:hover {
  background: #185347 !important;
  color: #fff !important;
  border-color: #185347 !important;
}
html body.shop.mj-commerce-v2 :is(.mjs-btn, .pl-btn, #moreGames, .sh-actions .btn, .stx-cats button):focus-visible {
  outline: 3px solid #b88445 !important;
  outline-offset: 3px;
}

/* Store filter controls. */
html body.shop.mj-commerce-v2 .stx-side h2[role="button"] {
  background: #16483e !important;
  color: #fff !important;
  border-radius: 10px !important;
}
html body.shop.mj-commerce-v2 .stx-side h2[role="button"] svg {
  color: inherit !important;
}
html body.shop.mj-commerce-v2 .stx-side .stx-sort button {
  background: #edf4f0 !important;
  color: #18483e !important;
  border: 1px solid #b7d1c6 !important;
  border-radius: 9px !important;
}
html body.shop.mj-commerce-v2 .stx-side .stx-sort button:is(.on, [aria-pressed="true"]) {
  background: #16483e !important;
  color: #fff !important;
  border-color: #16483e !important;
}
html body.shop.mj-commerce-v2 .stx-side :is(h2[role="button"], .stx-sort button):focus-visible {
  outline: 3px solid #b88445 !important;
  outline-offset: -4px;
}
