.brande-smart-search {
  position: relative;
  width: 260px !important;
  max-width: 100%;
  font: inherit;
  z-index: 60;
}

.brande-smart-search__form {
  position: relative !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.brande-smart-search__input {
  display: block !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 42px 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  background: #fff !important;
  color: #444 !important;
  font: inherit;
  font-size: 12px !important;
  line-height: 40px !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.brande-smart-search__input::placeholder {
  color: #aaa;
  opacity: 1;
}

.brande-smart-search__input:focus {
  box-shadow: inset 0 0 0 1px #d8d8d8 !important;
}


.brande-smart-search__clear {
  position: absolute !important;
  right: 40px !important;
  top: 0 !important;
  z-index: 4;
  width: 34px !important;
  min-width: 34px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: transparent !important;
  color: #8a8a8a !important;
  box-shadow: none !important;
  cursor: pointer;
}

.brande-smart-search__clear[hidden] {
  display: none !important;
}

.brande-smart-search__clear:hover,
.brande-smart-search__clear:focus {
  color: #444 !important;
  background: transparent !important;
}

.brande-smart-search__clear svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.brande-smart-search__submit {
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  position: relative !important;
  z-index: 2;
  border: 0 !important;
  border-left: 1px solid #ddd !important;
  border-radius: 0 !important;
  background: #f5f5f5 !important;
  color: #555 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.brande-smart-search__submit:hover,
.brande-smart-search__submit:focus {
  background: #ececec !important;
  color: #333 !important;
}

.brande-smart-search__submit svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.brande-smart-search__results {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  min-width: 300px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  z-index: 99999;
  color: #333;
}

.brande-smart-search__results[hidden] {
  display: none !important;
}

.brande-smart-search__item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid #eee;
  color: #333 !important;
  text-decoration: none !important;
  background: #fff;
}

.brande-smart-search__item:hover,
.brande-smart-search__item.is-active {
  background: #f5f5f5;
}

.brande-smart-search__image,
.brande-smart-search__image-placeholder {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
}

.brande-smart-search__image-placeholder {
  background: #f6f6f6;
}

.brande-smart-search__text {
  min-width: 0;
  flex: 1 1 auto;
}

.brande-smart-search__title {
  display: block;
  font-size: 13px;
  line-height: 1.28;
  font-weight: 600;
  color: #333;
}

.brande-smart-search__price {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.25;
  color: #777;
}

.brande-smart-search__all,
.brande-smart-search__none,
.brande-smart-search__loading {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.35;
  color: #666;
  background: #fff;
}

.brande-smart-search__all {
  color: #333 !important;
  font-weight: 600;
  text-decoration: none !important;
}

.brande-smart-search__all:hover,
.brande-smart-search__all.is-active {
  background: #f5f5f5;
}

@media (max-width: 849px) {
  .brande-smart-search {
    width: 280px !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
  }

  .brande-smart-search__form {
    display: flex !important;
    flex-flow: row nowrap !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .brande-smart-search__input {
    flex: 1 1 0 !important;
    width: 1% !important;
    min-width: 0 !important;
  }

  .brande-smart-search__submit {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }

  .brande-smart-search__results {
    min-width: min(92vw, 360px);
  }
}

/* Full search results page */
.brande-smart-search-page {
  width: 100%;
  padding: 28px 20px 48px;
}

.brande-smart-search-page__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.brande-smart-search-page__heading {
  margin: 0 0 26px;
  text-align: center;
  font-size: 24px;
  line-height: 1.3;
}


.brande-smart-search-page__layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.brande-smart-search-page__layout.is-without-filter {
  grid-template-columns: minmax(0, 1fr);
}

.brande-smart-search-page__filter {
  min-width: 0;
}

.brande-smart-search-page__results-column {
  min-width: 0;
}

.brande-smart-search-page__grid {
  display: grid !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.brande-smart-search-page__grid.products::before,
.brande-smart-search-page__grid.products::after {
  display: none !important;
  content: none !important;
}

.brande-smart-search-card {
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  list-style: none !important;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .05);
}

.brande-smart-search-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: #333 !important;
  text-decoration: none !important;
}

.brande-smart-search-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.brande-smart-search-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brande-smart-search-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #f6f6f6;
}

.brande-smart-search-card.is-content .brande-smart-search-card__media {
  aspect-ratio: 16 / 9;
}

.brande-smart-search-card__body {
  padding: 13px 14px 15px;
}

.brande-smart-search-card__type {
  display: block;
  margin-bottom: 5px;
  color: #888;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.brande-smart-search-card__title {
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.brande-smart-search-card__price {
  margin-top: 8px;
  color: #333;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.brande-smart-search-card__sku {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .02em;
}

.brande-smart-search-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .09);
}

.brande-smart-search-page__empty {
  text-align: center;
}

.brande-smart-search-page__pagination {
  margin-top: 30px;
}

.brande-smart-search-page__pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brande-smart-search-page__pagination .page-numbers li {
  margin: 0;
}

.brande-smart-search-page__pagination a.page-numbers,
.brande-smart-search-page__pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none !important;
}

.brande-smart-search-page__pagination .current {
  font-weight: 700;
}

@media (max-width: 1024px) {
  .brande-smart-search-page__layout {
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
    gap: 20px;
  }

  .brande-smart-search-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 849px) {
  .brande-smart-search-page__layout {
    display: block;
  }

  .brande-smart-search-page__filter {
    margin-bottom: 18px;
  }

  .brande-smart-search-page {
    padding: 22px 14px 38px;
  }

  .brande-smart-search-page__heading {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .brande-smart-search-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .brande-smart-search-card__body {
    padding: 10px 10px 12px;
  }

  .brande-smart-search-card__title {
    font-size: 13px;
  }
}

/* Flatsome dark header/page compatibility. Search cards themselves are light,
   so product text must stay dark even when an ancestor uses the .dark class. */
.brande-smart-search-page .brande-smart-search-card__title,
.dark .brande-smart-search-page .brande-smart-search-card__title {
  color: #333 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.brande-smart-search-page .brande-smart-search-card__price,
.brande-smart-search-page .brande-smart-search-card__price *,
.dark .brande-smart-search-page .brande-smart-search-card__price,
.dark .brande-smart-search-page .brande-smart-search-card__price * {
  color: #333 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.brande-smart-search-page .brande-smart-search-card__type,
.dark .brande-smart-search-page .brande-smart-search-card__type {
  color: #888 !important;
}

.brande-smart-search-page .brande-smart-search-card__sku,
.dark .brande-smart-search-page .brande-smart-search-card__sku {
  color: #555 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  visibility: visible !important;
}


/* Keep WBW Brand options outside the current Smart Search result set hidden. */
.brande-smart-search-page__filter .bss-wbw-hidden {
  display: none !important;
}
