
/* Moraima Header & Mobile Navigation */
body.moraima-custom-header-active .site-header,
body.moraima-custom-header-active #masthead{display:none!important}
.moraima-site-header{position:relative;z-index:1000;background:#fff;color:#392a40;font-family:inherit}
.moraima-header-inner{width:min(100% - 48px,1440px);margin:0 auto;display:flex;align-items:center}
.moraima-topbar{background:#624a72;color:#fff;font-size:12px}
.moraima-topbar .moraima-header-inner{min-height:34px;justify-content:space-between;gap:20px}
.moraima-header-main{background:#fff;border-bottom:1px solid #eee8ef;box-shadow:0 3px 12px rgba(40,25,45,.045)}
.moraima-header-main>.moraima-header-inner{min-height:82px;gap:24px}
.moraima-header-logo{display:inline-flex;align-items:center;flex:0 0 auto;text-decoration:none!important;color:#392a40!important;font-size:var(--moraima-logo-desktop-font,27px)!important;font-weight:750;letter-spacing:-.7px}
.moraima-header-logo-img{display:block;width:auto;max-width:var(--moraima-logo-desktop-width,180px);max-height:52px;object-fit:contain}
.moraima-header-categories{position:relative;flex:0 0 auto}
.moraima-categories-trigger{display:flex;align-items:center;gap:9px;border:1px solid #e6dfe9;background:#fff;color:#624a72;border-radius:8px;padding:11px 13px;font-weight:600;cursor:pointer}
.moraima-categories-trigger svg{width:18px;height:18px}
.moraima-categories-panel{display:none;position:absolute;top:calc(100% + 10px);left:0;min-width:230px;max-height:65vh;overflow:auto;padding:10px;background:#fff;border:1px solid #eee8ef;border-radius:12px;box-shadow:0 12px 35px rgba(40,25,45,.14)}
.moraima-categories-panel.is-open{display:grid}
.moraima-categories-panel a,.moraima-drawer-categories a{padding:10px 12px;color:#51435a;text-decoration:none;border-radius:7px;font-size:14px}
.moraima-categories-panel a:hover,.moraima-drawer-categories a:hover{background:#f8f4f8;color:#624a72}
.moraima-header-navigation{flex:1;min-width:0}
.moraima-header-menu-list{display:flex;align-items:center;justify-content:center;gap:clamp(12px,1.6vw,27px);list-style:none;margin:0;padding:0}
.moraima-header-menu-list li{margin:0;padding:0}
.moraima-header-menu-list a{color:#392a40;text-decoration:none;font-size:14px;font-weight:500;white-space:nowrap}
.moraima-header-menu-list a:hover{color:#8e70a0}
.moraima-header-search{position:relative;flex:0 1 245px;min-width:170px}
.moraima-search-form{height:42px;display:flex;align-items:center;border:1px solid #d9cfdf;border-radius:999px;background:#fff;overflow:hidden}
.moraima-search-form input{width:100%;min-width:0;height:100%;padding:0 0 0 16px;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#392a40;font:inherit;font-size:14px}
.moraima-search-form button{height:40px;width:44px;flex:0 0 44px;border:0;background:transparent;color:#624a72;display:grid;place-items:center;cursor:pointer}
.moraima-search-form button svg{width:21px;height:21px}
.moraima-search-results{display:none;position:absolute;top:calc(100% + 9px);left:0;right:0;z-index:10020;background:#fff;border:1px solid #eee8ef;border-radius:13px;box-shadow:0 14px 35px rgba(40,25,45,.16);overflow:hidden}
.moraima-search-results.is-open{display:block}
.moraima-search-result-list{max-height:390px;overflow:auto}
.moraima-search-result{display:flex;align-items:center;gap:12px;padding:10px 12px;text-decoration:none!important;color:#392a40!important;border-bottom:1px solid #f1edf2}
.moraima-search-result:hover{background:#faf7fb}
.moraima-search-thumb{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center}
.moraima-search-thumb img{width:100%;height:100%;object-fit:contain}
.moraima-search-info{display:grid;gap:5px;min-width:0}
.moraima-search-info strong{font-size:12px;line-height:1.35;font-weight:600}
.moraima-search-info small{font-size:12px;color:#624a72;font-weight:700}
.moraima-search-all{display:block;padding:12px;text-align:center;color:#624a72;text-decoration:none;font-size:13px;font-weight:600}
.moraima-search-empty{margin:0;padding:17px;color:#817888;font-size:13px}
.moraima-header-actions{display:flex;align-items:center;gap:16px;flex:0 0 auto}
.moraima-header-actions>a{position:relative;display:flex;align-items:center;gap:5px;color:#624a72;text-decoration:none;font-size:12px;white-space:nowrap}
.moraima-header-actions svg{width:21px;height:21px}
.moraima-cart-count{position:absolute;top:-9px;right:-9px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:#624a72;color:#fff;font-size:10px;display:grid;place-items:center;font-weight:600}
.moraima-mobile-menu-trigger,.moraima-mobile-search-row,.moraima-mobile-drawer,.moraima-bottom-nav{display:none}
.moraima-header-categories .moraima-categories-panel{grid-template-columns:1fr}
.moraima-mobile-drawer.is-open{display:block}
.moraima-drawer-backdrop{position:fixed;inset:0;background:rgba(25,17,30,.42);z-index:10001}
.moraima-drawer-panel{position:fixed;z-index:10002;inset:0 auto 0 0;width:min(86vw,360px);background:#fff;padding:20px;overflow:auto;box-shadow:10px 0 35px rgba(0,0,0,.12)}
.moraima-drawer-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid #eee8ef}
.moraima-drawer-close{border:0;background:transparent;color:#624a72;padding:8px}
.moraima-drawer-close svg{width:23px;height:23px}
.moraima-drawer-categories{display:grid;gap:3px;padding:20px 0;border-bottom:1px solid #eee8ef}
.moraima-drawer-categories strong{padding:0 12px 8px;color:#392a40}
.moraima-drawer-menu .moraima-header-menu-list{display:grid;justify-content:stretch;gap:0;padding-top:10px}
.moraima-drawer-menu .moraima-header-menu-list a{display:block;padding:12px;color:#51435a}
@media(max-width:1100px) and (min-width:768px){
 .moraima-header-main>.moraima-header-inner{gap:14px}
 .moraima-header-logo{font-size:23px}
 .moraima-header-actions>a span{display:none}
 .moraima-header-menu-list{gap:12px}
 .moraima-header-menu-list a{font-size:13px}
 .moraima-header-search{flex-basis:190px}
}
@media(max-width:767px){
 body.moraima-custom-header-active{padding-bottom:82px}
 .moraima-topbar{display:none}
 .moraima-header-inner{width:100%;padding-left:16px;padding-right:16px}
 .moraima-header-main{position:sticky;top:0;z-index:1000}
 .moraima-header-main>.moraima-header-inner{min-height:66px;gap:12px}
 .moraima-mobile-menu-trigger{display:grid;place-items:center;flex:0 0 30px;width:30px;height:38px;padding:0;border:0;background:transparent;color:#624a72}
 .moraima-mobile-menu-trigger svg{width:25px;height:25px}
 .moraima-header-logo{font-size:var(--moraima-logo-mobile-font,23px)!important;flex:1;min-width:0}
 .moraima-header-logo-img{max-width:var(--moraima-logo-mobile-width,135px);max-height:38px}
 .moraima-header-categories,.moraima-header-navigation{display:none}
 .moraima-header-main>.moraima-header-inner>.moraima-header-search{display:none}
 .moraima-header-actions{gap:13px}
 .moraima-header-actions>a{display:grid;place-items:center}
 .moraima-header-actions>a span{display:none}
 .moraima-header-actions svg{width:22px;height:22px}
 .moraima-mobile-search-row{display:block;padding:0 16px 12px;background:#fff}
 .moraima-mobile-search-row .moraima-header-search{display:block;width:100%;min-width:0}
 .moraima-search-form{height:40px;background:#fbf9fc}
 .moraima-mobile-search-row .moraima-search-results{position:fixed;top:118px;left:12px;right:12px;max-height:60vh;overflow:auto}
 .moraima-bottom-nav{position:fixed;z-index:9990;left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;min-height:64px;padding:7px 5px;background:rgba(255,255,255,.97);border:1px solid rgba(98,74,114,.09);border-radius:22px;box-shadow:0 5px 25px rgba(44,30,50,.13);backdrop-filter:blur(12px)}
 .moraima-bottom-nav>a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;color:#817888;text-decoration:none;font-size:10px;line-height:1.1;font-weight:500}
 .moraima-bottom-nav>a svg{width:21px;height:21px}
 .moraima-bottom-nav>a.is-active{color:#624a72}
 .moraima-bottom-nav .moraima-cart-count{top:-5px;right:calc(50% - 20px)}
 .moraima-drawer-panel{padding-top:max(20px,env(safe-area-inset-top))}
}

/* 1.0.3: logo image dimensions are applied directly and independently on mobile */
#moraima-site-header .moraima-header-main .moraima-header-logo{flex:0 1 auto!important;min-width:0!important}
#moraima-site-header .moraima-header-main .moraima-header-logo-img{
 display:block!important;
 width:min(var(--moraima-logo-desktop-width,180px),100%)!important;
 max-width:var(--moraima-logo-desktop-width,180px)!important;
 min-width:0!important;
 height:auto!important;
 max-height:52px!important;
 object-fit:contain!important;
}
#moraima-site-header .moraima-header-main .moraima-header-wordmark{font-size:var(--moraima-logo-desktop-font,27px)!important}
@media(max-width:767px){
 #moraima-site-header .moraima-header-main .moraima-header-logo{flex:0 1 auto!important;min-width:0!important;max-width:var(--moraima-logo-mobile-width,135px)!important}
 #moraima-site-header .moraima-header-main .moraima-header-logo-img{
  width:min(var(--moraima-logo-mobile-width,135px),100%)!important;
  max-width:var(--moraima-logo-mobile-width,135px)!important;
  min-width:0!important;
  height:auto!important;
  max-height:38px!important;
  object-fit:contain!important;
 }
 #moraima-site-header .moraima-header-main .moraima-header-wordmark{font-size:var(--moraima-logo-mobile-font,23px)!important;line-height:1.1!important}
}


/* 1.0.4: stable mobile header alignment across themes */
@media(max-width:767px){
 #moraima-site-header .moraima-header-main>.moraima-header-inner{
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:10px!important;
 }
 #moraima-site-header .moraima-header-main>.moraima-header-inner>.moraima-mobile-menu-trigger{
  grid-column:1!important;
  grid-row:1!important;
  justify-self:start!important;
  width:30px!important;
  flex:none!important;
 }
 #moraima-site-header .moraima-header-main>.moraima-header-inner>.moraima-header-logo{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:center!important;
  align-self:center!important;
  flex:none!important;
  max-width:100%!important;
  margin:0!important;
 }
 #moraima-site-header .moraima-header-main>.moraima-header-inner>.moraima-header-actions{
  grid-column:3!important;
  grid-row:1!important;
  justify-self:end!important;
  display:flex!important;
  align-items:center!important;
  flex:none!important;
  gap:12px!important;
  margin:0!important;
 }
 #moraima-site-header .moraima-header-main>.moraima-header-inner>.moraima-header-actions>a{
  flex:none!important;
  width:22px!important;
  height:30px!important;
 }
 #moraima-site-header .moraima-header-main>.moraima-header-inner>.moraima-header-actions>a svg{
  width:22px!important;
  height:22px!important;
 }
}
