.site-header.has-open-search > .navbar {
  z-index: 2;
  overflow: visible;
}

.site-header.has-open-search .navbar-collapse,
.site-header.has-open-search .header-shop-tools,
.site-header.has-open-search .header-search,
.site-header.has-open-search .header-search-form {
  overflow: visible;
}

.header-search.is-results-open {
  z-index: 2;
}

.header-search-form {
  isolation: isolate;
}

.header-search-input::-webkit-search-cancel-button {
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.32rem;
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--shop-pink, #e72a8b);
  cursor: pointer;
  opacity: 0.72;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='black' stroke-linecap='round' stroke-width='2.25'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='black' stroke-linecap='round' stroke-width='2.25'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.header-search-input::-webkit-search-cancel-button:hover {
  filter: brightness(1.24) drop-shadow(0 0 0.24rem var(--shop-pink-glow, rgba(255, 87, 172, 0.2)));
  opacity: 1;
}

.header-search-results[hidden] {
  display: none !important;
}

.header-search-results {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(34rem, var(--d90-instant-search-available-height, calc(100vh - 8rem)));
  padding: 0.24rem 0 0;
  overflow: hidden;
  border: 1px solid var(--shop-border, rgba(212, 226, 229, 0.12));
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(24, 49, 60, 0.99), rgba(10, 27, 37, 0.995));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
}

@supports (height: 100dvh) {
  .header-search-results {
    max-height: min(34rem, var(--d90-instant-search-available-height, calc(100dvh - 8rem)));
  }
}

.header-search-results__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--shop-green, #71b423) rgba(10, 27, 37, 0.72);
  scrollbar-width: thin;
}

.header-search-results__list::-webkit-scrollbar {
  width: 0.46rem;
}

.header-search-results__list::-webkit-scrollbar-track {
  background: rgba(10, 27, 37, 0.72);
  border-radius: 999px;
}

.header-search-results__list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(10, 27, 37, 0.72);
  border-radius: 999px;
  background: var(--shop-green, #71b423);
  background-clip: padding-box;
}

.header-search-results__list::-webkit-scrollbar-thumb:hover {
  background: #8bd324;
  background-clip: padding-box;
}

.header-search-result {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  min-width: 0;
  min-height: 3.45rem;
  padding: 0.36rem 0.58rem;
  border: 0;
  border-radius: 0;
  color: var(--shop-text, #eef4ef);
  text-align: left;
  text-decoration: none;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.header-search-result + .header-search-result {
  border-top: 1px solid var(--shop-border, rgba(212, 226, 229, 0.12));
}

.header-search-result:hover,
.header-search-result:focus-visible,
.header-search-result.is-active {
  color: #fff;
  background: rgba(113, 180, 35, 0.13);
  box-shadow: inset 0.2rem 0 0 rgba(139, 211, 36, 0.82);
  outline: none;
}

.header-search-result__image {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 7px;
  background: transparent;
  object-fit: contain;
}

.header-search-result__copy,
.header-search-result__name,
.header-search-result__brand,
.header-search-result__price {
  display: block;
  min-width: 0;
}

.header-search-result__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--shop-text, #eef4ef);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.header-search-result__brand {
  margin-bottom: 0.12rem;
  overflow: hidden;
  color: var(--shop-text-soft, #a9b9be);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-search-result__price {
  margin-top: 0.12rem;
  color: #8bd324;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.header-search-result__price del {
  margin-right: 0.28rem;
  color: rgba(238, 244, 239, 0.52);
  font-weight: 600;
}

.header-search-result__price ins {
  color: #8bd324;
  text-decoration: none;
}

.header-search-results__all {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 0;
  padding: 0.5rem 0.75rem;
  overflow: hidden;
  border-top: 1px solid var(--shop-border, rgba(212, 226, 229, 0.12));
  border-radius: 0 0 15px 15px;
  color: #8bd324;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search-results__all:hover,
.header-search-results__all:focus-visible,
.header-search-results__all.is-active {
  color: #a9db69;
  background: rgba(113, 180, 35, 0.1);
  outline: 2px solid rgba(139, 211, 36, 0.42);
  outline-offset: -2px;
}

.header-search-results__status {
  position: relative;
  min-height: 2.6rem;
  padding: 0.75rem 0.85rem;
  color: var(--shop-text-soft, #a9b9be);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
}

.header-search.is-loading .header-search-results__status {
  padding-left: 2rem;
}

.header-search.is-loading .header-search-results__status::before {
  position: absolute;
  top: 50%;
  left: 0.78rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid rgba(169, 219, 105, 0.26);
  border-top-color: #8bd02d;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  animation: deni90-search-spin 0.7s linear infinite;
}

@keyframes deni90-search-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@media (max-width: 1499.98px) {
  .header-search-results {
    top: calc(100% + 0.45rem);
    width: 100%;
    max-height: min(31rem, var(--d90-instant-search-available-height, calc(100vh - 9rem)));
  }

  @supports (height: 100dvh) {
    .header-search-results {
      max-height: min(31rem, var(--d90-instant-search-available-height, calc(100dvh - 9rem)));
    }
  }
}

@media (max-width: 639.98px) {
  .header-search-results {
    right: 0;
    left: 0;
    max-width: calc(100vw - 2rem);
    margin-inline: auto;
    border-radius: 14px;
  }

  .header-search-results__all {
    border-radius: 0 0 13px 13px;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }

  .header-search-result {
    grid-template-columns: 2.65rem minmax(0, 1fr);
    min-height: 3.55rem;
    padding: 0.4rem 0.52rem;
  }

  .header-search-result__image {
    width: 2.65rem;
    height: 2.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-search-result,
  .header-search.is-loading .header-search-results__status::before {
    animation: none;
    transition: none;
  }
}
