/* BP Searchbar */
.bp-searchbar {
  --bp-searchbar-height: 44px;
  --bp-searchbar-radius: 999px;
  --bp-searchbar-bg: #f4f4f4;
  --bp-searchbar-border: #e7e7e7;
  --bp-searchbar-text: #222;
  --bp-searchbar-muted: #777;
  --bp-searchbar-shadow: 0 12px 35px rgba(0, 0, 0, .16);
  position: relative;
}

.bp-searchbar,
.bp-searchbar * {
  box-sizing: border-box;
}

.bp-searchbar__desktop {
  display: none;
}

.bp-searchbar__form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.bp-searchbar__input {
  width: 100%;
  height: var(--bp-searchbar-height);
  padding: 0 44px;
  border: 1px solid var(--bp-searchbar-border);
  border-radius: var(--bp-searchbar-radius);
  outline: 0;
  color: var(--bp-searchbar-text);
  font-size: 14px;
  line-height: var(--bp-searchbar-height);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.bp-searchbar__input:focus {
  border-color: #bdbdbd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.bp-searchbar__input::placeholder {
  color: var(--bp-searchbar-muted);
}

.bp-searchbar__icon--search {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  color: var(--bp-searchbar-muted);
  font-size: 22px;
  pointer-events: none;
}

.bp-searchbar__clear {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bp-searchbar-muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.bp-searchbar__clear.is-visible {
  display: flex;
}

.bp-searchbar__clear:hover,
.bp-searchbar__mobile-toggle:hover,
.bp-searchbar__cancel:hover {
  color: var(--bp-searchbar-text);
}

.bp-searchbar__mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--bp-searchbar-border);
  border-radius: 50%;
  background: #fff;
  color: var(--bp-searchbar-text);
  cursor: pointer;
}


.bp-searchbar__mobile-toggle-icon {
  flex: 0 0 auto;
  font-size: 22px;
}

.bp-searchbar__mobile-toggle-input {
  display: none;
  min-width: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bp-searchbar-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: none;
}

.bp-searchbar__overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: none;
  background: rgba(0, 0, 0, .22);
  opacity: 0;
  transition: opacity .22s ease;
}

.bp-searchbar__mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10050;
  visibility: hidden;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 16px;
  background: #fff;
  box-shadow: var(--bp-searchbar-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -115%, 0);
  transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s;
  will-change: transform, opacity;
}

.bp-searchbar__mobile-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.bp-searchbar__form--mobile {
  flex: 1 1 auto;
}

.bp-searchbar__cancel {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bp-searchbar-muted);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.bp-searchbar.is-mobile-open .bp-searchbar__overlay {
  display: block;
  opacity: 1;
}

.bp-searchbar.is-mobile-open .bp-searchbar__mobile-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition: transform .25s ease, opacity .2s ease, visibility 0s linear 0s;
}

body.bp-searchbar-open {
  overflow: hidden;
}


body.bp-searchbar-floating-open {
  overflow-x: hidden;
}

.bp-searchbar__floating-panel {
  position: fixed !important;
  z-index: 10090 !important;
  display: block !important;
  max-width: calc(100vw - 24px) !important;
  margin: 0 !important;
  transform: none !important;
  contain: layout paint;
}

.bp-searchbar__popup-placeholder {
  display: none !important;
}

.bp-searchbar__explore[aria-hidden='true'],
.bp-searchbar__results[aria-hidden='true'] {
  display: none !important;
}

.bp-searchbar__explore {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  z-index: 10055;
  display: none;
  width: min(92vw, 520px);
  max-width: calc(100vw - 24px);
  max-height: min(70vh, 560px);
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
}

.bp-searchbar__form.is-explore-open .bp-searchbar__explore {
  display: block;
}

.bp-searchbar__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  margin-bottom: 16px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f5f5, #fff);
  color: var(--bp-searchbar-text);
  text-decoration: none;
}

.bp-searchbar__cta:hover {
  color: var(--bp-searchbar-text);
  text-decoration: none;
}

.bp-searchbar__cta-media {
  flex: 0 0 112px;
  width: 112px;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
}

.bp-searchbar__cta-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-searchbar__cta-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 5px;
}

.bp-searchbar__cta-title {
  color: var(--bp-searchbar-text);
  font-size: 16px;
  line-height: 1.4;
}

.bp-searchbar__cta-text {
  color: var(--bp-searchbar-muted);
  font-size: 13px;
  line-height: 1.6;
}

.bp-searchbar__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--bp-searchbar-text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
}


.bp-searchbar__recent[hidden] {
  display: none !important;
}

.bp-searchbar__recent {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.bp-searchbar__recent:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.bp-searchbar__recent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 10px;
  color: var(--bp-searchbar-text);
  font-size: 15px;
  line-height: 1.4;
}

.bp-searchbar__recent-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.bp-searchbar__recent-title .material-icons {
  color: var(--bp-searchbar-text);
  font-size: 23px;
}

.bp-searchbar__recent-clear {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bp-searchbar-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.bp-searchbar__recent-clear:hover,
.bp-searchbar__recent-clear:focus {
  color: var(--bp-searchbar-text);
  outline: 0;
}

.bp-searchbar__recent-list {
  display: flex;
  gap: 4px;
}

.bp-searchbar__recent-item {
  display: flex;
  align-items: center;
  gap: 8px;
 
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--bp-searchbar-text);
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.bp-searchbar__recent-item:hover,
.bp-searchbar__recent-item:focus {
  background: #f6f6f6;
  color: var(--bp-searchbar-text);
  text-decoration: none;
  outline: 0;
  transform: translateY(-1px);
}

.bp-searchbar__recent-item .material-icons {
  flex: 0 0 auto;
  color: var(--bp-searchbar-muted);
  font-size: 20px;
}

.bp-searchbar__recent-word {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-searchbar__popular-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 2px 0 12px;
  color: var(--bp-searchbar-text);
  font-size: 15px;
  line-height: 1.4;
}

.bp-searchbar__popular-heading .material-icons {
  color: var(--bp-searchbar-text);
  font-size: 24px;
}

.bp-searchbar__popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bp-searchbar__popular-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--bp-searchbar-border);
  border-radius: 999px;
  background: #fff;
  color: var(--bp-searchbar-text);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}


.bp-searchbar__popular-item:hover {
  border-color: #d0d0d0;
  color: var(--bp-searchbar-text);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

.bp-searchbar__popular-word {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-searchbar__popular-count {
  color: var(--bp-searchbar-muted);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}


.bp-searchbar__results {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  z-index: 10058;
  display: none;
  width: min(92vw, 560px);
  max-width: calc(100vw - 24px);
  max-height: min(70vh, 560px);
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
}

.bp-searchbar__results.is-visible {
  display: block;
}

.bp-searchbar__results-state {
  padding: 18px 12px;
  color: var(--bp-searchbar-muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.bp-searchbar__results-section + .bp-searchbar__results-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.bp-searchbar__results-title {
  margin: 0 0 8px;
  color: var(--bp-searchbar-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.bp-searchbar__results-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bp-searchbar__result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border-radius: 14px;
  color: var(--bp-searchbar-text);
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.bp-searchbar__result-item:hover,
.bp-searchbar__result-item:focus {
  background: #f6f6f6;
  color: var(--bp-searchbar-text);
  text-decoration: none;
  outline: 0;
  transform: translateY(-1px);
}

.bp-searchbar__result-thumb {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f4f4;
  color: var(--bp-searchbar-muted);
}

.bp-searchbar__result-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-searchbar__result-icon {
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f4f4;
  color: var(--bp-searchbar-muted);
  font-size: 21px;
}

.bp-searchbar__result-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.bp-searchbar__result-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--bp-searchbar-text);
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-searchbar__result-meta {
  color: var(--bp-searchbar-muted);
  font-size: 12px;
  line-height: 1.4;
}

.bp-searchbar__view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.bp-searchbar__view-all:hover,
.bp-searchbar__view-all:focus {
  color: #fff;
  text-decoration: none;
  outline: 0;
}

.bp-searchbar__view-all .material-icons {
  font-size: 20px;
}

.ui-autocomplete.bp-searchbar-autocomplete {
  z-index: 10060;
  max-height: min(420px, calc(100vh - 110px));
  overflow-y: auto;
  border: 1px solid var(--bp-searchbar-border, #e7e7e7);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
}

.ui-autocomplete.bp-searchbar-autocomplete li a,
.ui-autocomplete.bp-searchbar-autocomplete li a.ui-state-focus {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bp-searchbar-text, #222);
  cursor: pointer;
}

.ui-autocomplete.bp-searchbar-autocomplete li a:hover,
.ui-autocomplete.bp-searchbar-autocomplete li a.ui-state-focus {
  background: #f6f6f6;
}

.ui-autocomplete.bp-searchbar-autocomplete .autocomplete-thumbnail {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
}

.ui-autocomplete.bp-searchbar-autocomplete .product {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
}
@media (max-width: 390.98px) {

    .bp-searchbar__mobile-toggle {
        max-width: 155px;
    }}
@media (max-width: 767px) {
  .bp-searchbar {
    width: 100%;
  }

  .bp-searchbar__mobile-toggle {
    width: 100%;
    height: var(--bp-searchbar-height);
    justify-content: flex-start;
   padding: 0 10px 0 0;
    border-radius: var(--bp-searchbar-radius);
    color: var(--bp-searchbar-muted);
    text-align: start;
    gap: 5px;
  }

  .bp-searchbar__mobile-toggle:focus {
    border-color: #bdbdbd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
    outline: 0;
  }

  .bp-searchbar__mobile-toggle-input {
    display: block;
    flex: 1 1 auto;
    height: calc(var(--bp-searchbar-height) - 2px);
    padding: 0;
    font-size: 14px;
    line-height: calc(var(--bp-searchbar-height) - 2px);
  }

  .bp-searchbar__mobile-toggle-input::placeholder {
    color: var(--bp-searchbar-muted);
    opacity: 1;
  }

  .bp-searchbar__overlay {
    background: rgba(0, 0, 0, .28);
  }

  .bp-searchbar__mobile-panel {
    inset: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 20px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: none;
    transform: translate3d(0, calc(100% + 64px), 0);
  }

  .bp-searchbar__mobile-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 720px;
    min-height: 100%;
    margin: 0 auto;
  }

  .bp-searchbar__mobile-header {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    background: #fff;
  }

  .bp-searchbar__form--mobile {
    flex: 1 1 auto;
    min-width: 0;
  }

  .bp-searchbar__mobile-panel .bp-searchbar__explore {
    position: static;
    z-index: auto;
    display: none;
    width: 100%;
    max-height: none;
    padding: 4px 0 24px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .bp-searchbar__mobile-panel.is-explore-open .bp-searchbar__explore {
    display: block;
  }

  .bp-searchbar__form--mobile .ui-autocomplete.bp-searchbar-autocomplete {
    width: 100% !important;
    max-width: none;
  }

  .bp-searchbar__mobile-panel .bp-searchbar__results {
    position: static;
    z-index: auto;
    width: 100%;
    max-height: none;
    margin-top: 4px;
    padding: 4px 0 24px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .bp-searchbar__mobile-panel .bp-searchbar__results-section + .bp-searchbar__results-section {
    margin-top: 14px;
    padding-top: 14px;
  }

  .bp-searchbar__mobile-panel .bp-searchbar__result-item {
    padding: 10px 6px;
  }

  .bp-searchbar__mobile-panel .bp-searchbar__view-all {
    margin-top: 16px;
  }


  .bp-searchbar__cta {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    margin-bottom: 18px;
  }

  .bp-searchbar__cta-media {
    flex-basis: auto;
    width: 100%;
    height: 128px;
  }

  .bp-searchbar__recent {
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  .bp-searchbar__recent-item {
    padding: 10px 6px;
  }

  .bp-searchbar__popular-list {
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .bp-searchbar {
    min-width: 230px;
  }

  .bp-searchbar__desktop {
    display: block;
  }

  .bp-searchbar__mobile-toggle,
  .bp-searchbar__overlay,
  .bp-searchbar__mobile-panel {
    display: none !important;
  }

  body.bp-searchbar-open {
    overflow: auto;
  }

  .ui-autocomplete.bp-searchbar-autocomplete {
    max-width: 420px;
  }
}

@media (min-width: 992px) {
  .bp-searchbar {
    min-width: 265px;
  }
}
