/* EMDAD SOLAR V6 - November 2026. New mobile-first header + dedicated photo hero.
   Scoped to em6-* selectors. Previous store, cart, data and admin functionality remain intact. */
body.em6-active .top-strip,body.em6-active .site-header,body.em6-active .v4-announcement,body.em6-active .v4-identitybar{display:none!important}
body.em6-active .reference-content .promo-bar{display:none!important}
body.em6-active{font-family:Cairo,Tahoma,Arial,sans-serif;background:#fff;overflow-x:hidden}
.em6-topbar{background:#00502e;color:#fff}
.em6-topbar-inner{min-height:35px;width:min(1490px,calc(100% - 40px));margin:auto;display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:12px}
.em6-topbar-inner>a{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;color:#fff;font-size:12px}
.em6-topbar-inner svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.7;fill:none}
.em6-top-sar{font-weight:800;white-space:nowrap}
.em6-header{background:#fff;border-bottom:1px solid #e9eae8;position:relative;z-index:110;box-shadow:0 2px 13px rgba(5,52,34,.05)}
.em6-nav{width:min(1490px,calc(100% - 36px));height:76px;margin:auto;display:flex;flex-direction:row;gap:14px;align-items:center;justify-content:space-between;direction:rtl}
.em6-menu{order:0;position:relative;flex:0 0 auto;z-index:131}
.em6-menu>summary{width:49px;height:49px;display:grid;place-items:center;list-style:none;cursor:pointer;border:1px solid #e1e5e1;border-radius:50%;background:#fff;color:#111b16}
.em6-menu>summary::-webkit-details-marker{display:none}
.em6-menu>summary svg{width:26px;height:26px;fill:none;stroke:#111b16;stroke-width:2.1;stroke-linecap:round}
.em6-menu[open]>summary{background:#f0f8f3}
.em6-menu-panel{position:absolute;top:calc(100% + 11px);right:0;width:min(320px,calc(100vw - 24px));background:#fff;box-shadow:0 12px 38px rgba(0,33,18,.22);border:1px solid #dfe8e1;border-radius:15px;padding:12px;max-height:75vh;overflow:auto;text-align:right}
.em6-menu-panel nav{display:flex;flex-direction:column}
.em6-menu-panel nav a{font-size:13px;font-weight:750;color:#244437;padding:7px 9px;border-radius:8px;border-bottom:1px solid #edf1ee;display:flex;justify-content:space-between;gap:12px}
.em6-menu-panel nav a:hover{background:#eff7f2}
.em6-menu-panel nav a small{color:#668276}
.em6-menu-panel p{font-weight:900;color:#00573f;margin:16px 9px 7px}
.em6-brand{order:1;display:flex;align-items:center;gap:10px;min-width:0;margin-inline-end:auto;white-space:nowrap}
.em6-brand-icon{width:43px;height:43px;flex:none}
.em6-brand-type{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.em6-brand-type strong{font-weight:950;line-height:1.25;letter-spacing:-.4px;font-size:clamp(15px,2vw,24px);color:#07553d}
.em6-brand-type small{font-size:10px;color:#89908a;line-height:1.6}
.em6-currency{order:2;display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border-radius:999px;border:1px solid #e2e6e3;background:#fff;height:45px;color:#1c211e;white-space:nowrap;direction:ltr;font-weight:900}
.em6-currency svg{height:14px;width:14px;stroke:#43554c;stroke-width:2;fill:none}
.em6-cart{order:3;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:10px;min-width:82px;height:51px;padding:7px 12px;border-radius:999px;background:linear-gradient(120deg,#edb943,#e6a32b);color:#14251a;box-shadow:0 5px 12px rgba(218,150,25,.14)}
.em6-cart svg{height:24px;width:24px;stroke:currentColor;stroke-width:1.75;fill:none}
.em6-cart span{min-width:22px;height:22px;padding:2px 6px;border-radius:99px;display:grid;place-items:center;line-height:1.2;font-size:11px;background:#05603e;color:#fff;font-weight:900}
.em6-desktop-bar{border-top:1px solid #edf1ef;width:min(1490px,calc(100% - 36px));margin:auto;padding:10px 0;display:flex;flex-direction:row;gap:28px;align-items:center}
.em6-desktop-bar nav{display:flex;flex-wrap:wrap;gap:20px;font-size:13px;font-weight:800;color:#1b5b45}
.em6-search{margin-inline-start:auto;display:flex;align-items:stretch;min-width:240px;width:min(400px,35vw);height:43px;border:1px solid #d2e3d8;border-radius:13px;overflow:hidden}
.em6-search input{min-width:0;flex:1;background:#fcfefd;border:0;outline:none;padding:7px 13px}
.em6-search button{background:#065a40;color:white;border:0;padding:0 19px;font-weight:800}
/* The hero is now a single real composition, rather than text and photo in separate columns. */
.em6-hero{padding:29px 0 30px;background:#fff!important;color:#18211b}
.em6-hero-card{position:relative;isolation:isolate;width:min(1190px,calc(100% - 40px));margin:auto;min-height:520px;overflow:hidden;border-radius:35px;border:1px solid #e6e9e4;background-color:#e9ece6;background-image:linear-gradient(90deg,rgba(255,255,255,.26) 0%,rgba(255,255,255,.70) 36%,rgba(255,255,255,.97) 100%),var(--em6-hero-src),url('em6-solar.svg');background-size:cover; background-position:center,center,center;box-shadow:0 14px 38px rgba(23,70,43,.08)}
.em6-hero-content{position:relative;z-index:1;width:min(690px,100%);margin-right:0;margin-left:auto;padding:38px 36px 26px;text-align:right}
.em6-hero-pill{border:1px solid #e9d4a7;background:rgba(255,255,255,.94);color:#064932;border-radius:999px;padding:9px 13px;display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:900;box-shadow:0 4px 13px rgba(160,139,70,.1)}
.em6-gold-dot{height:10px;width:10px;display:inline-block;flex:0 0 auto;border-radius:50%;background:#e6b33d}
.em6-hero h1{margin:21px 0 18px;color:#151515;font-weight:950;font-size:clamp(38px,4.2vw,64px);line-height:1.12;letter-spacing:-1.2px}
.em6-hero h1 span{display:block}
.em6-hero h1 .em6-title-green{color:#005632}
.em6-hero p{margin:0 0 20px;color:#434a44;font-size:clamp(14px,1.5vw,19px);line-height:1.92;max-width:630px}
.em6-hero-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:12px 0 26px}
.em6-hero-actions a{display:inline-flex;align-items:center;justify-content:center;gap:12px;text-align:center;font-weight:950;border-radius:999px;min-height:49px;padding:9px 27px;font-size:16px;line-height:1.5}
.em6-primary{background:#006038;color:#fff;box-shadow:0 6px 20px rgba(0,90,50,.14)}
.em6-secondary{border:2px solid #bed5c7;background:rgba(255,255,255,.93);color:#055637}
.em6-hero-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:20px}
.em6-hero-features span{display:grid;place-items:center;text-align:center;background:rgba(255,255,255,.91);border-radius:999px;min-height:48px;padding:10px 12px;font-size:13px;font-weight:900;color:#242b25;box-shadow:0 4px 13px rgba(19,65,35,.08)}
body.em6-active .reference-content .section{padding-top:38px;padding-bottom:38px}
body.em6-active .reference-content .category-grid{gap:12px}
body.em6-active .reference-content .category-tile{background:#fff;border-radius:20px;box-shadow:0 4px 15px rgba(1,46,26,.035)}
body.em6-active .reference-content .article-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:17px!important;align-items:stretch}
body.em6-active .reference-content .article-card{display:flex!important;flex-direction:column!important;background:#fff!important;border:1px solid #e2e8e3!important;border-radius:17px!important;overflow:hidden!important;box-shadow:0 4px 22px rgba(24,67,45,.07)!important;min-width:0!important;min-height:290px}
body.em6-active .reference-content .article-card>img{display:block!important;height:180px!important;width:100%!important;object-fit:cover!important;flex:0 0 auto;background:#f0f5ef}
body.em6-active .reference-content .article-card>div{display:flex!important;flex-direction:column!important;padding:15px!important;gap:7px!important}
body.em6-active .reference-content .article-card h3{margin:0!important;font-size:17px!important;line-height:1.55!important;color:#16513c}
body.em6-active .reference-content .article-card p{font-size:13px!important;line-height:1.7!important;color:#697b71}
body.em6-active .reference-content .article-card b{color:#116443;font-size:13px}
body.em6-active .footer.v4-footer{padding-top:36px}
body.em6-active .footer.v4-footer .footer-grid{gap:25px}
@media(max-width:970px){.em6-desktop-bar{display:none}.em6-nav{height:76px}.em6-hero-card{min-height:500px}.em6-hero-content{max-width:600px}.em6-hero h1{font-size:clamp(35px,5vw,53px)}}
@media(max-width:700px){
 .em6-topbar-inner{width:calc(100% - 36px);justify-content:flex-end;height:33px;min-height:33px}
 .em6-topbar-inner>a{font-size:11px}
 .em6-top-sar{display:none}
 .em6-nav{width:calc(100% - 25px);height:75px;gap:6px}
 .em6-menu>summary{width:43px;height:43px}
 .em6-menu>summary svg{width:25px;height:25px}
 .em6-brand{gap:3px;flex:1 1 auto;margin-inline-end:0;justify-content:center}
 .em6-brand-icon{height:32px;width:32px}
 .em6-brand-type strong{font-size:clamp(11px,3.1vw,17px);letter-spacing:-.45px}
 .em6-brand-type small{display:none}
 .em6-currency{height:44px;padding:6px 9px;gap:4px;font-size:12px}
 .em6-currency svg{height:12px;width:12px}
 .em6-cart{min-width:69px;height:49px;gap:7px;padding:7px 10px}
 .em6-cart svg{height:21px;width:21px}
 .em6-hero{padding:22px 0 25px!important}
 .em6-hero-card{width:calc(100% - 36px);min-height:466px;border-radius:30px;background-image:linear-gradient(to bottom,rgba(255,255,255,.98) 0%,rgba(255,255,255,.96) 24%,rgba(255,255,255,.78) 49%,rgba(255,255,255,.31) 77%,rgba(255,255,255,.10) 100%),var(--em6-hero-src),url('em6-solar.svg');background-size:cover;background-position:center,center bottom,center bottom}
 .em6-hero-content{width:100%;padding:18px 15px 19px}
 .em6-hero-pill{font-size:12px;padding:7px 10px;gap:7px;max-width:100%;line-height:1.45}
 .em6-gold-dot{width:8px;height:8px}
 .em6-hero h1{font-size:clamp(31px,9.3vw,40px);letter-spacing:-.5px;line-height:1.08;margin:24px 0 19px}
 .em6-hero p{font-size:13.7px;line-height:1.8;margin:0 0 17px}
 .em6-hero-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:18px 0 18px}
 .em6-hero-actions a{min-height:42px;font-size:14px;padding:7px 21px;min-width:170px}
 .em6-hero-features{gap:7px;margin-top:14px}
 .em6-hero-features span{font-size:10px;min-height:42px;padding:7px 5px}
 body.em6-active .reference-content .trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.em6-active .reference-content .section{padding:33px 0!important}
 body.em6-active .reference-content .section-heading{margin-bottom:16px;gap:8px}
 body.em6-active .reference-content .section-heading h2{font-size:24px!important}
 body.em6-active .reference-content .section-heading p{font-size:12px!important;line-height:1.7}
 body.em6-active .reference-content .article-grid{grid-template-columns:1fr!important;gap:14px!important}
 body.em6-active .reference-content .article-card>img{height:170px!important}
 body.em6-active .reference-content .article-card h3{font-size:16px!important}
 body.em6-active .footer.v4-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:17px!important}
 body.em6-active .footer.v4-footer .v4-footer-about{grid-column:1 / -1}
 body.em6-active .footer.v4-footer .footer-grid a,body.em6-active .footer.v4-footer .footer-grid p{font-size:12px;line-height:1.8}
 body.em6-active .footer.v4-footer .footer-grid h3{font-size:15px}
}
@media(max-width:380px){.em6-nav{width:calc(100% - 20px);gap:4px}.em6-brand-icon{width:29px}.em6-brand-type strong{font-size:11px}.em6-currency{font-size:11px;padding:6px}.em6-cart{min-width:61px;gap:5px;padding:6px}.em6-hero-card{width:calc(100% - 30px);min-height:460px}.em6-hero-content{padding:16px 13px 18px}.em6-hero h1{font-size:34px}.em6-hero p{font-size:12.7px}}

/* ===== V6.1 desktop layout repair =====
   Fixes the desktop-only white void caused by an unstyled reference-sidebar
   occupying a full-width block before the hero. Does not change mobile hero. */
@media (min-width: 1051px) {
  body.em6-active .reference-layout {
    display: grid !important;
    grid-template-columns: minmax(218px, 245px) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    direction: rtl !important;
  }
  body.em6-active .reference-layout > .reference-sidebar {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    height: 100% !important;
    align-self: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border-left: 1px solid #e5ece7 !important;
  }
  body.em6-active .reference-sidebar > .reference-sidebar-inner {
    position: sticky !important;
    top: 12px !important;
    width: 100% !important;
    padding: 22px 13px !important;
    max-height: calc(100vh - 24px) !important;
    overflow-y: auto !important;
  }
  body.em6-active .reference-sidebar h3 {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #104632 !important;
    margin: 0 8px 13px !important;
    text-align: right !important;
  }
  body.em6-active .reference-sidebar .ref-categories {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
  }
  body.em6-active .reference-sidebar .ref-categories > a {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    color: #345347 !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    text-align: right !important;
    padding: 8px 9px !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f3f0 !important;
    white-space: normal !important;
  }
  body.em6-active .reference-sidebar .ref-categories a small {
    flex: none !important;
    min-width: 27px !important;
    padding: 2px 5px !important;
    border-radius: 5px !important;
    background: #e9f4ed !important;
    color: #337252 !important;
    font-size: 10px !important;
    text-align: center !important;
  }
  body.em6-active .reference-sidebar .ref-side-links {
    display: grid !important;
    gap: 5px !important;
    padding-top: 14px !important;
    margin-top: 15px !important;
    border-top: 1px solid #e5ece7 !important;
  }
  body.em6-active .reference-sidebar .ref-side-links > a {
    display: block !important;
    padding: 8px 9px !important;
    color: #35634f !important;
    font-size: 12.5px !important;
    text-decoration: none !important;
  }
  body.em6-active .reference-layout > .reference-content {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  body.em6-active .reference-content > .em6-hero {
    display: block !important;
    padding: 24px 22px 32px !important;
    margin: 0 !important;
  }
  body.em6-active .em6-hero > .em6-hero-card {
    display: block !important;
    width: 100% !important;
    max-width: 1190px !important;
    min-height: 505px !important;
    margin: 0 auto !important;
    border-radius: 29px !important;
  }
  body.em6-active .em6-hero-card > .em6-hero-content {
    width: min(690px, 100%) !important;
    margin: 0 0 0 auto !important;
    padding: 36px 34px 24px !important;
  }
}
@media (max-width: 1050px) {
  body.em6-active .reference-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  body.em6-active .reference-layout > .reference-sidebar { display: none !important; }
  body.em6-active .reference-layout > .reference-content {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}
