.header-center-wrap {
  position: relative;
  width: 100%;
  /* min-height: 78px;*/
}

.header-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.header-identity.is-hidden {
  display: none !important;
}

.header-search-shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  padding: 0 8px;
  box-sizing: border-box;
  z-index: 30;
  overflow: visible;
}

.header-center-wrap.search-open .viewcounter {
  display: none;
}

.header-search-shell.is-hidden {
  display: none;
}

.header-search-toprow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.header-search-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #111;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header-search-form {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-search-input {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #d9dee6;
  background: #fff;
  padding: 0 58px 0 18px;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  outline: none;
}

.header-search-input:focus {
  border-color: #111;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
}

.header-search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-search-status {
  width: 100%;
  margin-top: 0;
  font-size: 0.88rem;
  color: #6b7280;
  text-align: center;
}

.header-search-results {
  position: relative;
  width: 100%;
  margin: 0;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  padding: 14px;
}

.header-search-results .product-search-item {
  margin-bottom: 0;
}

.header-search-empty {
  padding: 14px;
  text-align: center;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  background: #fafafa;
}

.header-search-meta-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.header-search-meta-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.header-search-viewall {
  font-size: 0.9rem;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
}

.header-search-viewall:hover {
  text-decoration: underline;
}

.header-search-panel {
  width: min(100%, 920px);
}

.header-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  color: #111827;
}

.header-search-item:last-child {
  border-bottom: 0;
}

.header-search-item-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 14px;
}

.header-search-item-main {
  min-width: 0;
  flex: 1 1 auto;
}

.header-search-item-title {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 2px;
}

.header-search-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  text-align: center;
}

.header-search-footer a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.sharedetails {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.search-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #000;
}

.search-toggle-btn:hover,
.search-toggle-btn:focus {
  background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 767.98px) {
  .header-center-wrap {
    /* min-height: 88px;*/
  }

  .header-search-shell {
    top: 38px;
    max-width: calc(100vw - 10px);
    width: calc(100vw - 10px);
    padding: 0 3px;
  }

  .header-search-toprow {
    gap: 8px;
  }

  .header-search-close {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .header-search-input {
    height: 42px;
    font-size: 14px;
    padding: 0 48px 0 14px;
  }

  .header-search-submit {
    width: 32px;
    height: 32px;
    right: 5px;
  }

  .header-search-status {
    font-size: 0.78rem;
  }

  .header-search-results {
    width: calc(100% + 0px);
    /* margin-left: -3px;*/
    max-height: 290px;
    padding: 9px 10px 7px;
  }

  .header-search-meta-row {
    padding: 0;
    margin-bottom: 8px;
  }

  .header-search-item {
    gap: 0;
    padding: 8px 2px;
  }

  .header-search-item-icon {
    display: none !important;
  }

  .header-search-item-main {
    width: 100%;
  }

  .header-search-item-title {
    font-size: 0.88rem;
  }

  .header-search-footer {
    font-size: 0.88rem;
    margin-top: 8px;
    padding-top: 8px;
  }
}
