/* Shared Modern Store Header */
.store-header-wrap { position: sticky; top: 0; z-index: 1000; }
.store-header-wrap--unified .modern-store-header { display: none; }

/* Unified nav bar: logo + links + search/cart in one row */
.store-unified-nav {
  background: var(--section-nav-bg, var(--primary, #2ca66a));
  color: var(--section-nav-text, #fff);
}
.store-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 6px 0;
}
.brand-logo--nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: auto;
  max-width: min(220px, 38vw);
  height: 48px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-decoration: none;
  box-shadow: none;
}
.brand-logo--nav img {
  display: block;
  width: auto;
  max-width: min(220px, 38vw);
  height: 48px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}
.brand-logo--nav .brand-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--section-nav-text, #fff);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-nav-links-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.store-nav-links {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.store-nav-links::-webkit-scrollbar { display: none; }
.store-nav-links li a {
  display: block;
  padding: 10px 14px;
  color: var(--section-nav-text, #fff);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s;
}
.store-nav-links li a:hover,
.store-nav-links li a.active { background: rgba(255,255,255,.15); }
.store-header-actions--nav .store-header-icon-btn {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.store-header-actions--nav .store-header-icon-btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.45);
  color: #fff;
  transform: translateY(-1px);
}
.store-header-actions--nav .store-header-icon-btn .cart-badge { border-color: var(--section-nav-bg, #2ca66a); }
.store-header-wrap--unified .store-unified-nav.cloth-nav-bar,
.store-header-wrap--unified .store-unified-nav.jewelry-nav-bar,
.store-header-wrap--unified .store-unified-nav.elec-cat-nav {
  background: var(--section-nav-bg, var(--primary, #2ca66a));
  border: none;
}
.store-header-wrap .store-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
}

.store-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.store-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.store-header-icon-btn {
  position: relative; width: 44px; height: 44px; border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px; background: #fff; color: #222; display: inline-flex;
  align-items: center; justify-content: center; font-size: 17px; cursor: pointer;
  transition: all .2s ease; text-decoration: none;
}
.store-header-icon-btn:hover {
  color: var(--primary, #2ca66a); border-color: rgba(44,166,106,.35);
  background: rgba(44,166,106,.06); transform: translateY(-1px);
}
.store-header-icon-btn .cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 999px; background: var(--accent, #e63946); color: #fff;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.store-search-panel {
  position: absolute; left: 0; right: 0; top: 100%; pointer-events: none;
  opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease;
}
.store-search-panel.open { pointer-events: auto; opacity: 1; transform: translateY(0); }
.store-search-panel-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.35); backdrop-filter: blur(2px); z-index: -1;
}
.store-search-panel-inner {
  background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 12px 32px rgba(0,0,0,.1); padding: 14px 0 18px;
}
.store-search-panel-form-wrap { display: flex; align-items: center; gap: 12px; }
.search-form-panel {
  display: flex; align-items: center; flex: 1; border: 2px solid #e5e7eb; border-radius: 14px;
  overflow: hidden; background: #f9fafb; transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-form-panel:focus-within {
  border-color: var(--primary, #2ca66a); background: #fff; box-shadow: 0 0 0 4px rgba(44,166,106,.12);
}
.search-form-panel-icon { padding: 0 14px 0 16px; color: #9ca3af; font-size: 15px; }
.search-form-panel input {
  flex: 1; border: none; outline: none; background: transparent; padding: 14px 8px 14px 0; font-size: 16px; min-width: 0;
}
.search-form-panel button {
  border: none; background: var(--primary, #2ca66a); color: #fff; font-weight: 700; font-size: 14px;
  padding: 0 20px; align-self: stretch; cursor: pointer;
}
.search-form-panel button:hover { background: var(--primary-d, #1d8a54); }
.store-search-panel-close {
  width: 44px; height: 44px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
  color: #6b7280; cursor: pointer; flex-shrink: 0;
}
.store-search-panel-close:hover { color: #111827; border-color: #d1d5db; background: #f3f4f6; }
body.search-panel-open { overflow: hidden; }
.store-search-panel .store-live-search { position: relative; flex: 1; max-width: none; margin: 0; }
.store-search-panel .store-live-search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1200;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); overflow: hidden; max-height: 360px; overflow-y: auto;
}
.store-live-search-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  text-decoration: none; color: #111827; border-bottom: 1px solid #f3f4f6;
}
.store-live-search-item:hover, .store-live-search-item.active { background: rgba(44,166,106,.08); }
.store-live-search-item img, .store-live-search-icon {
  width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: #9ca3af;
}
.store-live-search-body { min-width: 0; flex: 1; }
.store-live-search-name {
  display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store-live-search-price { display: block; font-size: 12px; color: var(--primary, #2ca66a); font-weight: 700; }
.store-live-search-more, .store-live-search-empty {
  display: block; padding: 10px 12px; font-size: 13px; text-align: center;
  color: var(--primary-d, #166534); text-decoration: none; font-weight: 700;
}
.store-live-search-empty { color: #6b7280; font-weight: 500; }
@media (max-width: 991px) {
  .store-nav-row { flex-wrap: wrap; gap: 8px; min-height: auto; padding: 8px 0; }
  .brand-logo--nav { max-width: min(180px, 42vw); height: 42px; }
  .brand-logo--nav img { max-width: min(180px, 42vw); height: 42px; max-height: 42px; }
  .store-nav-links-wrap {
    order: 3;
    flex: 0 0 100%;
    display: none;
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 4px;
    margin-top: 2px;
  }
  .store-unified-nav.open .store-nav-links-wrap { display: block; }
  .store-unified-nav.open .store-nav-links { flex-direction: column; overflow: visible; }
  .store-header-actions--nav { margin-left: auto; }
}
@media (max-width: 767px) {
  .store-header-row { min-height: 58px; }
  .store-header-icon-btn { width: 42px; height: 42px; border-radius: 11px; }
  .search-form-panel button { padding: 0 16px; font-size: 13px; }
  .brand-logo--nav { max-width: min(160px, 46vw); height: 40px; }
  .brand-logo--nav img { max-width: min(160px, 46vw); height: 40px; max-height: 40px; }
}

/* ==================== NEEMBA 2-ROW HEADER ==================== */
.store-header-wrap--neemba { position: sticky; top: 0; z-index: 1000; }
.store-header-wrap--neemba .store-search-panel { z-index: 1001; }
.store-neemba-container { max-width: 1180px; }

.store-neemba-top {
  background: var(--section-header-bg, #fff);
  border-bottom: 1px solid #e5e7eb;
}
.store-neemba-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 8px 0;
}
.store-neemba-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.store-neemba-logo img {
  height: 52px;
  max-width: min(200px, 34vw);
  object-fit: contain;
}
.store-neemba-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary, #2ca66a);
}

.store-neemba-search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 620px;
  margin: 0 auto;
}
.store-neemba-search-form {
  display: flex;
  align-items: stretch;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.store-neemba-search-form:focus-within {
  border-color: var(--primary, #2ca66a);
  box-shadow: 0 0 0 3px rgba(44,166,106,.1);
}
.store-neemba-search-form input,
.store-neemba-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 14px;
  font-size: 14px;
  min-width: 0;
  background: transparent;
}
.store-neemba-search-form button {
  width: 46px;
  border: none;
  background: var(--primary, #2ca66a);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.store-neemba-search-form button:hover { background: var(--primary-d, #1d8a54); }

.store-neemba-utils {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.store-neemba-util-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
}
.store-neemba-util-link i { color: #6b7280; font-size: 14px; }
.store-neemba-util-link:hover { color: var(--primary, #2ca66a); }
.store-neemba-util-divider {
  width: 1px;
  height: 22px;
  background: #d1d5db;
}

.store-neemba-nav {
  background: var(--section-nav-bg, var(--primary, #2ca66a));
  color: var(--section-nav-text, #fff);
}
.store-neemba-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
}
.store-neemba-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 0;
  cursor: pointer;
  flex-shrink: 0;
}
.store-neemba-browse-btn i { font-size: 16px; }

.store-neemba-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  flex: 1;
}
.store-neemba-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--section-nav-text, #fff);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s;
}
.store-neemba-menu li a:hover,
.store-neemba-menu li a.active { background: rgba(255,255,255,.14); }

.store-neemba-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.store-neemba-nav-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,.75);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
}
.store-neemba-nav-icon:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.store-neemba-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary-d, #1d8a54);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.store-neemba-badge--nav {
  background: #fff;
  color: var(--primary-d, #166534);
  border-color: var(--section-nav-bg, var(--primary, #2ca66a));
}
.store-neemba-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.store-neemba-top-mobile { margin-left: auto; gap: 8px; }

.store-neemba-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 0 12px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.store-neemba-mobile-menu a {
  color: #fff;
  text-decoration: none;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.store-neemba-nav.open .store-neemba-mobile-menu { display: flex; }

@media (max-width: 991px) {
  .store-neemba-search-wrap { display: none; }
  .store-neemba-menu { display: none; }
  .store-neemba-top-row { min-height: 62px; gap: 10px; }
  .store-neemba-logo img { height: 44px; }
  .store-neemba-nav-row { min-height: 46px; }
  .store-neemba-browse-btn span { font-size: 13px; }
}
@media (max-width: 575px) {
  .store-neemba-browse-btn span { display: none; }
  .store-neemba-container { padding-left: 12px; padding-right: 12px; }
}
