.stls-wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 36px;
  padding: 28px 44px 34px;
  border-radius: 10px;
  background: #f0f3f8;
  box-sizing: border-box;
}

.stls-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 0 22px;
}

.stls-tab {
  border: 0;
  padding: 0;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
}

.stls-tab:hover,
.stls-tab.is-active {
  color: #d1007f;
}

.stls-search-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.stls-input-wrap {
  position: relative;
  flex: 1 1 auto;
}

.stls-search-input,
.stls-category,
.stls-post-type,
.stls-order {
  width: 100%;
  min-height: 50px;
  border: 0;
  outline: none;
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  padding: 0 46px 0 14px;
  box-shadow: none;
  box-sizing: border-box;
}

.stls-search-input::placeholder {
  color: #6f7688;
  opacity: 1;
}

.stls-category,
.stls-post-type,
.stls-order {
  flex: 0 0 170px;
  border-left: 1px solid #eef0f4;
  border-radius: 0;
  padding: 0 14px;
}

.stls-submit {
  min-height: 50px;
  border: 0;
  border-radius: 0 8px 8px 0;
  padding: 0 26px;
  background: #d1007f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}

.stls-submit:hover {
  opacity: .92;
}

.stls-clear {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #f1f1f5;
  color: #555;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.stls-wrapper.has-value .stls-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stls-loader {
  display: none;
  width: 24px;
  height: 24px;
  margin: 18px auto 0;
  border-radius: 50%;
  border: 3px solid rgba(0,0,0,.12);
  border-top-color: rgba(0,0,0,.55);
  animation: stls-spin .7s linear infinite;
}

@keyframes stls-spin {
  to { transform: rotate(360deg); }
}

.stls-results {
  width: 100%;
  max-width: 1120px;
  margin: 64px auto 0;
}

.stls-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.stls-result-card {
  overflow: hidden;
  border-radius: 4px;
  background: #eef2f7;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.stls-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.stls-result-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.stls-result-image {
  height: 170px;
  background: #0b0d13;
  overflow: hidden;
}

.stls-result-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stls-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(135deg, #111827, #07070a);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  box-sizing: border-box;
}

.stls-result-content {
  min-height: 118px;
  padding: 18px 18px 20px;
  background: #eef2f7;
  box-sizing: border-box;
}

.stls-card-category {
  display: inline-block;
  margin: 0 0 8px;
  color: #d1007f;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.stls-result-content h3 {
  margin: 0 0 8px;
  color: #07111f;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 800;
}

.stls-result-content p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.stls-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.stls-load-more {
  min-height: 28px;
  border: 0;
  border-radius: 3px;
  padding: 0 18px;
  background: #d1007f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.stls-no-results {
  padding: 42px 24px;
  border-radius: 6px;
  background: #eef2f7;
  text-align: center;
}

.stls-no-results strong {
  display: block;
  font-size: 22px;
  margin-bottom: 7px;
  color: #111827;
}

.stls-no-results span {
  display: block;
  color: #667085;
  font-size: 14px;
}

@media (max-width: 900px) {
  .stls-wrapper {
    padding: 24px;
  }

  .stls-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stls-wrapper {
    padding: 22px 16px;
  }

  .stls-tabs {
    gap: 14px;
    justify-content: flex-start;
  }

  .stls-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .stls-search-input,
  .stls-category,
  .stls-post-type,
  .stls-order,
  .stls-submit {
    min-height: 50px;
    border-radius: 8px;
  }

  .stls-category,
  .stls-post-type,
  .stls-order {
    flex-basis: auto;
  }

  .stls-results {
    margin-top: 36px;
  }

  .stls-result-grid {
    grid-template-columns: 1fr;
  }
}
