body.search-results {
  overflow-x: clip;
}

body.search-results .site-content {
  background: #f7f5ef;
}

body.search-results #primary.content-area {
  width: 100%;
  float: none;
  margin: 0;
}

body.search-results .demon-product-search-results {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 30px 0 64px;
}

body.search-results .demon-product-search-results .woocommerce-products-header {
  margin: 0 0 24px;
  padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 48px);
  border: 1px solid #e0ddcf;
  border-radius: 16px;
  background: #efeee3;
  text-align: center;
}

body.search-results .demon-product-search-results .woocommerce-products-header h1 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

body.search-results .demon-product-search-results .shoptimizer-sorting {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 30px;
  padding: 16px 18px;
  border: 1px solid #e5e2d8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 28, 22, .06);
}

body.search-results .demon-product-search-results .woocommerce-ordering,
body.search-results .demon-product-search-results .woocommerce-result-count,
body.search-results .demon-product-search-results .woocommerce-pagination {
  float: none;
  width: auto;
  margin: 0;
}

body.search-results .demon-product-search-results .shoptimizer-sorting > .woocommerce-notices-wrapper:empty {
  display: none;
}

body.search-results .demon-product-search-results .woocommerce-result-count {
  text-align: center;
}

body.search-results .demon-product-search-results .woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

body.search-results .demon-product-search-results .columns-3 > ul.products {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
  margin: 0 !important;
}

body.search-results .demon-product-search-results ul.products > li.product {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (max-width: 992px) {
  body.search-results .demon-product-search-results {
    padding-top: 20px;
  }

  body.search-results .demon-product-search-results .mobile-filter {
    margin: 0 0 14px;
    border-radius: 10px;
    background: #fff;
  }

  body.search-results .demon-product-search-results .shoptimizer-sorting {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  body.search-results .demon-product-search-results .woocommerce-pagination {
    grid-column: 1 / -1;
  }

  body.search-results .demon-product-search-results .woocommerce-pagination ul {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  body.search-results .site-content > .col-full {
    padding-right: 15px;
    padding-left: 15px;
  }

  body.search-results .demon-product-search-results {
    padding-bottom: 44px;
  }

  body.search-results .demon-product-search-results .woocommerce-products-header {
    margin-bottom: 16px;
    padding: 24px 16px;
    border-radius: 12px;
  }

  body.search-results .demon-product-search-results .woocommerce-products-header h1 {
    font-size: clamp(28px, 9vw, 36px);
  }

  body.search-results .demon-product-search-results .shoptimizer-sorting {
    padding: 14px;
  }

  body.search-results .demon-product-search-results .columns-3 > ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
  }
}
