.speed-search-root {
  position: relative;
}

.speed-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.speed-search-panel {
  position: fixed;
  z-index: 1200;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d7deeb;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  text-align: right;
}

.speed-search-state,
.speed-search-more,
.speed-search-all {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.speed-search-state.is-error {
  color: #b91c1c;
}

.speed-search-more,
.speed-search-all {
  cursor: pointer;
  color: #0071f8;
  text-decoration: none;
  border-top: 1px solid #eef2f7;
}

.speed-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.speed-search-item.is-active,
.speed-search-item:hover {
  background: #eff6ff;
}

.speed-search-item-image {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: 10px;
  background: #f8fafc;
}

.speed-search-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.speed-search-item-title {
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.speed-search-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.speed-search-item-price {
  color: #0071f8;
}

.speed-search-item-stock {
  color: #b91c1c;
}

.search-highlight,
mark.search-highlight {
  padding: 0 2px;
  background: #fde68a;
  color: inherit;
  border-radius: 4px;
}

.shop-search-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}

.shop-search-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.shop-search-toolbar select {
  height: 38px;
  border: 1px solid #d7deeb;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}

.shop-search-empty,
.shop-search-error {
  padding: 28px 18px;
  border-radius: 16px;
  text-align: center;
}

.shop-search-empty h3,
.shop-search-error h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.shop-search-empty {
  background: #f8fafc;
  color: #334155;
}

.shop-search-error {
  background: #fef2f2;
  color: #991b1b;
}

.search-page-heading .search-page-form {
  margin-top: 18px;
  max-width: 640px;
  margin-right: auto;
}

.search-page-heading .speed-search-field {
  width: 100%;
}

.search-page-input {
  flex: 1 1 auto;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  outline: none;
}

.search-page-submit {
  height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: #ee626b;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.search-page-submit:hover {
  background: #0056b3;
}

.search-page-toolbar {
  margin-top: 14px;
}

.search-page-toolbar label,
.search-page-toolbar select {
  color: #fff;
}

.search-page-toolbar select {
  color: #1f2937;
}

.search-page-heading-block h2 {
  margin: 0 0 6px;
  color: #1e3a8a;
  font-weight: 800;
}

.search-page-count {
  margin: 0 0 22px;
  color: #64748b;
  font-weight: 700;
}

.search-page-grid {
  row-gap: 22px;
}

.search-page-col .item {
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.search-page-col .item .thumb {
  height: 210px;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.search-page-col .item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-area .main-nav .speed-nav-menu li a i.fa-search,
.header-area .main-nav .speed-nav-menu li a i.fa-shopping-basket {
  margin-left: 6px;
  font-size: 14px;
}

@media (max-width: 767.98px) {
  .search-page-heading .search-page-form {
    max-width: none;
  }

  .search-page-input,
  .search-page-submit {
    height: 46px;
  }

  .search-page-col .item .thumb {
    height: 180px;
    min-height: 180px;
  }
}
