/* Sassy Organics — shared staging header, Update 33.
   Loaded by this staging theme's headers/template.html only.
   Existing Neto search, menus, currency and cart behaviour remain in place. */

#so-header-announcement,
#so-header-desktop,
#so-header-navigation,
#so-header-mobile,
#so-header-mobile-search,
#so-header-mobile-menu {
  font-family: halyard-text, 'Helvetica Neue', Arial, sans-serif;
  color: #3d403b;
}

#so-header-announcement {
  min-height: 34px;
  padding: 7px 0;
  background: #62665e;
  color: #fff;
}
#so-header-announcement .new-top-shipping,
#so-header-announcement .new-top-shipping p,
#so-header-announcement .new-top-shipping a,
#so-header-announcement .new-top-shipping span,
#so-header-announcement .new-top-shipping strong {
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: .06em;
}
#so-header-announcement .new-top-shipping p { margin: 0; }
#so-header-announcement a:hover { text-decoration: underline; }

#so-header-desktop { padding: 0; background: #fff; }
#so-header-desktop > .custom-container,
#so-header-navigation > .custom-container {
  width: calc(100% - 112px);
  max-width: 1520px;
  margin: 0 auto;
  padding: 0;
}
#so-header-desktop .so-header-main {
  min-height: 108px;
  display: grid;
  grid-template-columns: 225px minmax(240px, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
#so-header-desktop .so-header-logo,
#so-header-desktop .so-header-search { min-width: 0; }
#so-header-desktop .logo { text-align: left; }
#so-header-desktop .logo a { display: block; width: 225px; max-width: 100%; }
#so-header-desktop .logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 225px;
}

/* A quiet underlined search field, on the same row as the logo. */
#so-header-desktop .search-header { width: 100%; max-width: none; margin: 0; }
#so-header-desktop .search-header form,
#so-header-mobile-search .search-header form { margin: 0; }
#so-header-desktop .search-header .input-group,
#so-header-mobile-search .search-header .input-group {
  width: 100%;
  display: flex;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #62665e;
  border-radius: 0;
}
#so-header-desktop .search-header .input-group:focus-within,
#so-header-mobile-search .search-header .input-group:focus-within {
  box-shadow: 0 1px 0 #3d403b;
}
#so-header-desktop .search-header input.form-control,
#so-header-mobile-search .search-header input.form-control {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  height: 48px;
  padding: 0 10px 0 0;
  float: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: #3d403b;
  text-transform: none;
}
#so-header-desktop .search-header input::placeholder,
#so-header-mobile-search .search-header input::placeholder { color: #62665e; opacity: 1; }
#so-header-desktop .search-header .input-group-btn,
#so-header-mobile-search .search-header .input-group-btn { flex: 0 0 44px; width: 44px; }
#so-header-desktop .search-header .input-group-btn button,
#so-header-mobile-search .search-header .input-group-btn button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #3d403b;
}
#so-header-desktop .search-header button img,
#so-header-mobile-search .search-header button img { width: 21px; height: 21px; }

#so-header-desktop .so-header-utilities { display: flex; align-items: center; gap: 18px; }
#so-header-desktop .curreny-dropdown { flex: 0 0 auto; }
#so-header-desktop .curreny-dropdown ul.left-top-links { font-size: 13px; }
#so-header-desktop .top-dc > a { min-height: 44px; }
#so-header-desktop .top-dc > a > img { width: 10px; height: auto; }
#so-header-desktop .top-dc > a .currselect { margin-right: 7px; }
#so-header-desktop .currencydrop { left: auto; right: 0; border-radius: 0; }
#so-header-desktop .currencydrop a { min-height: 36px; }
#so-header-desktop .right-top-links { gap: 12px; }
#so-header-desktop .right-top-links > li { margin: 0 !important; }
#so-header-desktop .right-top-links > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
#so-header-desktop .top-icon { display: block; line-height: 1; }
#so-header-desktop .top-icon img { display: block; width: 23px; height: 23px; object-fit: contain; }
#so-header-desktop #header-cart > .dropdown-menu { left: auto; right: 0; border-radius: 0; max-width: calc(100vw - 32px); }

/* Keep mega menus outside overflow containers, so they can open fully. */
#so-header-navigation {
  position: relative;
  z-index: 100;
  background: #fff;
  border-top: 1px solid #e5e0d7;
  border-bottom: 1px solid #e5e0d7;
}
#so-header-navigation .navbar.navbar-default { min-height: 0; border: 0; border-radius: 0; background: transparent; }
#so-header-navigation .navbar-collapse {
  padding: 0;
  border: 0;
  box-shadow: none;
  overflow: visible !important;
  max-height: none;
}
#so-header-navigation ul.nav.navbar-nav.nav-categ.hidden-xs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 12px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  float: none;
  overflow: visible;
}
#so-header-navigation ul.nav-categ > li { padding: 0; float: none; }
#so-header-navigation .nav-categ > .menu-products { position: static; }
#so-header-navigation ul.nav.nav-categ > li > a {
  padding: 16px 0 !important;
  border-bottom: 0;
  background: transparent !important;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
}
#so-header-navigation ul.nav.nav-categ > li > a:hover,
#so-header-navigation ul.nav.nav-categ > li > a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}
#so-header-navigation .menu-products > .dropdown-menu {
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  border: 1px solid #e5e0d7;
  border-radius: 0;
  background: #fff;
}
#so-header-navigation .menu-products:focus-within > .dropdown-menu { display: block; }

/* The existing mobile menu/search handlers are retained. */
#so-header-mobile { background: #fff; border-bottom: 1px solid #e5e0d7; }
#so-header-mobile .logo img { max-width: 200px; height: auto; margin: 0 auto; }
#so-header-mobile-search { padding: 8px 22px 16px; background: #fff; }
#so-header-mobile-search input.form-control { font-size: 16px; }
#so-header-mobile-menu .second-menu-toggle img,
#so-header-mobile-menu .back-btn img { display: none; }
#so-header-mobile-menu .second-menu-toggle::after { content: '+'; font: 300 24px/1 halyard-text, Arial, sans-serif; }
#so-header-mobile-menu .back-btn::before { content: 'Back to '; font: inherit; }
#so-header-desktop a:focus-visible,
#so-header-desktop button:focus-visible,
#so-header-navigation a:focus-visible,
#so-header-mobile a:focus-visible,
#so-header-mobile-search button:focus-visible {
  outline: 2px solid #62665e;
  outline-offset: 4px;
}

@media (min-width: 992px) and (max-width: 1199px) {
  #so-header-desktop > .custom-container,
  #so-header-navigation > .custom-container { width: calc(100% - 64px); }
  #so-header-desktop .so-header-main { grid-template-columns: 190px minmax(240px, 1fr) auto; gap: 24px; }
  #so-header-desktop .so-header-utilities { gap: 12px; }
  #so-header-desktop .right-top-links { gap: 6px; }
  #so-header-navigation ul.nav.navbar-nav.nav-categ.hidden-xs { gap: 0 8px; }
  #so-header-navigation ul.nav.nav-categ > li > a { font-size: 11px; letter-spacing: .01em; }
}
@media (max-width: 991px) {
  #so-header-mobile .custom-container { padding-left: 20px; padding-right: 20px; }
  #so-header-mobile .custom-container > .row { margin: 0; }
  #so-header-mobile .custom-container > .row > div { padding: 0; }
  #so-header-mobile .logo { padding: 0 12px; }
  #so-header-mobile .right-top-links > li { margin-left: 10px !important; }
  #so-header-mobile .left-top-links > li { margin-right: 10px; }
  #so-header-mobile .top-icon { display: flex; align-items: center; min-height: 40px; }
}
@media (max-width: 380px) {
  #so-header-mobile .custom-container { padding-left: 14px; padding-right: 14px; }
  #so-header-mobile .left-top-links > li { margin-right: 8px; }
  #so-header-mobile .right-top-links > li { margin-left: 8px !important; }
  #so-header-mobile .logo { padding: 0 8px; }
  #so-header-mobile-search { padding-left: 16px; padding-right: 16px; }
  #so-header-mobile-search input.form-control { font-size: 14px; }
}

/* Update 35: search suggestions sit below the new header search row. */
#so-header-desktop,#so-header-mobile-search{position:relative;z-index:102;overflow:visible}
#so-header-desktop .search-header,#so-header-mobile-search .search-header,
#so-header-desktop .search-header form,#so-header-mobile-search .search-header form,
#so-header-desktop .search-header .input-group,#so-header-mobile-search .search-header .input-group{position:relative;overflow:visible}
#so-header-desktop .nsearchinput-pl.well,#so-header-mobile-search .nsearchinput-pl.well{position:absolute;top:calc(100% + 8px)!important;left:0;bottom:auto!important;margin:0!important;transform:none!important;width:100%;border-radius:0}
.so-header-suggestions.nsearchinput-pl.well{z-index:10010!important;background:#fff!important;border:1px solid #e5e0d7!important;box-shadow:0 8px 24px #3d403b1a;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
.so-header-suggestions.nsearchinput-pl.well ul{max-width:100%;box-sizing:border-box}
.so-header-suggestions.nsearchinput-pl.well a{white-space:normal}
/* Update 38: Sale is red; New and Offers use the normal menu text colour. */
#so-header-navigation ul.nav.nav-categ>li>a:is(.so-nav-new,.so-nav-offers,.so-nav-special),#so-header-mobile-menu a:is(.so-nav-new,.so-nav-offers,.so-nav-special){background:transparent!important;box-shadow:none!important;border:0!important}
#so-header-navigation ul.nav.nav-categ>li>a.so-nav-new,#so-header-mobile-menu a.so-nav-new{color:#3d403b!important}
#so-header-navigation ul.nav.nav-categ>li>a.so-nav-offers,#so-header-mobile-menu a.so-nav-offers{color:#3d403b!important}
#so-header-navigation ul.nav.nav-categ>li>a.so-nav-special,#so-header-mobile-menu a.so-nav-special{color:#b42318!important}
#so-header-desktop .so-header-wishlist{position:relative}
#so-header-desktop .so-header-wishlist-hint{display:none;position:absolute;top:100%;right:-45px;width:260px;max-width:85vw;padding:13px 16px;background:white;border:1px solid #e5e0d7;box-shadow:0 5px 15px #3d403b15;font:300 14px/1.45 halyard-text,Arial,sans-serif;color:#3d403b;z-index:103;text-transform:none;letter-spacing:0;text-align:left}
#so-header-desktop .so-header-wishlist:hover .so-header-wishlist-hint,#so-header-desktop .so-header-wishlist:focus .so-header-wishlist-hint{display:block}
