.bs-home-page [data-home-discovery] {
  --bs-home-header-height: 107px;
  --bs-home-search-height: 60px;
}

.bs-home-page .header__sticky.sticky {
  background: #ffffff;
}

.bs-home-page .bs-home-search {
  position: sticky;
  z-index: 90;
  top: var(--bs-home-header-height);
  padding: 8px 0;
  background: #ffffff;
  border-bottom: 1px solid #e7edf3;
}

.bs-home-page .bs-home-search-inner {
  width: min(100%, 720px);
  margin-inline: auto;
}

.bs-home-page .bs-home-search-label,
.bs-home-page [data-searching="false"] .bs-home-search-count {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.bs-home-page .bs-home-search-control {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px 0 12px;
  color: #1a4d8f;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(245 249 255 / 92%));
  border: 1px solid #a8c7e5;
  border-radius: 14px;
  box-shadow: -4px 0 16px rgb(45 212 191 / 14%), 4px 2px 16px rgb(129 140 248 / 16%), inset 0 1px 0 #ffffff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.bs-home-page .bs-home-search-control::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(110deg, #38bdf8, #2dd4bf 32%, #818cf8 68%, #e879f9);
  -webkit-mask: linear-gradient(#000000 0 0) content-box, linear-gradient(#000000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000000 0 0) content-box, linear-gradient(#000000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.bs-home-page .bs-home-search-control:focus-within {
  outline: 2px solid #1a4d8f;
  outline-offset: 3px;
  box-shadow: -4px 0 18px rgb(45 212 191 / 22%), 4px 2px 18px rgb(129 140 248 / 24%), inset 0 1px 0 #ffffff;
}

.bs-home-page .bs-home-search-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.bs-home-page #home-product-search {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0;
  color: #192a3b;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  box-shadow: none;
  appearance: none;
}

.bs-home-page #home-product-search::placeholder {
  color: #526375;
  opacity: 1;
}

.bs-home-page #home-product-search::-webkit-search-cancel-button {
  display: none;
}

.bs-home-page .bs-home-search-clear {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 4px;
  color: #1a4d8f;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bs-home-page .bs-home-search-count {
  margin: 6px 0 0;
  color: #526375;
  font-size: 13px;
  line-height: 18px;
}

.bs-home-page .bs-home-catalog {
  scroll-margin-top: calc(var(--bs-home-header-height) + var(--bs-home-search-height) + 8px);
}

.bs-home-page .bs-home-catalog-spacer {
  height: 50px;
}

.bs-home-page .bs-home-add {
  padding: 0;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.bs-home-page .bs-home-add-short {
  display: none;
}

.bs-home-page .bs-home-empty {
  padding: 36px 16px;
  text-align: center;
}

.bs-home-page .bs-home-empty h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.bs-home-page .bs-home-empty p {
  margin: 0 0 16px;
  color: #526375;
}

.bs-home-page .bs-home-empty button {
  min-height: 44px;
  padding: 8px 18px;
  color: #ffffff;
  background: #1a4d8f;
  border: 0;
  border-radius: 9px;
  font: inherit;
  cursor: pointer;
}

.bs-home-page .bs-home-add:focus-visible,
.bs-home-page .bs-home-search-clear:focus-visible,
.bs-home-page .bs-home-empty button:focus-visible {
  outline: 3px solid #1a4d8f;
  outline-offset: 3px;
}

.bs-home-page [data-home-product][hidden],
.bs-home-page [data-home-browse][hidden],
.bs-home-page [data-category-sea][hidden],
.bs-home-page [data-home-empty][hidden],
.bs-home-page [data-home-clear][hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .bs-home-page .bs-home-catalog-spacer {
    height: 12px;
  }

  .bs-home-page #product_all .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    margin: 0;
  }

  .bs-home-page #product_all [data-home-product] {
    display: flex;
    width: auto;
    max-width: none;
    padding: 0;
    flex: none;
  }

  .bs-home-page #product_all .product__items {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    border-radius: 11px;
  }

  .bs-home-page #product_all .product__items--img {
    display: block;
    width: 100%;
    height: clamp(80px, calc((100svh - var(--bs-home-header-height) - var(--bs-home-search-height) - 44px) / 3 - 98px), 144px);
    object-fit: cover;
    object-position: center;
    background: #f6f8fa;
    transform: none;
  }

  .bs-home-page #product_all .product__items--content {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
  }

  .bs-home-page #product_all .product__items--content__title {
    position: static;
    flex: 0 0 36px;
    min-height: 36px;
    max-height: 36px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0;
    text-align: left;
    opacity: 1;
    visibility: visible;
  }

  .bs-home-page #product_all .product__items--content__title a {
    font: inherit;
    line-height: inherit;
  }

  .bs-home-page #product_all .bs-home-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-height: 44px;
    margin-top: auto;
  }

  .bs-home-page #product_all .product__items--price {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    line-height: 18px;
  }

  .bs-home-page #product_all .current__price {
    font-size: 15px;
    line-height: 19px;
    white-space: nowrap;
  }

  .bs-home-page #product_all .old__price {
    margin: 0;
    font-size: 11px;
    line-height: 15px;
    white-space: nowrap;
  }

  .bs-home-page #product_all .bs-home-add {
    position: static;
    display: flex;
    flex: 0 0 61px;
    align-items: center;
    justify-content: center;
    width: 61px;
    min-height: 44px;
    padding: 0 6px;
    color: #ffffff;
    background: #1a4d8f;
    border-radius: 8px;
    font-size: 12px;
    line-height: 16px;
    text-decoration: none;
    opacity: 1;
    visibility: visible;
  }

  .bs-home-page #product_all .bs-home-add-full {
    display: none;
  }

  .bs-home-page #product_all .bs-home-add-short {
    display: inline;
  }
}
