#p3-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
  width: 100%;
  z-index: 200010;
}

#p3-search input {
  flex: 1;
  height: 40px;
  border-radius: 5px;
}

#p3-search button {
  height: 40px;
  width: 40px;
  margin-left: 10px;
  border-radius: 5px;
  background: #FF6400;
  color: #fff;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
}

#p3-search button::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#p3-autocomplete {
  position: fixed !important;
  top: 46px;
  left: 0;
  right: auto;
  background: #fff;
  border: 0px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  z-index: 2147483000 !important;
  display: none;
  overflow: hidden;
  padding-top: 6px;
}

#p3-autocomplete.open {
  display: block;
}

.p3-ac-list {
  max-height: 320px;
  overflow-y: auto;
}

.p3-ac-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #f1f1f1;
  align-items: flex-start;
}

.p3-ac-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #f5f5f5;
}

.p3-ac-thumbless {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.p3-ac-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.p3-ac-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  display: block;
}

.p3-ac-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.p3-ac-meta {
  font-size: 12px;
  color: #777;
  display: block;
}

.p3-ac-price {
  color: #FF6400;
  font-weight: 700;
  margin-left: 8px;
  white-space: nowrap;
}

.p3-ac-footer {
  display: block;
  padding: 10px 12px;
  text-align: center;
  background: #f9f9f9;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

.elementor-widget-html,
.elementor-widget-html .elementor-widget-container {
  overflow: visible !important;
}

/* Lift header containers so autocomplete sits above nav/mega menus */
.elementor-16278 .elementor-element.elementor-element-5951f97e,
.elementor-16278 .elementor-element.elementor-element-faaad69,
.elementor-16278 .elementor-element.elementor-element-3570670f,
.elementor-16278 #scroll-header,
.elementor-16278 .header_sticky,
.elementor-16278 .elementor-sticky,
.elementor-16278 .elementor-sticky--effects,
.elementor-16278 .elementor-sticky__spacer {
  position: relative !important;
  z-index: 10040 !important;
  overflow: visible !important;
}

.elementor-16278 .elementor-element.elementor-element-faaad69 .elementor-widget-container {
  overflow: visible !important;
  position: relative;
  z-index: 10041;
}

@media (max-width: 768px) {
  #p3-search {
    max-width: 100%;
  }

  #p3-autocomplete {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Search page layout + cards to match archive look */
#p3-search-page {
  padding: 24px 0 40px;
}

#p3-search-page .p3-search-top {
  display: flex;
  justify-content: right;
  align-items: end;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 18px;
  padding: 0 16px;
}

#p3-search-page #p3-stats {
  justify-self: flex-start;
  font-size: 14px;
  font-weight: 600;
}

#p3-search-page .p3-grid,
.p3-archive-enable .p3-grid {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 20px;
  max-width: 1400px !important;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* Force Elementor wrapper to stop flexing the grid into two columns */
#p3-search-page .elementor-element.elementor-element-c133bd3 {
  display: block !important;
  width: 100% !important;
}

/* Catch any inner Elementor containers in the search template and let the grid span full width */
#p3-search-page .e-con,
#p3-search-page .e-con-inner,
#p3-search-page .elementor-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

#p3-search-page .p3-results {
  display: block;
  width: 100%;
}

#p3-search-page .p3-hits {
  width: 100%;
}

#p3-search-page .p3-results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

/* Search box */
#p3-search-box {
  width: 100%;
  max-width: 35%;
  margin: 0;
  flex: 1;
  min-width: 260px;
}

#p3-search-box .ais-SearchBox-form {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

#p3-search-box .ais-SearchBox-input {
  flex: 1;
  height: 40px;
  border: 1px solid #d8d8e0;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  color: #151535;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

#p3-search-box .ais-SearchBox-input::placeholder {
  color: #5d6473;
}

#p3-search-box .ais-SearchBox-submit,
#p3-search-box .ais-SearchBox-reset {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  border: 1px solid #d8d8e0;
  background: #61CE70;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

#p3-search-box .ais-SearchBox-reset {
  background: #ff6400;
  border-color: #ff6400;
  color: #fff;
}

#p3-search-box .ais-SearchBox-reset svg {
  fill: currentColor;
  flex: none;
  size: 12px;
}

#p3-search-box .ais-SearchBox-submit svg {
  fill: currentColor;
  flex: none;
  size: 12px;
}

#p3-search-box .ais-SearchBox-reset:hover {
  background: #e85f00;
  border-color: #e85f00;
}

@media (max-width: 900px) {
  #p3-search-page .p3-search-top {
    flex-direction: column;
  }

  #p3-search-page #p3-sorts {
    flex: 1 1 auto;
    max-width: 100%;
  }
}

/* Filters */
#p3-search-page .p3-filters,
.p3-archive-enable .p3-filters,
.p3-archive-facets {
  position: sticky;
  top: 80px;
  align-self: start;
  background: #fff;
  border: 1px solid #e5e9ee;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
}

#p3-search-page .facet-help,
.p3-archive-enable .facet-help,
.p3-archive-facets .facet-help {
  font-size: 12px;
  color: #555;
}

#p3-search-page .facet-block,
.p3-archive-enable .facet-block,
.p3-archive-facets .facet-block {
  background: #fff;
  border: 1px solid #e5e9ee;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hits grid */
#p3-search-page .ais-Hits-list,
#p3-search-page .ais-InfiniteHits-list,
#p3-search-page .ais-InfiniteHits .ais-InfiniteHits-list,
#p3-archive-hits .ais-InfiniteHits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 12px;
}

#p3-search-page .ais-Hits-item,
#p3-search-page .ais-InfiniteHits-item,
#p3-archive-hits .ais-InfiniteHits-item {
  margin: 0;
  padding: 0;
}

/* Cards (shared) */
#p3-search-page .elementor-post,
#p3-archive-hits .elementor-post {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#p3-search-page .product-card,
#p3-archive-hits .product-card {
  height: 100%;
}

#p3-search-page .archive-product-card,
#p3-archive-hits .archive-product-card {
  min-height: 24.5rem;
}

#p3-search-page .elementor-post__card,
#p3-archive-hits .elementor-post__card {
  background: #f8f9fb;
  border-radius: 15px;
  box-shadow: 4px 8px 22px rgba(0, 0, 0, 0.5);
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#p3-search-page .elementor-post__text,
#p3-archive-hits .elementor-post__text {
  display: grid;
  gap: 6px;
  grid-template-rows: auto auto auto 1fr auto;
  padding: 0;
  margin-top: 0;
  text-align: left;
}

/* Text */
#p3-search-page .elementor-post__title,
#p3-archive-hits .elementor-post__title {
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: -webkit-center;
  overflow: hidden;
  min-height: 2.6em;
}

#p3-search-page .elementor-post__title a,
#p3-archive-hits .elementor-post__title a {
  color: #151535;
  text-decoration: none;
  font-weight: 700;
}

#p3-search-page .elementor-post__title a:hover,
#p3-archive-hits .elementor-post__title a:hover {
  color: #2B5BD8;
}

#p3-search-page .elementor-post__excerpt,
#p3-archive-hits .elementor-post__excerpt { display: none; }

/* Image */
#p3-search-page .elementor-post__thumbnail,
#p3-archive-hits .elementor-post__thumbnail {
  margin: 0 0 10px 0;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  position: relative;
}

#p3-search-page .elementor-post__thumbnail img,
#p3-archive-hits .elementor-post__thumbnail img {
  width: 100%;
  max-width: 100%;
  height:100%;
  object-fit: contain;
  background: #fff;
}

#p3-search-page .archive-product-card .p3-cta-row.single,
#p3-archive-hits .archive-product-card .p3-cta-row.single {
  grid-template-columns: 1fr;
  justify-items: center;
}

#p3-search-page .archive-product-card .p3-cta-row.single .p3-btn,
#p3-archive-hits .archive-product-card .p3-cta-row.single .p3-btn {
  width: 60%;
}

#p3-search-page .archive-product-card .elementor-widget-divider .elementor-divider-separator,
#p3-archive-hits .archive-product-card .elementor-widget-divider .elementor-divider-separator {
  border-bottom: 3px solid #FF6400;
  border-radius: 4px;
  width: 70%;
  margin: 4px auto 2px;
  box-shadow: 0 2px 0 rgba(255, 100, 0, 0.15);
}

#p3-search-page .p3-img-wrap,
#p3-archive-hits .p3-img-wrap {
  position: relative;
  display: block;
}

#p3-search-page .elementor-post__thumbnail::after,
#p3-archive-hits .elementor-post__thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.30), rgba(255, 255, 255, 0) 70%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

#p3-search-page .archive-product-card:hover .elementor-post__thumbnail::after,
#p3-archive-hits .archive-product-card:hover .elementor-post__thumbnail::after {
  opacity: 0.5;
}

#p3-search-page .p3-quick-view,
#p3-archive-hits .p3-quick-view {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translate(-50%, 8px);
  background: #fff;
  color: #151535;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

#p3-search-page .p3-img-wrap:hover .p3-quick-view,
#p3-archive-hits .p3-img-wrap:hover .p3-quick-view {
  opacity: 1;
  transform: translate(-50%, -8px);
}

/* Hide content type facet on search (products only) */
#p3-search-page .facet-block [data-p3-refine="post_type"] {
  display: none !important;
}
#p3-search-page .facet-block:has([data-p3-refine="post_type"]) {
  display: none !important;
}

#p3-search-page .p3-price-missing,
#p3-archive-hits .p3-price-missing {
  color: #151535;
  font-weight: 700;
  font-size: 13px;
  opacity: 0.85;
}

#p3-search-page .p3-cta-row,
#p3-archive-hits .p3-cta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

#p3-search-page .p3-btn,
#p3-archive-hits .p3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 4rem;
  border-radius: 999px;
  color: #151535;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  font-size: 0.95rem;
  background: #F0F0F0;
  border: 1px solid #d8d8e0;
  padding: 8px 14px;
}

/* Divider */
#p3-search-page .elementor-widget-divider .elementor-divider-separator {
  border-bottom: 4px solid #FF6400;
  border-radius: 4px;
  width: 82%;
  margin: 0 auto;
  box-shadow: 0 3px 0 rgba(255, 100, 0, 0.25);
}

/* Buttons hidden (see more removed) */

/* Load more */
.ais-InfiniteHits-loadMore {
  margin: 12px auto;
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  background: #ff6400;
  color: #151535;
  border: none;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
}

.ais-InfiniteHits-loadMore[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

#p3-search-page .filter-title {
  font-size: 15px;
  font-weight: 700;
  color: #151535;
}

#p3-search-page .facet-title {
  font-size: 13px;
  font-weight: 700;
  color: #151535;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#p3-search-page .ais-RefinementList-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  font-size: 13px;
  color: #333;
  flex-wrap: wrap;
}

#p3-search-page .ais-RefinementList-searchBox {
  display: none;
  margin-bottom: 8px;
}

#p3-search-page .p3-facet-search-open .ais-RefinementList-searchBox {
  display: block;
}

#p3-search-page .ais-RefinementList-searchBox .ais-SearchBox-form {
  display: flex;
  gap: 6px;
}

#p3-search-page .ais-RefinementList-searchBox .ais-SearchBox-input {
  flex: 1;
  border: 1px solid #d8d8e0;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
}

#p3-search-page .ais-RefinementList-searchBox .ais-SearchBox-submit,
#p3-search-page .ais-RefinementList-searchBox .ais-SearchBox-reset {
  display: none;
}

#p3-search-page .facet-search-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #1d2f5b;
  margin-left: auto;
}

#p3-search-page .ais-RefinementList-checkbox {
  accent-color: #0e6b8c;
  width: 16px;
  height: 16px;
}

#p3-search-page .ais-RefinementList-count {
  display: inline;
  margin-left: 12px;
  padding-left: 0;
  color: #5d6473;
  font-size: 12px;
}

#p3-search-page .ais-ToggleRefinement-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
}

#p3-search-page .ais-RangeSlider {
  margin-top: 8px;
}

#p3-search-page #p3-sorts {
  margin: 0;
  max-width: 260px;
  width: 100%;
  flex: 0 0 240px;
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
}

#p3-search-page #p3-sorts .ais-SortBy {
  width: 100%;
}

#p3-search-page #p3-sorts .ais-SortBy-select {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d8d8e0;
  background: #fff;
  color: #151535;
  font-weight: 500;
  padding: 0 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

#p3-search-page #p3-sorts .ais-SortBy-select:focus {
  outline: 2px solid #2B5BD8;
  outline-offset: 1px;
}

/* Hide empty/unused facets */
.ais-Panel--noRefinement,
.facet-hidden {
  display: none !important;
}

/* Hits grid/card styling to match archives */
#p3-search-page .ais-InfiniteHits-item,
#p3-search-page .ais-RefinementList-item {
  margin: 0;
  padding: 0;
}

/* Tighten spacing to match archive loop */
#p3-search-page .elementor-widget-heading {
  margin: 0;
}

#p3-search-page .elementor-widget-image {
  margin: 0;
}

#p3-search-page .elementor-widget-theme-post-excerpt {
  min-height: 60px;
}

#p3-search-page .elementor-widget-theme-post-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

/* Facet titles and actions */
#p3-search-page .facet-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d2f5b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#p3-search-page .ais-RefinementList-header,
#p3-search-page .ais-HierarchicalMenu-header,
#p3-search-page .ais-RangeSlider-header,
#p3-search-page .ais-ToggleRefinement-header {
  display: block;
  margin-bottom: 4px;
}

#p3-search-page .facet-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

#p3-search-page .p3-button {
  width: 100%;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #d8d8e0;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #1d2f5b;
}

#p3-search-page .p3-button.primary {
  background: #1f6fe9;
  color: #fff;
  border-color: #1f6fe9;
}

#p3-search-page .p3-button.ghost {
  background: #fff;
  color: #1d2f5b;
}

/* Archive facets: align reset to ghost styling */
.p3-archive-facets .facet-actions .facetwp-reset,
.p3-archive-facets .facet-actions button {
  background: #fff;
  color: #1d2f5b;
  border: 1px solid #d8d8e0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  text-decoration: none;
}
.p3-archive-facets .facet-actions .facetwp-reset:hover,
.p3-archive-facets .facet-actions button:hover {
  background: #f4f6fb;
}

#p3-search-page .ais-ClearRefinements-button {
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

#p3-search-page .ais-ClearRefinements-button--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#p3-search-page .ais-RefinementList-showMore {
  margin-top: 6px;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  color: #2B5BD8;
  font-weight: 600;
  box-shadow: none;
  margin-left: 22px;
  font-size: 12px;
}

#p3-search-page .ais-RefinementList-showMore:hover {
  text-decoration: underline;
}

#p3-search-page .ais-RefinementList-showMore--disabled {
  display: none;
}

/* Price */
#p3-search-page .p3-price {
  text-align: center;
  color: #FF6400;
  margin: 4px 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05px;
}

#p3-search-page .p3-price-note {
  font-size: 11px;
  font-weight: 600;
  color: #151535;
  text-transform: uppercase;
  margin-left: 4px;
}

#p3-search-page .p3-quick-add-label {
  font-size: 12px;
  font-weight: 700;
  color: #151535;
  text-align: center;
}

/* CTA row */
#p3-search-page .p3-cta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 15px 0 15px;
  align-items: stretch;
  margin-top: auto;
}

#p3-search-page .p3-cta-row.single {
  grid-template-columns: 1fr;
  justify-items: center;
}

#p3-search-page .p3-cta-row.single .p3-btn {
  width: 60%;
}

#p3-search-page .p3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.9rem;
  width: 100%;
  border-radius: 10px;
  color: #151535;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  font-size: 0.85rem!important;
  background: #F0F0F0;
  border: 1px solid #d8d8e0;
}

#p3-search-page .p3-btn:hover {
  background: #e8e8ef;
}

#p3-search-page .p3-btn-cart {
  background: #61CE70;
  border-color: #51b75f;
  color: #151535;
}

#p3-search-page .p3-btn-cart:hover {
  background: #51b75f;
}

#p3-search-page .p3-btn-enquiry:not(.add-to-enquiry-loop) {
  background: #2B5BD8 !important;
  border-color: #1f46b0 !important;
  color: #fff !important;
  width: 100% !important;
  max-width: none !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  display: inline-flex !important;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12) !important;
}
#p3-search-page .p3-btn-enquiry:not(.add-to-enquiry-loop):hover { 
  background: #1f46b0 !important; }
#p3-search-page .p3-cta-row.single .p3-btn-enquiry:not(.add-to-enquiry-loop) { 
  width: 60% !important; }

#p3-search-page .p3-btn-enquiry.add-to-enquiry-loop,
#p3-search-page .p3-btn-enquiry.add-to-enquiry-loop.pi-custom-button {
  background: #FF6400 !important;
  border-color: #e85f00 !important;
  color: #151535 !important;
  width: 100% !important;
  max-width: none !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  display: inline-flex !important;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12) !important;
}
#p3-search-page .p3-btn-enquiry.add-to-enquiry-loop:hover { background: #e85f00 !important; }

#p3-search-page .p3-img-wrap {
  position: relative;
  display: block;
}

/* Remove card padding around the image */
  #p3-search-page .elementor-post__card { padding: 0; }

#p3-search-page .p3-quick-view {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translate(-50%, 8px);
  background: #fff;
  color: #151535;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#p3-search-page .p3-img-wrap:hover .p3-quick-view {
  opacity: 1;
  transform: translate(-50%, -8px);
}

/* Range input styling (from-to) */
#p3-search-page .ais-RangeInput {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#p3-search-page .ais-RangeInput-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}

#p3-search-page .ais-RangeInput-input {
  width: 100%;
  border: 1px solid #d8d8e0;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
}

#p3-search-page .ais-RangeInput-separator {
  color: #5d6473;
  font-size: 12px;
}

#p3-search-page .ais-RangeInput-submit,
#p3-search-page .ais-RangeInput-reset {
  display: none;
}

#p3-search-page .p3-btn-enquiry,
  #p3-search-page .p3-btn-enquiry.add-to-enquiry-loop {
    width: 100% !important;
    max-width: none !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12) !important;
  }
  #p3-search-page .p3-cta-row.single .p3-btn-enquiry {
    width: 60% !important;
  }
