body.smart-live-search-lock {
  overflow: hidden !important;
}

.ty-search-magnifier {
  display: none !important;   
}

#smart-live-search-overlay.hidden {
  display: none !important;
}

#smart-live-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000 !important;
}

#smart-live-search-overlay .smart-live-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

#smart-live-search-overlay .smart-live-search-modal {
  position: relative;
  width: min(1480px, calc(100vw - 48px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 28px 30px;
  overflow: auto;
  box-sizing: border-box;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

#smart-live-search-overlay .smart-live-search-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  padding: 0 0 3px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#smart-live-search-overlay .smart-live-search-header {
  width: min(920px, 100%);
  margin: 0 auto 10px;
  padding-top: 2px;
  padding-right: 0;
  box-sizing: border-box;
}

#smart-live-search-overlay .smart-live-search-input-wrap {
  position: relative;
  width: 100%;
  min-height: 56px;
}

#smart-live-search-overlay .smart-live-search-submit {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(calc(-50% - 1px));
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #37923b;
  border-radius: 50%;
  background: #ffffff;
  color: #2f8f3a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  z-index: 4;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
}

#smart-live-search-overlay .smart-live-search-submit:hover {
  background: #f3faf3;
  box-shadow: 0 0 0 3px rgba(55, 146, 59, 0.08);
}

#smart-live-search-overlay .smart-live-search-submit:active {
  background: #dff0e1;
  transform: translateY(-50%) scale(0.97);
}

#smart-live-search-overlay .smart-live-search-submit-icon {
  width: 18px;
  height: 18px;
  display: block;
  color: currentColor;
  transform: translateY(-0.5px);
}

#smart-live-search-overlay .smart-live-search-input {
  width: 100%;
  height: 56px;
  padding: 0 72px 0 66px;
  border: 2px solid #cfe3d1;
  border-radius: 16px;
  background: #ffffff;
  box-sizing: border-box;
  outline: none;
  font-size: 21px;
  font-weight: 400;
  color: #1f2937;
  box-shadow: none;
}

#smart-live-search-overlay .smart-live-search-input::placeholder {
  color: #8c97a8;
  opacity: 1;
}

#smart-live-search-overlay .smart-live-search-input:focus {
  border-color: #37923b;
  box-shadow: 0 0 0 3px rgba(55, 146, 59, 0.10);
}

#smart-live-search-overlay .smart-live-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(calc(-50% - 1px));
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f2f7f2;
  color: #37923b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 2px 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

#smart-live-search-overlay .smart-live-search-query-hint {
  display: none;
  width: min(920px, 100%);
  margin: 0 auto 12px;
  padding: 8px 12px;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8faf8;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
}

#smart-live-search-overlay .smart-live-search-query-hint-main {
  color: #1f2937;
}

#smart-live-search-overlay .smart-live-search-query-hint-main strong {
  font-weight: 600;
}

#smart-live-search-overlay .smart-live-search-query-hint-original {
  color: #6b7280;
  margin-left: 8px;
  white-space: nowrap;
}

#smart-live-search-overlay .smart-live-search-query-hint-original::before {
  content: "·";
  margin-right: 8px;
  color: #9ca3af;
}

#smart-live-search-overlay .smart-live-search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(920px, 100%);
  margin: 0 auto 24px;
  box-sizing: border-box;
}

#smart-live-search-overlay .smart-live-search-tag {
  border: 1px solid #79b883;
  background: #ffffff;
  color: #2f8f3a;
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s ease;
}

#smart-live-search-overlay .smart-live-search-tag:hover {
  background: #f4fbf4;
  border-color: #37923b;
  color: #2d7e34;
}

#smart-live-search-overlay .smart-live-search-tag--active {
  background: #37923b;
  border-color: #37923b;
  color: #ffffff;
}

#smart-live-search-overlay .smart-live-search-tag--active:hover {
  background: #2f7e33;
  border-color: #2f7e33;
  color: #ffffff;
}

#smart-live-search-overlay .smart-live-search-selected-tags {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 12px;
  width: min(920px, 100%);
  margin: 0 auto 16px;
  box-sizing: border-box;
}

#smart-live-search-overlay .smart-live-search-selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #37923b;
  background: #37923b;
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  margin: 0;
}

#smart-live-search-overlay .smart-live-search-selected-tag:hover {
  background: #2f7e33;
  border-color: #2f7e33;
}

#smart-live-search-overlay .smart-live-search-selected-tag-label {
  display: inline-block;
}

#smart-live-search-overlay .smart-live-search-selected-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 18px;
  line-height: 1;
}

#smart-live-search-overlay .smart-live-search-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  align-items: start;
}

#smart-live-search-overlay .smart-live-search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 34px;
}

#smart-live-search-overlay .smart-live-search-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 4px 0;
}

#smart-live-search-overlay .smart-live-search-card:hover {
  text-decoration: none;
  color: inherit;
}

#smart-live-search-overlay .smart-live-search-card-image-link {
  display: block;
  text-decoration: none;
}

#smart-live-search-overlay .smart-live-search-card-image-wrap {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f8;
  border-radius: 10px;
  overflow: hidden;
}

#smart-live-search-overlay .smart-live-search-card-image {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
}

#smart-live-search-overlay .smart-live-search-card-content {
  min-width: 0;
}

#smart-live-search-overlay .smart-live-search-card-meta {
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

#smart-live-search-overlay .smart-live-search-card-title {
  display: block;
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  word-break: break-word;
}

#smart-live-search-overlay .smart-live-search-card-title:hover,
#smart-live-search-overlay .smart-live-search-card:hover .smart-live-search-card-title {
  color: #2f8f3a;
  text-decoration: none;
}

#smart-live-search-overlay .smart-live-search-card-buybox {
  min-height: 0;
  border: 1px solid #79b883;
  border-radius: 14px;
  padding: 12px 14px;
  box-sizing: border-box;
  background: #fff;
  margin-top: 10px;
}

#smart-live-search-overlay .smart-live-search-card-cart-form {
  position: relative;  
  margin: 0;
}

#smart-live-search-overlay .smart-live-search-card-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 25;
  min-width: 220px;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #79b883;
  background: #e8f5e9;
  color: black;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

#smart-live-search-overlay .smart-live-search-card-tooltip::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 100%;
  border-width: 7px 7px 0 7px;
  border-style: solid;
  border-color: #79b883 transparent transparent transparent;
}

#smart-live-search-overlay .smart-live-search-card-tooltip[hidden] {
  display: none !important;
}

#smart-live-search-overlay .smart-live-search-card-buybox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#smart-live-search-overlay .smart-live-search-card-buybox-price-wrap {
  min-width: 0;
  flex: 0 0 auto;
}

#smart-live-search-overlay .smart-live-search-card-buybox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

#smart-live-search-overlay .smart-live-search-card-buybox-bottom {
  margin-top: 8px;
}

#smart-live-search-overlay .smart-live-search-card-price {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
}

#smart-live-search-overlay .smart-live-search-card-price-request {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 0;
}

#smart-live-search-overlay .smart-live-search-card-stock {
  color: #2f8f3a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

#smart-live-search-overlay .smart-live-search-card-preorder {
  color: #d14343;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

#smart-live-search-overlay .smart-live-search-card-qty {
  display: grid;
  grid-template-columns: 32px 84px 32px;
  gap: 6px;
  align-items: center;
  margin: 0;
}

#smart-live-search-overlay .smart-live-search-card-qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

#smart-live-search-overlay .smart-live-search-card-qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#smart-live-search-overlay .smart-live-search-card-qty-input {
  width: 84px;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  box-sizing: border-box;
  -moz-appearance: textfield;
}

#smart-live-search-overlay .smart-live-search-card-qty-input::-webkit-outer-spin-button,
#smart-live-search-overlay .smart-live-search-card-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#smart-live-search-overlay .smart-live-search-card-actions {
  margin-top: 0;
}

#smart-live-search-overlay .smart-live-search-card-cart-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: #37923b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
}

#smart-live-search-overlay .smart-live-search-card-cart-btn:hover {
  background: #2f7e33;
}

#smart-live-search-overlay .smart-live-search-card-cart-btn:disabled {
  background: #cbd5e1;
  color: #ffffff;
  cursor: not-allowed;
}

#smart-live-search-overlay .smart-live-search-side {
  padding-top: 4px;
}

#smart-live-search-overlay .smart-live-search-side-title {
  margin: 0 0 18px;
  color: #1f2937;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

#smart-live-search-overlay .smart-live-search-popular {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#smart-live-search-overlay .smart-live-search-popular-link {
  color: #2f8f3a;
  font-size: 16px;
  line-height: 1.35;
  text-decoration: underline;
}

#smart-live-search-overlay .smart-live-search-popular-link:hover {
  color: #256f2d;
}

#smart-live-search-overlay .smart-live-search-empty {
  padding: 20px 0;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.4;
}

#smart-live-search-overlay + div[style*="DIRECT SEARCH TEMPLATE EDIT WORKS"] {
  display: none !important;
}

/* РЕЗУЛЬТАТЫ ПОИСКА */

.ty-smart-search-results-page__query {
  padding-bottom: 5px;
}

.ty-smart-search-results-page__query-original {
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.35;
}

.ty-smart-search-results-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.ty-smart-search-grid-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  position: relative;
}

.ty-smart-search-grid-card:hover {
  border-color: #37923b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ty-smart-search-grid-card--disabled {
  opacity: 0.92;
}

.ty-smart-search-grid-card__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.ty-smart-search-grid-card__image-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.ty-smart-search-grid-card__image {
  width: 96%;
  height: 96%;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.ty-smart-search-grid-card__image--empty {
  width: 96%;
  height: 96%;
  background-color: #ffffff;
  background-image: url('/items_nophoto.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.ty-smart-search-grid-card__quick-view {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: auto;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: #95a1b1;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease, background 0.15s ease;
  z-index: 5;
}

.ty-smart-search-grid-card:hover .ty-smart-search-grid-card__quick-view {
  opacity: 1;
  visibility: visible;
}

.ty-smart-search-grid-card__quick-view:hover {
  background: #6f7d90;
  color: #ffffff;
  text-decoration: none;
}

.ty-smart-search-grid-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.3;
}

.ty-smart-search-grid-card__article-label {
  font-weight: 600;
}

.ty-smart-search-grid-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.35em * 5);
  min-height: calc(1.35em * 5);
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  word-break: break-word;
}

.ty-smart-search-grid-card__title:hover {
  color: #2f8f3a;
  text-decoration: none;
}

.ty-smart-search-grid-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ty-smart-search-grid-card__price-block {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ty-smart-search-grid-card__price {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.ty-smart-search-grid-card__price-request {
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
}

.ty-smart-search-grid-card__stock {
  color: #2f8f3a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.ty-smart-search-grid-card__preorder {
  color: #d14343;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.ty-smart-search-grid-card__buy-form {
  margin-top: auto;
  position: relative;
}

.ty-smart-search-grid-card__buy-form.is-disabled .ty-smart-search-grid-card__qty-box,
.ty-smart-search-grid-card__buy-form.is-disabled .ty-smart-search-grid-card__cart-btn {
  pointer-events: none;
}

.ty-smart-search-grid-card__qty-box {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.ty-smart-search-grid-card__qty-btn {
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ty-smart-search-grid-card__qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ty-smart-search-grid-card__qty-input {
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  box-sizing: border-box;
  width: 100%;
  -moz-appearance: textfield;
}

.ty-smart-search-grid-card__qty-input::-webkit-outer-spin-button,
.ty-smart-search-grid-card__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ty-smart-search-grid-card__qty-input:disabled {
  background: #f3f4f6;
  color: #9ca3af;
}

.ty-smart-search-grid-card__tooltip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #79b883;
  background: #e8f5e9;
  color: black;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.ty-smart-search-grid-card__tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 7px 7px 0 7px;
  border-style: solid;
  border-color: #79b883 transparent transparent transparent;
}

.ty-smart-search-grid-card__tooltip[hidden] {
  display: none !important;
}

.ty-smart-search-grid-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.ty-smart-search-grid-card__cart-btn,
.ty-smart-search-grid-card__fav-btn {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.ty-smart-search-grid-card__cart-btn {
  border: 0 !important;
  background: #37923b !important;
  color: #ffffff !important;
  cursor: pointer;
}

.ty-smart-search-grid-card__cart-btn:hover {
  background: #2f7e33 !important;
  color: #ffffff !important;
}

.ty-smart-search-grid-card__cart-btn:disabled {
  background: #cbd5e1 !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
}

.ty-smart-search-grid-card__fav-btn {
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  color: #1f2937 !important;
}

.ty-smart-search-grid-card__fav-btn:hover {
  border-color: #37923b !important;
  background: #ffffff !important;
  color: #2f8f3a !important;
}

.ty-smart-search-grid-card__fav-btn .ty-icon,
.ty-smart-search-grid-card__fav-btn::before,
.ty-smart-search-grid-card__fav-btn::after {
  display: none !important;
}

.ty-smart-search-grid-card__cart-btn span,
.ty-smart-search-grid-card__fav-btn span {
  line-height: 1 !important;
}

#smart-live-search-overlay .smart-live-search-card-image-wrap {
  position: relative;
}

#smart-live-search-overlay .smart-live-search-card-quick-view {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.78);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease, background .15s ease;
  z-index: 3;
}

#smart-live-search-overlay .smart-live-search-card-image-wrap:hover .smart-live-search-card-quick-view {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#smart-live-search-overlay .smart-live-search-card-quick-view:hover {
  background: rgba(31, 41, 55, 0.92);
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 1600px) {
  .ty-smart-search-results-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1350px) {
  .ty-smart-search-results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .ty-smart-search-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #smart-live-search-overlay .smart-live-search-header {
    width: 100%;
    margin: 0 0 12px;
    padding-right: 52px;
    box-sizing: border-box;
  }
}

@media (max-width: 900px) {
  #smart-live-search-overlay .smart-live-search-body {
    display: block;
    gap: 18px;
  }

  #smart-live-search-overlay .smart-live-search-side {
    order: 2;
    margin-top: 20px;
  }

  #smart-live-search-overlay .smart-live-search-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 14px;
    padding: 16px 14px 20px;
  }

  #smart-live-search-overlay .smart-live-search-close {
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
    font-size: 38px;
    z-index: 30;
  }

  #smart-live-search-overlay .smart-live-search-input-wrap {
    width: 100%;
    min-width: 0;
  }

  #smart-live-search-overlay .smart-live-search-input {
    width: 100%;
    min-width: 0;
    height: 50px;
    font-size: 18px;
    padding: 0 56px 0 50px;
  }

  #smart-live-search-overlay .smart-live-search-submit {
    left: 12px;
    width: 30px;
    height: 30px;
  }

  #smart-live-search-overlay .smart-live-search-clear {
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  #smart-live-search-overlay .smart-live-search-query-hint,
  #smart-live-search-overlay .smart-live-search-selected-tags,
  #smart-live-search-overlay .smart-live-search-tags {
    width: 100%;
    min-width: 0;
  }

  #smart-live-search-overlay .smart-live-search-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    min-width: 0;
  }

  #smart-live-search-overlay .smart-live-search-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
    align-items: start;
  }

  #smart-live-search-overlay .smart-live-search-card-image-link {
    width: 72px;
    min-width: 72px;
  }

  #smart-live-search-overlay .smart-live-search-card-image-wrap {
    width: 72px;
    height: 72px;
    min-width: 72px;
    flex: 0 0 72px;
    border-radius: 8px;
  }

  #smart-live-search-overlay .smart-live-search-card-image {
    width: 58px;
    height: 58px;
  }

  #smart-live-search-overlay .smart-live-search-card-content {
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }

  #smart-live-search-overlay .smart-live-search-card-meta,
  #smart-live-search-overlay .smart-live-search-card-title {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
  }

  #smart-live-search-overlay .smart-live-search-card-meta {
    font-size: 12px;
    line-height: 1.3;
  }

  #smart-live-search-overlay .smart-live-search-card-title {
    font-size: 16px;
    line-height: 1.32;
    margin-bottom: 8px;
  }
}

@media (max-width: 800px) {
  .ty-smart-search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #smart-live-search-overlay .smart-live-search-modal {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    margin: 6px auto;
    padding: 14px 12px 18px;
    border-radius: 14px;
  }

  #smart-live-search-overlay .smart-live-search-header {
    padding-right: 42px;
    margin-bottom: 12px;
  }

  #smart-live-search-overlay .smart-live-search-input-wrap {
    width: 100%;
    min-height: 50px;
  }

  #smart-live-search-overlay .smart-live-search-input {
    height: 50px;
    padding: 0 54px 0 48px;
    font-size: 16px;
  }

  #smart-live-search-overlay .smart-live-search-submit {
    left: 10px;
    width: 30px;
    height: 30px;
  }

  #smart-live-search-overlay .smart-live-search-clear {
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  #smart-live-search-overlay .smart-live-search-selected-tags,
  #smart-live-search-overlay .smart-live-search-tags {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  #smart-live-search-overlay .smart-live-search-tag,
  #smart-live-search-overlay .smart-live-search-selected-tag {
    max-width: 100%;
    padding: 8px 12px;
    font-size: 13px;
  }

  #smart-live-search-overlay .smart-live-search-body {
    display: block;
  }

  #smart-live-search-overlay .smart-live-search-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #smart-live-search-overlay .smart-live-search-side {
    margin-top: 18px;
    padding-top: 0;
  }

  #smart-live-search-overlay .smart-live-search-side-title {
    font-size: 22px;
    margin: 0 0 12px;
  }

  #smart-live-search-overlay .smart-live-search-popular {
    gap: 10px;
  }

  #smart-live-search-overlay .smart-live-search-card-buybox {
    padding: 10px 12px;
    border-radius: 12px;
  }

  #smart-live-search-overlay .smart-live-search-card-price {
    font-size: 15px;
  }

  #smart-live-search-overlay .smart-live-search-card-price-request,
  #smart-live-search-overlay .smart-live-search-card-stock,
  #smart-live-search-overlay .smart-live-search-card-preorder {
    font-size: 13px;
    line-height: 1.3;
  }

  #smart-live-search-overlay .smart-live-search-card-buybox-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #smart-live-search-overlay .smart-live-search-card-buybox-controls {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  #smart-live-search-overlay .smart-live-search-card-qty {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    flex: 1 1 auto;
    min-width: 0;
  }

  #smart-live-search-overlay .smart-live-search-card-qty-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
    border-radius: 9px;
  }

  #smart-live-search-overlay .smart-live-search-card-qty-input {
    width: 100%;
    min-width: 0;
    height: 30px;
    font-size: 13px;
    border-radius: 9px;
  }

  #smart-live-search-overlay .smart-live-search-card-cart-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  #smart-live-search-overlay .smart-live-search-card-buybox-bottom {
    margin-top: 6px;
  }
  
  #smart-live-search-overlay .smart-live-search-card-quick-view {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 520px) {
  .ty-smart-search-results-grid {
    grid-template-columns: 1fr;
  }
}