/* Premium instant product search for the homepage catalog. */
.catalog-search-panel {
  width: min(790px, 100%);
  margin: 30px auto 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(81,230,210,.12), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(128,102,255,.20), transparent 42%),
    linear-gradient(145deg, rgba(28,27,52,.92), rgba(12,12,24,.94));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 20px 55px rgba(0,0,0,.22);
}

.catalog-search-label {
  display: block;
  margin: 0 4px 10px;
  color: #f4f1ff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -.01em;
}

.catalog-search-box {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 10px 8px 17px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 15px;
  background: rgba(6,7,16,.56);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.catalog-search-box:focus-within {
  border-color: rgba(169,149,255,.92);
  background: rgba(10,10,25,.82);
  box-shadow: 0 0 0 4px rgba(128,102,255,.13), 0 12px 34px rgba(50,35,116,.20);
}

.catalog-search-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #9df5e3;
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: .9;
}

.catalog-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8f6ff;
  font: 750 15px/1.4 inherit;
}

.catalog-search-input::placeholder {
  color: #858197;
  opacity: 1;
}

.catalog-search-input::-webkit-search-cancel-button {
  display: none;
}

.catalog-search-clear {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(185,168,255,.28);
  border-radius: 10px;
  background: rgba(128,102,255,.12);
  color: #ddd7ff;
  font: 800 11px/1 inherit;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.catalog-search-clear:hover,
.catalog-search-clear:focus-visible {
  border-color: #a995ff;
  background: rgba(128,102,255,.25);
  outline: 0;
  transform: translateY(-1px);
}

.catalog-search-clear[hidden] {
  display: none;
}

.catalog-search-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 4px 0;
}

.catalog-search-info p {
  margin: 0;
  color: #9692a8;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

#product-search-status {
  flex: 0 0 auto;
  color: #cfc9ec;
  text-align: right;
}

#product-search-status strong {
  color: #9df5e3;
  font-size: 12px;
}

.catalog-search-suggestions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.catalog-search-suggestions > span {
  margin-right: 2px;
  color: #8f8b9e;
  font-size: 10px;
  font-weight: 800;
}

.catalog-search-suggestions button {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #c8c4d8;
  font: 750 10px/1 inherit;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.catalog-search-suggestions button:hover,
.catalog-search-suggestions button:focus-visible,
.catalog-search-suggestions button.is-active {
  border-color: rgba(157,245,227,.52);
  background: rgba(81,230,210,.10);
  color: #baf8ec;
  outline: 0;
  transform: translateY(-1px);
}

.catalog-empty-search {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 22px;
  border: 1px dashed rgba(185,168,255,.32);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(128,102,255,.07), rgba(81,230,210,.035));
  color: #aaa7bc;
  text-align: center;
}

.catalog-empty-search svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid rgba(157,245,227,.23);
  border-radius: 13px;
  fill: none;
  stroke: #9df5e3;
  stroke-width: 1.7;
}

.catalog-empty-search h3 {
  margin: 2px 0 0;
  color: #f0edfa;
  font-size: 20px;
}

.catalog-empty-search p {
  max-width: 480px;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.catalog-empty-reset {
  margin-top: 5px;
  padding: 10px 14px;
  border: 1px solid rgba(169,149,255,.55);
  border-radius: 10px;
  background: rgba(128,102,255,.18);
  color: #eeeaff;
  font: 850 11px/1 inherit;
  cursor: pointer;
}

.catalog-empty-reset:hover,
.catalog-empty-reset:focus-visible {
  border-color: #a995ff;
  background: rgba(128,102,255,.32);
  outline: 0;
}

@media (max-width: 800px) {
  .catalog-search-panel {
    margin-top: 25px;
    padding: 11px;
    border-radius: 17px;
  }

  .catalog-search-box {
    min-height: 55px;
    padding-left: 14px;
  }

  .catalog-search-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  #product-search-status {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .catalog-search-input {
    font-size: 13px;
  }

  .catalog-search-clear {
    width: 38px;
    padding: 0;
    font-size: 16px;
  }

  .catalog-search-clear span {
    display: none;
  }

  .catalog-search-suggestions > span {
    width: 100%;
  }
}
