body.rf_search-opened {
  overflow: hidden;
}
body.rf_search-opened #rf_search_popup {
  display: flex;
  animation: rfSearchBackdropIn 180ms ease-out both;
}
body.rf_search-opened .rf_search_popup-wrap {
  animation: rfSearchDialogIn 220ms ease-out both;
}
body.rf_search-close #rf_search_popup {
  animation: rfSearchBackdropOut 140ms ease-in both;
}
body.rf_search-close .rf_search_popup-wrap {
  animation: rfSearchDialogOut 140ms ease-in both;
}
@keyframes rfSearchBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rfSearchBackdropOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes rfSearchDialogIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes rfSearchDialogOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}
#rf_search_popup {
  --rf-primary: #009846;
  --rf-text: #26292d;
  --rf-muted: #70757d;
  --rf-border: #e4e7eb;
  --rf-surface: #ffffff;
  --rf-surface-soft: #f6f7f8;
  --rf-danger: #df262f;
  --rf-radius: 6px;
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(31, 37, 43, 0.64);
  box-sizing: border-box;
  overscroll-behavior: contain;
}
#rf_search_popup *,
#rf_search_popup *::before,
#rf_search_popup *::after {
  box-sizing: border-box;
}
#rf_search_popup a,
#rf_search_popup button,
#rf_search_popup input {
  font-family: inherit;
  letter-spacing: 0;
}
#rf_search_popup a:focus-visible,
#rf_search_popup button:focus-visible,
#rf_search_popup input:focus-visible {
  outline: 3px solid rgba(0, 152, 70, 0.28);
  outline-offset: 2px;
}
.rf_search_popup-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 1440px !important;
  max-width: 1440px;
  height: 880px;
  min-height: 420px;
  overflow: hidden;
  background: var(--rf-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(12, 20, 28, 0.24);
}
.rf_search_popup_header {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 16px 18px;
  background: var(--rf-surface);
  border-bottom: 1px solid var(--rf-border);
}
.rf_search_popup__input {
  position: relative;
  flex: 1 1 auto;
  margin: 0;
}
.rf_popup-search-input {
  display: block;
  width: 100% !important;
  height: 50px !important;
  margin: 0;
  padding: 0 18px 0 52px !important;
  color: var(--rf-text) !important;
  background: var(--rf-surface-soft) !important;
  border: 1px solid transparent !important;
  border-radius: var(--rf-radius) !important;
  box-shadow: none !important;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 50px !important;
  appearance: none;
}
.rf_popup-search-input:hover {
  background: #f1f3f4 !important;
}
.rf_popup-search-input:focus {
  background: #fff !important;
  border-color: #009846 !important;
}
.rf_popup-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}
.rf_search_input_icon {
  position: absolute;
  top: 50%;
  left: 19px;
  z-index: 1;
  width: 18px;
  height: 18px;
  transform: translateY(-55%);
  border: 2px solid #697078;
  border-radius: 50%;
  pointer-events: none;
}
.rf_search_input_icon::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  transform: rotate(45deg);
  transform-origin: left center;
  background: #697078;
  border-radius: 1px;
}
.rf_search-popup-close {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--rf-text);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.rf_search-popup-close:hover {
  background: var(--rf-surface-soft);
}
.rf_search-popup-close:active {
  transform: scale(0.94);
}
.rf_search-popup-close span::before,
.rf_search-popup-close span::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 13px;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.rf_search-popup-close span::before {
  transform: rotate(45deg);
}
.rf_search-popup-close span::after {
  transform: rotate(-45deg);
}
.rf_search_sr_only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.rf_suggest {
  display: none;
  flex: 0 0 auto;
  padding: 10px 18px 0;
  background: var(--rf-surface);
}
.rf_suggest:not(:empty) {
  display: block;
}
.rf_suggest__content {
  padding: 9px 12px;
  color: var(--rf-muted);
  background: #f8faf8;
  border: 1px solid rgba(0, 152, 70, 0.18);
  border-radius: var(--rf-radius);
  font-size: 14px;
}
.rf_suggest__content button {
  padding: 0;
  color: #006f33;
  background: transparent;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}
#rf_search_container {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: var(--rf-surface);
}
#rf_search_container::-webkit-scrollbar {
  width: 8px;
}
#rf_search_container::-webkit-scrollbar-track {
  background: transparent;
}
#rf_search_container::-webkit-scrollbar-thumb {
  background: #c5c9ce;
  border: 2px solid #fff;
  border-radius: 8px;
}
#rf_search_container.is-loading {
  pointer-events: none;
}
#rf_search_container.is-loading::before {
  content: '';
  position: sticky;
  top: 0;
  left: 0;
  z-index: 8;
  display: block;
  width: 100%;
  height: 3px;
  grid-column: 1 / -1;
  background: linear-gradient(90deg, transparent, #009846, transparent);
  background-size: 220% 100%;
  animation: rfSearchLoading 900ms ease-in-out infinite;
}
#rf_search_container:not(.has-left-col) {
  grid-template-columns: minmax(0, 1fr);
}
@keyframes rfSearchLoading {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
.rf_search__left {
  position: sticky;
  top: 0;
  align-self: start;
  min-width: 0;
  padding: 22px 18px 28px;
  background: #fbfbfc;
  border-right: 1px solid var(--rf-border);
}
.rf_search_section + .rf_search_section {
  margin-top: 28px;
}
.rf_search_head {
  margin: 0;
  padding: 0;
  color: var(--rf-text);
  border: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.rf_search_category_list {
  display: grid;
  gap: 3px;
  margin-top: 10px;
}
.rf_search_category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 9px;
  color: #35393e !important;
  border-radius: var(--rf-radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none !important;
  transition: color 150ms ease, background-color 150ms ease;
}
.rf_search_category span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rf_search_category i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  transform: rotate(-45deg);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.45;
}
.rf_search_category:hover {
  color: #006f33 !important;
  background: rgba(0, 152, 70, 0.08);
}
.rf_search_category:hover i {
  opacity: 1;
}
.rf_brand_container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.rf_search_item.is-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 52px;
  padding: 8px;
  color: var(--rf-text) !important;
  background: #fff;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.rf_search_item.is-brand img {
  display: block;
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
}
.rf_search_item.is-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rf_search_item.is-brand:hover {
  border-color: rgba(0, 152, 70, 0.55);
  box-shadow: 0 3px 12px rgba(0, 152, 70, 0.1);
}
.rf_search__right {
  min-width: 0;
  padding: 22px 22px 30px;
}
.rf_search_products_header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.rf_search_head_counter {
  flex: 0 0 auto;
  color: var(--rf-muted);
  font-size: 14px;
  font-weight: 500;
}
.rf_search_products_grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.rf_search_product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 342px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.rf_search_product:hover {
  transform: translateY(-2px);
  border-color: #cfd4d9;
  box-shadow: 0 8px 22px rgba(23, 31, 38, 0.09);
}
.rf_search_product.is-unavailable .rf_search_product_image img {
  opacity: 0.7;
}
.rf_search_product_image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
}
.rf_search_product_image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 150px;
  max-height: 130px;
  object-fit: contain;
}
.rf_search_product_content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.rf_search_product_name {
  display: -webkit-box !important;
  min-height: 42px;
  overflow: hidden;
  color: #1747a6 !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.rf_search_product_name:hover {
  color: #006f33 !important;
}
.rf_search_product_price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
  min-height: 27px;
  margin-top: 9px;
}
.additional_price {
  color: var(--rf-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.rf_old_price {
  color: #91969c;
  font-size: 13px;
  font-weight: 500;
  order: 2;
}
.rf_mv_offers {
  color: var(--rf-muted);
  font-size: 12px;
  font-weight: 500;
}
.rf_search_product_meta {
  display: grid;
  gap: 2px;
  margin-top: 7px;
  color: #8a9096;
  font-size: 12px;
  line-height: 1.3;
}
.rf_search_product_meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rf_search_product_action {
  margin-top: 12px;
}
.rf_search_product_action .rf_search_add_to_cart,
.rf_search_product_action .rf_catalog_mode_btn,
.rf_search_product_action .out_of_stock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--rf-radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
}
.rf_search_product_action .rf_search_add_to_cart,
.rf_search_product_action .rf_catalog_mode_btn.ty-btn__primary {
  color: #fff !important;
  background: #009846;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}
.rf_search_product_action .rf_search_add_to_cart:hover,
.rf_search_product_action .rf_catalog_mode_btn.ty-btn__primary:hover {
  background: #007938;
}
.rf_search_product_action .rf_search_add_to_cart:active,
.rf_search_product_action .rf_catalog_mode_btn.ty-btn__primary:active {
  transform: scale(0.98);
}
.rf_search_product_action .out_of_stock {
  color: #5d6268;
  background: #eceeef;
  cursor: default;
}
.rf_search_add_to_cart .ut2-icon-use_icon_cart {
  margin-right: 7px;
  font-size: 18px;
  line-height: 1;
}
.rf_search_footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rf-border);
}
.rf_search_load_more,
.rf_search_all_results {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--rf-radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
}
.rf_search_load_more {
  color: #35393e;
  background: #fff;
  border: 1px solid #cfd4d9;
}
.rf_search_load_more:hover {
  border-color: #9ea5ac;
}
.rf_search_all_results {
  color: #fff !important;
  background: #009846;
  border: 1px solid #009846;
}
.rf_search_all_results:hover {
  background: #007938;
  border-color: #007938;
}
.rf_search_all_results span {
  margin-left: 5px;
  opacity: 0.82;
}
.rf_search_item.is-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  color: var(--rf-muted);
  text-align: center;
}
.rf_search_item.is-empty strong {
  color: var(--rf-text);
  font-size: 18px;
}
.rf_search_empty_icon {
  position: relative;
  width: 42px;
  height: 42px;
  border: 3px solid #aeb4ba;
  border-radius: 50%;
}
.rf_search_empty_icon::after {
  content: '';
  position: absolute;
  right: -11px;
  bottom: 0;
  width: 15px;
  height: 3px;
  transform: rotate(45deg);
  background: #aeb4ba;
  border-radius: 2px;
}
.rf_search_item.personal_history {
  grid-column: 1 / -1;
  padding: 24px;
}
.rf_search_personal_history_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--rf-text);
  font-size: 17px;
  font-weight: 700;
}
#personal_history_clean {
  min-height: 36px;
  padding: 6px 10px;
  color: var(--rf-muted);
  background: transparent;
  border: 0;
  border-radius: var(--rf-radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#personal_history_clean:hover {
  color: var(--rf-danger);
  background: rgba(223, 38, 47, 0.07);
}
.rf_search_personal_history_list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rf_personal_history_item {
  min-height: 40px;
  padding: 8px 14px;
  color: #35393e;
  background: var(--rf-surface-soft);
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}
.rf_personal_history_item:hover {
  color: #006f33;
  border-color: rgba(0, 152, 70, 0.3);
  background: rgba(0, 152, 70, 0.06);
}
@media (max-width: 1240px) {
  .rf_search_products_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  #rf_search_container {
    display: block;
  }
  .rf_search__left {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--rf-border);
  }
  .rf_search_section + .rf_search_section {
    margin-top: 0;
  }
  .rf_search_vendors {
    grid-column: 1 / -1;
  }
  .rf_search_products_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  #rf_search_popup {
    padding: 0;
    background: #fff;
  }
  .rf_search_popup-wrap {
    width: 100% !important;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .rf_search_popup_header {
    min-height: 72px;
    padding: 10px 10px 10px;
  }
  .rf_popup-search-input {
    height: 48px !important;
    padding-left: 47px !important;
    font-size: 16px !important;
    line-height: 48px !important;
  }
  .rf_search_input_icon {
    left: 17px;
  }
  .rf_search-popup-close {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
  .rf_suggest {
    padding: 8px 10px 0;
  }
  .rf_search__left {
    display: block;
    padding: 16px 12px;
  }
  .rf_search_section + .rf_search_section {
    margin-top: 20px;
  }
  .rf_search_category_list {
    display: flex;
    gap: 8px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rf_search_category_list::-webkit-scrollbar {
    display: none;
  }
  .rf_search_category {
    flex: 0 0 auto;
    width: min(78vw, 310px);
    min-height: 44px;
    background: #fff;
    border: 1px solid var(--rf-border);
  }
  .rf_brand_container {
    display: flex;
    gap: 8px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rf_brand_container::-webkit-scrollbar {
    display: none;
  }
  .rf_search_item.is-brand {
    flex: 0 0 116px;
    height: 48px;
  }
  .rf_search__right {
    padding: 18px 10px 24px;
  }
  .rf_search_products_header {
    margin-bottom: 12px;
    padding: 0 2px;
  }
  .rf_search_head {
    font-size: 16px;
  }
  .rf_search_head_counter {
    font-size: 13px;
  }
  .rf_search_products_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .rf_search_product {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: minmax(88px, auto) auto;
    gap: 0 12px;
    min-height: 0;
    padding: 10px;
  }
  .rf_search_product:hover {
    transform: none;
    box-shadow: none;
  }
  .rf_search_product_image {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;
    width: 86px;
    height: 86px;
    margin: 0;
    aspect-ratio: 1;
  }
  .rf_search_product_image img {
    max-width: 82px;
    max-height: 82px;
  }
  .rf_search_product_content {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    padding-right: 2px;
  }
  .rf_search_product_name {
    min-height: 39px;
    font-size: 14px;
  }
  .rf_search_product_price {
    min-height: 23px;
    margin-top: 5px;
  }
  .additional_price {
    font-size: 16px;
  }
  .rf_search_product_meta {
    display: none;
  }
  .rf_search_product_action {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    margin-top: 8px;
  }
  .rf_search_product_action .rf_search_add_to_cart,
  .rf_search_product_action .rf_catalog_mode_btn,
  .rf_search_product_action .out_of_stock {
    min-height: 44px;
  }
  .rf_search_footer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    flex-direction: column;
    margin: 16px -10px -24px;
    padding: 10px 10px 10px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--rf-border);
  }
  .rf_search_load_more,
  .rf_search_all_results {
    width: 100%;
    min-height: 46px;
  }
}
@media (max-width: 380px) {
  .rf_search_product {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0 10px;
  }
  .rf_search_product_image {
    width: 76px;
    height: 76px;
  }
  .rf_search_product_content,
  .rf_search_product_action {
    grid-column-start: 2;
    grid-column-end: 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  #rf_search_popup,
  .rf_search_popup-wrap,
  .rf_search_product,
  .rf_search-popup-close,
  .rf_search_product_action .rf_search_add_to_cart {
    animation: none !important;
    transition: none !important;
  }
}
#rf_search_popup {
  --rf-radius: 12px;
  --rf-radius-lg: 16px;
}
#rf_search_popup .rf_search_popup-wrap {
  height: min(900px, calc(100dvh - 32px));
  border-radius: var(--rf-radius-lg);
  background: #f8f9fa;
}
#rf_search_popup .rf_search_popup_header {
  min-height: 94px;
  padding: 18px 82px 12px 44px;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.98);
}
#rf_search_popup .rf_search_popup__input {
  width: 100%;
  min-width: 0;
  max-width: none;
}
#rf_search_popup .rf_popup-search-input {
  height: 58px !important;
  padding-right: 64px !important;
  border: 1px solid #d8dde3 !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.06) !important;
  font-size: 17px !important;
}
#rf_search_popup .rf_popup-search-input:focus {
  border-color: #009846 !important;
  box-shadow: 0 0 0 4px rgba(0, 152, 70, 0.14), 0 8px 22px rgba(21, 32, 43, 0.06) !important;
}
#rf_search_popup .rf_search_input_clear {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  cursor: pointer;
  opacity: 1;
  transition: opacity 140ms ease, transform 140ms ease;
}
#rf_search_popup .rf_search_input_clear {
  right: 8px;
}
#rf_search_popup .rf_search_input_clear::before,
#rf_search_popup .rf_search_input_clear::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 13px;
  width: 16px;
  height: 2px;
  background: #6f7780;
  border-radius: 2px;
}
#rf_search_popup .rf_search_input_clear::before {
  transform: rotate(45deg);
}
#rf_search_popup .rf_search_input_clear::after {
  transform: rotate(-45deg);
}
#rf_search_popup .rf_popup-search-input:placeholder-shown + .rf_search_input_clear {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.85);
}
#rf_search_popup .rf_search-popup-close {
  position: absolute;
  top: 22px;
  right: 18px;
}
.rf_search_quick_chips {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  padding: 0 44px 16px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.98);
  scrollbar-width: none;
}
.rf_search_quick_chips::-webkit-scrollbar {
  display: none;
}
.rf_search_quick_chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 18px;
  color: #006f33;
  background: #fff;
  border: 1px solid #dfe5e9;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(22, 31, 39, 0.06);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.rf_search_quick_chip:hover,
.rf_search_quick_chip.is-active {
  background: rgba(0, 152, 70, 0.1);
  border-color: rgba(0, 152, 70, 0.35);
}
#rf_search_popup #rf_search_container {
  grid-template-columns: 292px minmax(0, 1fr);
  padding: 0 44px 82px;
  gap: 24px;
  background: #f8f9fa;
}
#rf_search_popup .rf_search__left {
  top: 0;
  margin: 0;
  padding: 0 0 24px;
  background: transparent;
  border-right: 0;
}
.rf_search_discovery_panel {
  display: grid;
  gap: 12px;
}
.rf_search_discovery_group {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: var(--rf-radius);
  box-shadow: 0 6px 18px rgba(18, 27, 35, 0.05);
}
.rf_search_discovery_title {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--rf-text);
  font-size: 16px;
  font-weight: 800;
}
.rf_search_category_tree,
.rf_search_category_tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf_search_category_tree {
  padding: 0 14px 14px;
}
.rf_search_category_node {
  position: relative;
}
.rf_search_category_node ul {
  margin: 2px 0 4px 12px;
  padding-left: 12px;
  border-left: 1px solid #dfe5e8;
}
.rf_search_category_parent,
.rf_search_category_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 9px;
  color: #394048 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
}
.rf_search_category_parent .rf_search_category_name,
.rf_search_category_link .rf_search_category_name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rf_search_category_parent .rf_search_category_count,
.rf_search_category_link .rf_search_category_count {
  flex: 0 0 auto;
  min-width: 24px;
  padding: 2px 7px;
  color: #7b838c;
  background: #eef1f3;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}
.rf_search_category_parent i,
.rf_search_category_link i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  transform: rotate(-45deg);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.42;
}
.rf_search_category_parent:hover,
.rf_search_category_link:hover {
  color: #006f33 !important;
}
.rf_search_category_parent {
  color: #20262d !important;
  background: #f5f7f8;
  font-weight: 800;
}
.rf_search_category_parent i {
  display: none;
}
.rf_search_category_link:hover {
  background: rgba(0, 152, 70, 0.08);
}
.rf_search_brand_scroller {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}
.rf_search_brand_link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 34px;
  padding: 0 12px;
  color: #176b37 !important;
  background: #f8fbf9;
  border: 1px solid #dfe7e1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}
.rf_search_brand_link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rf_search_brand_link b {
  min-width: 22px;
  padding: 2px 6px;
  color: #7b838c;
  background: #eef1f3;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}
.rf_search_brand_link:hover {
  color: #006f33 !important;
  background: rgba(0, 152, 70, 0.1);
  border-color: rgba(0, 152, 70, 0.34);
}
#rf_search_popup .rf_search__right {
  padding: 0 0 24px;
}
#rf_search_popup .rf_search_products_header {
  align-items: center;
  margin: 0 0 18px;
}
.rf_search_results_controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.rf_search_sort_select {
  width: auto !important;
  height: 42px !important;
  min-width: 210px;
  margin: 0 !important;
  padding: 0 38px 0 14px !important;
  border: 1px solid #d8dde3 !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  font-weight: 600;
}
.rf_search_view_toggle {
  display: inline-flex;
  gap: 8px;
}
.rf_search_view_btn {
  position: relative;
  width: 44px;
  height: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 10px;
  cursor: pointer;
}
.rf_search_view_btn.is-active {
  color: #009846;
  border-color: #009846;
  box-shadow: inset 0 0 0 1px #009846;
}
.rf_search_view_btn span,
.rf_search_view_btn span::before,
.rf_search_view_btn span::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.rf_search_view_btn[data-view='grid'] span {
  top: 12px;
  left: 14px;
  width: 7px;
  height: 7px;
  box-shadow: 11px 0 0 currentColor, 0 11px 0 currentColor, 11px 11px 0 currentColor;
}
.rf_search_view_btn[data-view='list'] span {
  top: 12px;
  left: 13px;
  width: 18px;
  height: 3px;
  box-shadow: 0 8px 0 currentColor, 0 16px 0 currentColor;
}
#rf_search_popup .rf_search_products_grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
#rf_search_popup .rf_search_products_grid.is-list {
  grid-template-columns: minmax(0, 1fr);
}
#rf_search_popup .rf_search_products_grid.is-list .rf_search_product {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 210px;
  min-height: 188px;
  gap: 18px;
}
#rf_search_popup .rf_search_products_grid.is-list .rf_search_product_media,
#rf_search_popup .rf_search_products_grid.is-list .rf_search_product_image {
  margin: 0;
  height: 150px;
}
#rf_search_popup .rf_search_products_grid.is-list .rf_search_product_action {
  align-self: end;
}
#rf_search_popup .rf_search_product {
  min-height: 326px;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(18, 27, 35, 0.05);
}
.rf_search_product_media {
  position: relative;
  margin-bottom: 12px;
}
#rf_search_popup .rf_search_product_image {
  height: 144px;
  margin: 0;
  aspect-ratio: auto;
}
#rf_search_popup .rf_search_product_name {
  min-height: 41px;
  color: var(--rf-text) !important;
  font-size: 16px;
}
#rf_search_popup .rf_search_product_meta {
  display: flex;
  gap: 6px;
  min-height: 18px;
  margin-top: 7px;
}
#rf_search_popup .rf_search_product_meta i {
  color: #a0a6ad;
  font-style: normal;
}
#rf_search_popup .rf_search_product_price {
  margin-top: 10px;
}
#rf_search_popup .additional_price {
  font-size: 20px;
}
.rf_product_badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.rf_product_badge.is-hit {
  color: #00652f;
  background: rgba(0, 152, 70, 0.14);
}
.rf_product_badge.is-discount {
  color: #fff;
  background: #f04c7d;
}
.rf_search_favorite {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.rf_search_favorite i {
  color: #94a0aa;
  font-size: 32px;
  line-height: 34px;
}
.rf_search_favorite:hover i,
.rf_search_favorite.is-active i {
  color: #f04c7d;
}
.rf_search_qty_control {
  display: none;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  height: 42px;
  overflow: hidden;
  border: 1px solid #cdd6de;
  border-radius: 10px;
  background: #fff;
}
.rf_search_qty_control button {
  height: 100%;
  color: #009846;
  background: #fff;
  border: 0;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}
.rf_search_qty_control span {
  color: var(--rf-text);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.rf_search_qty_control.is-updating {
  opacity: 0.72;
  pointer-events: none;
}
.rf_search_product_action.is-added .rf_search_add_to_cart {
  display: none;
}
.rf_search_product_action.is-added .rf_search_qty_control {
  display: grid;
}
.rf_search_footer_bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 12px 44px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #e0e4e8;
  box-shadow: 0 -8px 24px rgba(18, 27, 35, 0.08);
}
.rf_search_footer_actions {
  display: flex;
  gap: 10px;
}
.rf_search_clear_filters {
  min-height: 42px;
  padding: 0 14px;
  color: #6f7780;
  background: transparent;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}
.rf_search_clear_filters:hover {
  color: #006f33;
}
#rf_search_popup .rf_search_all_results {
  min-width: 220px;
  border-radius: 10px;
}
#rf_search_popup .rf_search_load_more {
  border-radius: 10px;
}
@media (max-width: 1180px) {
  #rf_search_popup #rf_search_container {
    grid-template-columns: 250px minmax(0, 1fr);
    padding-right: 24px;
    padding-left: 24px;
  }
  #rf_search_popup .rf_search_products_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  #rf_search_popup #rf_search_container {
    display: block;
    padding-right: 18px;
    padding-left: 18px;
  }
  #rf_search_popup .rf_search__left {
    display: block;
    margin-bottom: 18px;
  }
  #rf_search_popup .rf_search_discovery_panel {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
  #rf_search_popup .rf_search_products_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rf_search_results_controls {
    flex-wrap: wrap;
  }
}
@media (max-width: 767px) {
  #rf_search_popup .rf_search_popup-wrap {
    height: 100dvh;
    min-height: 100dvh;
  }
  #rf_search_popup .rf_search_popup_header {
    padding: 10px 58px 10px 10px;
  }
  #rf_search_popup .rf_search-popup-close {
    top: 10px;
    right: 8px;
  }
  .rf_search_quick_chips {
    padding: 0 10px 12px;
  }
  #rf_search_popup #rf_search_container {
    padding: 0 10px 84px;
  }
  #rf_search_popup .rf_search__left {
    display: block;
    margin-bottom: 12px;
  }
  #rf_search_popup .rf_search_discovery_panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #rf_search_popup .rf_search_discovery_group {
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(18, 27, 35, 0.04);
  }
  #rf_search_popup .rf_search_discovery_title {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
  }
  #rf_search_popup .rf_search_category_tree {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 12px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #rf_search_popup .rf_search_category_tree::-webkit-scrollbar {
    display: none;
  }
  #rf_search_popup .rf_search_category_node {
    flex: 0 0 auto;
    min-width: 172px;
    max-width: 220px;
  }
  #rf_search_popup .rf_search_category_node ul {
    margin-left: 0;
    padding-left: 10px;
  }
  #rf_search_popup .rf_search_category_parent,
  #rf_search_popup .rf_search_category_link {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 13px;
  }
  #rf_search_popup .rf_search_category_node ul .rf_search_category_node {
    min-width: 150px;
    max-width: 200px;
  }
  #rf_search_popup .rf_search_brand_scroller {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 12px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #rf_search_popup .rf_search_brand_scroller::-webkit-scrollbar {
    display: none;
  }
  #rf_search_popup .rf_search_brand_link {
    flex: 0 0 auto;
    max-width: 180px;
  }
  #rf_search_popup .rf_search_products_header {
    align-items: flex-start;
    flex-direction: column;
  }
  .rf_search_results_controls {
    justify-content: flex-start;
    width: 100%;
  }
  .rf_search_sort_select {
    flex: 1 1 180px;
    min-width: 0;
  }
  #rf_search_popup .rf_search_products_grid,
  #rf_search_popup .rf_search_products_grid.is-list {
    grid-template-columns: minmax(0, 1fr);
  }
  #rf_search_popup .rf_search_products_grid.is-list .rf_search_product,
  #rf_search_popup .rf_search_product {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(112px, auto) auto;
    min-height: 0;
    gap: 0 13px;
  }
  #rf_search_popup .rf_search_product_media {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;
    margin: 0;
  }
  #rf_search_popup .rf_search_product_image {
    width: 112px;
    height: 112px;
  }
  #rf_search_popup .rf_search_product_content {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
  }
  #rf_search_popup .rf_search_product_action {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    display: block;
    margin-top: 7px;
  }
  #rf_search_popup .rf_search_product_action .rf_search_add_to_cart {
    width: auto;
    min-width: 116px;
    min-height: 40px;
    padding: 0 12px !important;
    border-radius: 12px;
  }
  #rf_search_popup .rf_search_product_action .rf_search_qty_control {
    min-height: 40px;
    margin: 0;
  }
  #rf_search_popup .rf_search_product_meta {
    display: none;
  }
  #rf_search_popup .additional_price {
    font-size: 17px;
  }
  .rf_search_footer_bar {
    flex-direction: row;
    align-items: stretch;
    padding: 10px 10px 10px;
  }
  .rf_search_footer_actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(96px, 0.34fr) minmax(0, 1fr);
    gap: 8px;
  }
  #rf_search_popup .rf_search_all_results,
  #rf_search_popup .rf_search_load_more {
    width: 100%;
    min-width: 0;
  }
  #rf_search_popup .rf_search_footer_actions .rf_search_all_results:only-child {
    grid-column-start: 1;
    grid-column-end: 3;
  }
}
