/* EMDAD V6.2 desktop alignment to MADAR reference - Nov 2026
   Desktop only: mobile 1050px and below are intentionally left unchanged. */
.em62-main-search,.em62-menu-caption,.em62-offer-chip,.em62-top-links,.em62-top-shipping{display:none}
@media(min-width:1051px){
  body.em6-active{background:#fff}
  body.em6-active .em6-topbar{background:#005331!important}
  body.em6-active .em6-topbar-inner{width:min(1450px,calc(100% - 54px));max-width:1450px;min-height:40px;gap:22px;direction:rtl}
  body.em6-active .em62-top-links{display:flex;align-items:center;gap:23px;order:1;margin-inline-end:0}
  body.em6-active .em62-top-links a{color:#fff;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}
  body.em6-active .em6-topbar-inner>a{order:0}
  body.em6-active .em62-top-shipping{display:block;order:2;margin-inline-start:auto;margin-inline-end:0;color:#e7f7ed;white-space:nowrap;font-size:12px}
  body.em6-active .em6-top-sar{display:none!important}
  body.em6-active .em6-header{box-shadow:none!important;background:#fff!important}
  body.em6-active .em6-nav{width:min(1450px,calc(100% - 54px));height:110px;display:grid!important;grid-template-columns:150px minmax(180px,230px) minmax(230px,1fr) 112px 141px;gap:20px;align-items:center;direction:rtl}
  body.em6-active .em6-menu{order:unset!important;justify-self:stretch}
  body.em6-active .em6-menu>summary{width:100%!important;height:53px!important;display:flex!important;align-items:center;justify-content:center;gap:12px;border-radius:999px!important;padding:0 14px!important;font-size:15px;background:#fff}
  body.em6-active .em6-menu>summary svg{width:22px;height:22px}
  body.em6-active .em62-menu-caption{display:inline;font-size:16px;color:#111;font-weight:900}
  body.em6-active .em6-brand{order:unset!important;margin:0!important;min-width:0;justify-self:stretch;display:flex;flex-direction:row;gap:9px}
  body.em6-active .em6-brand-icon{width:42px;height:42px}
  body.em6-active .em6-brand-type{align-items:flex-start}
  body.em6-active .em6-brand-type strong{font-size:21px;letter-spacing:-.7px;color:#075338}
  body.em6-active .em6-brand-type small{font-size:9px}
  body.em6-active .em62-main-search{display:flex;align-items:stretch;flex-direction:row;height:53px;min-width:0;width:100%;border:1px solid #dce4dc;border-radius:999px;background:#fff;overflow:hidden;padding:4px 5px 4px 5px;box-shadow:0 2px 12px #002a1808}
  body.em6-active .em62-main-search input{background:transparent;flex:1;min-width:0;border:0;outline:none;padding:0 20px;color:#26362c;text-align:right;font-size:14px}
  body.em6-active .em62-main-search button{flex:none;border:0;border-radius:999px;background:#005936;color:#fff;min-width:66px;font-size:14px;font-weight:800;padding:0 18px}
  body.em6-active .em6-currency{order:unset!important;justify-self:center;height:51px;width:111px;justify-content:center;border-radius:999px;font-size:13px}
  body.em6-active .em6-cart{order:unset!important;justify-self:stretch;border-radius:999px;height:59px;min-width:0;width:100%;box-shadow:none;background:#efb035;gap:8px}
  body.em6-active .em6-cart::before{content:'السلة';font-size:14px;font-weight:900;order:1}
  body.em6-active .em6-cart svg{order:2}
  body.em6-active .em6-cart span{order:0}
  body.em6-active .em6-desktop-bar{width:100%;max-width:none;min-height:57px;padding:0 max(27px,calc((100vw - 1450px)/2));display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #e9ede9;border-bottom:1px solid #e9ede9;direction:rtl;background:#fff}
  body.em6-active .em6-desktop-bar .em6-search{display:none!important}
  body.em6-active .em6-desktop-bar nav{display:flex;justify-content:flex-start;align-items:center;flex-wrap:nowrap;gap:27px;white-space:nowrap;font-size:14px;font-weight:700;color:#383d3a}
  body.em6-active .em6-desktop-bar nav a:first-child{font-weight:950;color:#07563b}
  body.em6-active .em62-offer-chip{display:inline-flex;align-items:center;justify-content:center;flex:none;max-width:min(510px,42vw);padding:6px 12px;border-radius:999px;border:1px solid #f0d7a2;background:#fff2d9;color:#2b2b2b;font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.em6-active .reference-layout{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;min-height:0!important}
  body.em6-active .reference-layout>.reference-sidebar{display:none!important}
  body.em6-active .reference-layout>.reference-content{display:block!important;width:100%!important;max-width:100%!important;overflow:visible!important;min-width:0!important;margin:0!important;padding:0!important}
  body.em6-active .reference-content>.em6-hero{display:block!important;margin:0!important;padding:62px 0 42px!important;background:#fff!important}
  body.em6-active .em6-hero>.em6-hero-card{width:min(1450px,calc(100% - 58px))!important;max-width:1450px!important;min-height:660px!important;margin:0 auto!important;border-radius:36px!important;border:1px solid #e4e7e2!important;
    background-image:linear-gradient(90deg,rgba(255,255,255,.11) 0%,rgba(255,255,255,.48) 36%,rgba(255,255,255,.97) 79%,rgba(255,255,255,.98) 100%),var(--em62-hero-src),url('em6-solar.svg')!important;
    background-size:cover!important;background-position:center,center,center!important;box-shadow:0 16px 40px #163b2210!important}
  body.em6-active .em6-hero-card>.em6-hero-content{width:min(670px,100%)!important;max-width:670px!important;margin-right:0!important;margin-left:auto!important;padding:84px 80px 30px 20px!important;direction:rtl;text-align:right}
  body.em6-active .em6-hero-pill{font-size:14px;padding:9px 13px}
  body.em6-active .em6-hero h1{font-size:clamp(53px,4.1vw,75px)!important;line-height:1.06!important;letter-spacing:-1.3px!important;margin:23px 0 25px!important;color:#15191a!important}
  body.em6-active .em6-hero p{font-size:17px!important;line-height:1.92!important;max-width:600px!important;margin:0 0 26px!important;color:#3d4142!important}
  body.em6-active .em6-hero-actions{gap:12px;justify-content:flex-start;margin:12px 0 22px}
  body.em6-active .em6-hero-actions a{font-size:17px;min-height:55px;padding:12px 22px}
  body.em6-active .em6-hero-features{gap:10px;max-width:600px}
  body.em6-active .reference-content .container{max-width:1450px}
}
@media(min-width:1051px) and (max-width:1260px){
 body.em6-active .em6-nav{grid-template-columns:133px 180px minmax(190px,1fr) 100px 108px;gap:12px}
 body.em6-active .em6-brand-type strong{font-size:18px}
 body.em6-active .em6-desktop-bar nav{gap:14px;font-size:12px}
 body.em6-active .em62-offer-chip{font-size:11px;max-width:33vw}
 body.em6-active .em6-hero-card>.em6-hero-content{padding-right:40px!important}
}
