
/* Nashr Header Widget
   Uses your design tokens if loaded. Provides safe fallbacks.
*/
.nashr-el-header{ position: relative; z-index: 50; font-family: inherit; }
.nashr-el-header.is-sticky{ position: sticky; top: 0; }

.nashr-el-topbar{
  background: var(--color-material-theme-sys-light-primary, #766152);
  display: flex;
  align-items: center;
  padding: 12px 0;
  min-height: 70px;
}
.nashr-el-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.nashr-el-topbar-inner > *{ direction: rtl; }

.nashr-el-col{ display:flex; align-items:center; }
.nashr-el-col-login{ flex: 0 0 auto; }
.nashr-el-col-cart{ flex: 0 0 auto; justify-content:center; }
.nashr-el-col-search{ flex: 1 1 auto; }

.nashr-el-login-btn{
  display:inline-flex; align-items:center; gap: 10px;
  text-decoration:none;
  background:#fff;
  color: var(--color-material-theme-sys-light-primary, #766152);
  border-radius: 16px;
  padding: 12px 26px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.6);
}
.nashr-el-login-btn .nashr-el-ic{ display:inline-flex; }

.nashr-el-cart{
  position: relative;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color:#fff;
  padding: 6px 10px;
  border-radius: 12px;
  transition-duration: 0.4s;
}

a.nashr-el-cart:hover {
  color: #fff;
}
a.nashr-el-cart:hover .nashr-el-cart-texts {
  opacity: 0.5;
}
.nashr-el-cart-icbox{
  width: 36px; height:36px;
  border:1px solid rgba(255,255,255,.45);
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.nashr-el-cart-icbox span {
  display: flex;
}
.nashr-el-cart-texts{ display:inline-flex; flex-direction:column; line-height: 1.1; transition-duration: 0.4s }
.nashr-el-cart-title{ font-size:14px; padding-block:10px; font-weight:400; }
.nashr-el-cart-sub{ font-size:12px; opacity:0.8; }
.nashr-el-cart-badge{
  position:absolute;
  top:-6px; right:-6px;
  background: var(--color-material-theme-sys-light-error, #B3261E);
  color:#fff;
  border-radius: 999px;
  min-width:18px; height:18px;
  font-size:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
}

.nashr-el-search form{ width: min(640px, 100%); position: relative; }
.nashr-el-search .nashr-el-search-field{
  width:100%;
  height:48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color:#fff;
  padding: 0 52px 0 18px;
  outline:none;
}
.nashr-el-search .nashr-el-search-field::placeholder{ color: rgba(255,255,255,.95); }

.nashr-el-search button{
  display: block;
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height:36px;
  border:0;
  background: transparent;
  padding: 0 10px;
  color:#fff;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}


.nashr-el-search button span{ display:none; } /* hide label */
.nashr-el-search button .nashr-el-ic { display: block}
.nashr-el-navwrap{ padding: 0; }
.nashr-el-navpill{
  background:#fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  padding: 14px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.nashr-el-pill-menu{ flex: 1 1 auto; direction: rtl; }
.nashr-el-pill-logo{ flex: 0 0 auto; display:flex; align-items:center; justify-content:flex-start; }
.nashr-el-pill-logo img{ display:block; width:56px; height:auto; }

.nashr-el-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 22px;
  align-items:center;
  flex-wrap:wrap;
}
.nashr-el-menu a{
  text-decoration:none;
  color:#2e2a27;
  font-size:14px;
  font-weight:600;
}
.nashr-el-menu a:hover{ opacity:.85; }

@media (max-width: 768px){
  .nashr-el-topbar-inner{
    flex-direction:column;
    align-items:stretch;
    direction: rtl;
  }
  .nashr-el-col-search{ justify-content:stretch; }
  .nashr-el-search form{ width:100%; }
  .nashr-el-col-cart{ justify-content:flex-start; }
}


.nashr-el-burger{
  display:none;
  width:44px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#2e2a27;
}

/* ADD: mobile menu behavior */
@media (max-width: 768px){
  .nashr-el-navpill {
    flex-direction: column;
  }
  .nashr-el-burger{ display:inline-flex; }

  .nashr-el-pill-menu{
    width:100%;
    display:none;
    padding-top:12px;
    border-top:1px solid rgba(0,0,0,.08);
  }

  /* وقتی روی هدر کلاس is-menu-open میاد، منو باز میشه */
  .nashr-el-header.is-menu-open .nashr-el-pill-menu{ display:block; }

  .nashr-el-menu{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  /* زیرمنوها روی موبایل به صورت inline */
  .nashr-el-menu .sub-menu{
    display:block;
    position:static;
    box-shadow:none;
    padding:6px 0 0;
    margin:0;
    background:transparent;
  }
  .nashr-el-menu .sub-menu a{
    padding:6px 0;
    opacity:.9;
  }
}
