/* Slim product badges with larger labels, matching the home page. */
.search-product .search-page-card-media > span {
  top: 16px;
  right: 15px;
  min-width: 62px;
  height: 32px;
  min-height: 32px;
  padding: 3px 14px;
  border-width: 1px;
  border-radius: 999px !important;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 13px rgba(4, 13, 26, 0.13);
}

.search-product .search-page-card-media > .favorite {
  position: absolute;
  top: 13px;
  left: 15px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-width: 1px;
  padding: 0;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 5px 13px rgba(4, 13, 26, 0.13);
}

.search-product .search-page-card-media > .favorite i {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  place-items: center;
  line-height: 1;
}

@media (max-width: 575px) {
  .search-product .search-page-card-media > span {
    top: 13px;
    right: 12px;
    min-width: 56px;
    height: 30px;
    min-height: 30px;
    padding: 3px 12px;
    font-size: 12px;
  }

  .search-product .search-page-card-media > .favorite {
    top: 10px;
    left: 12px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    font-size: 15px;
  }
}

/* Product cards mirror the visual language of the home-page collection. */
.search-product.product-card {
  overflow: hidden;
  border: 1px solid var(--industrial-line);
  border-radius: 18px;
  background: var(--industrial-bg);
  box-shadow: 0 10px 32px rgba(7, 20, 38, 0.075);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.search-product.product-card:hover {
  border-color: var(--industrial-muted);
  box-shadow: 0 22px 48px rgba(20, 31, 40, 0.12);
  transform: translateY(-6px);
}

.search-product .search-page-card-media {
  position: relative;
  height: 220px;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid
    color-mix(in srgb, var(--industrial-yellow) 14%, white);
  padding: 0 !important;
  background: var(--industrial-bg);
}

.search-product .search-page-card-media > a {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.search-product .search-page-card-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  object-position: center;
  background: var(--product-card-image-surface, #f2f5f6);
  transition: none;
}

/* Override the shared product-card image inset on search results. */
#productResults .search-page-card-media > a > img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  object-fit: cover !important;
  object-position: center;
}

.search-product:hover .search-page-card-media img {
  transform: none;
}

.search-product.product-card .search-page-card-content {
  display: flex;
  min-height: 122px;
  padding: 21px 20px 15px;
  flex-direction: column;
}

.search-page-card-heading {
  min-height: 55px;
}

.search-page-card-heading small {
  display: block;
  margin-bottom: 5px;
  color: var(--industrial-yellow-dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.search-page-card-heading h3 {
  margin: 0;
  color: var(--industrial-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.search-product .search-page-card-price {
  min-height: auto;
  margin: 5px 0 13px;
  color: var(--industrial-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.search-product.product-card .search-page-card-price.has-discount {
  align-content: center;
  column-gap: 10px;
  row-gap: 0;
}

.search-product.product-card .search-page-card-price .product-price-current {
  font-size: 16px;
  line-height: 1.45;
}

.search-product .search-page-card-price small {
  margin-right: 3px;
  color: var(--industrial-muted);
  font-size: 10px;
  font-weight: 600;
}

.search-product > .search-add-cart.add-cart {
  display: inline-flex;
  width: calc(100% - 32px);
  min-height: 48px;
  margin: 0 16px 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 9px;
  border: 1px solid var(--industrial-navy);
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--industrial-navy),
    var(--industrial-navy)
  );
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.search-page-card-action-label {
  white-space: nowrap;
}

.search-page-card-action-compact {
  display: none;
}

.search-product > .search-add-cart.add-cart:hover,
.search-product > .search-add-cart.add-cart:focus-visible {
  border-color: rgba(189, 163, 111, 0.5);
  background: linear-gradient(
    135deg,
    var(--industrial-navy),
    var(--industrial-navy)
  );
  box-shadow: 0 10px 24px rgba(7, 20, 38, 0.18);
}

/* Search owns its card rhythm after shared desktop styles have loaded. */
@media (min-width: 768px) {
  .inner-page .search-product.product-card.search-page-card .search-page-card-content {
    min-height: 0;
    padding: 13px 14px !important;
    flex: 0 0 auto;
  }

  .inner-page .search-product.product-card.search-page-card .search-page-card-title {
    margin: 0 0 7px !important;
  }

  .inner-page .search-product.product-card.search-page-card .search-page-card-price {
    min-height: 58px !important;
    margin: auto 0 8px !important;
    color: var(--industrial-navy) !important;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.7;
  }
}

@media (max-width: 575px) {
  .search-product .search-page-card-media {
    height: 175px;
    padding: 0;
  }

  .search-product .search-page-card-content {
    min-height: 148px;
    padding: 18px 17px 14px;
  }

  .search-product > .search-add-cart.add-cart {
    width: calc(100% - 28px);
    margin: 0 14px 14px;
  }

}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--industrial-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.search-intro > .container,
.search-main.container {
  width: min(var(--container-wide-max), calc(100% - 48px));
  max-width: var(--container-wide-max);
  margin: auto;
}




.header-cart {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 11px;
  background: #fff;
  color: var(--color-navy);
  font-size: 19px;
}

.search-intro {
  padding: 58px 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--industrial-navy);
  background-image:
    linear-gradient(
      90deg,
      rgba(6, 24, 63, 0.88) 0%,
      rgba(8, 28, 65, 0.66) 34%,
      rgba(6, 24, 63, 0.38) 62%,
      rgba(4, 16, 40, 0.78) 100%
    ),
    url("/shop/images/heroes/hero-measurement-tools.png");
  background-position: center, center;
  background-size: cover;
  color: #fff;
}

.search-intro > .container {
  display: flex;
  flex-direction: column;
}

.search-intro .taxonomy-breadcrumb {
  align-self: flex-start;
  max-width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.search-intro .taxonomy-breadcrumb ol {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 5px 9px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(5, 22, 48, 0.38);
}

.search-intro .taxonomy-breadcrumb li,
.search-intro .taxonomy-breadcrumb a,
.search-intro .taxonomy-breadcrumb [aria-current] {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.search-intro .taxonomy-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.search-intro .taxonomy-breadcrumb li > .bi-chevron-left {
  flex: 0 0 auto;
  color: var(--industrial-yellow);
  font-size: 10px;
}

.search-intro .taxonomy-breadcrumb [aria-current] {
  padding: 4px 9px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.search-intro::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(91, 132, 194, 0.26),
      transparent 38%
    ),
    linear-gradient(180deg, rgba(3, 14, 34, 0.08), rgba(3, 14, 34, 0.34));
  content: "";
  pointer-events: none;
}

.search-intro > .container {
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.search-intro h1 {
  margin: 12px 0 8px;
  font-size: 40px;
}

.search-intro h1 em {
  color: var(--industrial-yellow);
  font-style: normal;
}

.search-intro p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  line-height: 2;
}

.search-main {
  display: grid;
  padding-block: 38px 80px;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filter-panel {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--industrial-muted);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(11, 40, 104, 0.1);
}

#main-content .filter-panel {
  scrollbar-width: none;
}

#main-content .filter-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}


.filter-head {
  display: flex;
  min-height: 92px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--color-blue), var(--color-navy));
  color: #fff;
}

.filter-head-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.filter-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.filter-head-title i {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(226, 194, 127, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--industrial-yellow);
  font-size: 15px;
}

.filter-head small {
  display: inline-flex;
  justify-self: end;
  width: fit-content;
  min-height: 29px;
  padding: 3px 9px 3px 6px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(226, 194, 127, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.filter-head small b {
  display: inline-flex;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--industrial-navy);
  color: color-mix(in srgb, var(--industrial-yellow) 14%, white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.filter-head button {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.clear-filters {
  display: flex;
  width: calc(100% - 28px);
  min-height: 44px;
  margin: 14px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--industrial-muted);
  border-radius: 10px;
  background: var(--industrial-bg);
  color: var(--industrial-yellow-dark);
  font-size: 13px;
  font-weight: 600;
}

.clear-filters i {
  font-size: 14px;
}

.clear-filter-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  margin-inline-start: auto;
  padding: 0 6px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--industrial-yellow-dark) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--industrial-yellow) 18%, white);
  color: var(--industrial-navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.filter-group {
  border-top: 1px solid var(--color-line);
}

.filter-group > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--industrial-navy);
  font-weight: 700;
}

.filter-group > button i {
  transition: 0.2s;
}

.filter-group.open > button i {
  transform: rotate(180deg);
}

.filter-options,
.price-filter {
  display: none;
  padding: 0 16px 15px;
}

.filter-group.open .filter-options,
.filter-group.open .price-filter {
  display: block;
}

.filter-option {
  display: flex;
  align-items: center;
  color: var(--industrial-steel);
  font-size: 11px;
  cursor: pointer;
}

.filter-option input {
  accent-color: var(--color-blue);
}

.filter-option small {
  margin-right: auto;
  color: var(--industrial-muted);
}

.price-filter-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  color: var(--industrial-yellow-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.price-filter-values > span:last-child {
  color: var(--industrial-navy);
  font-size: 14px;
  font-weight: 800;
}

.price-range {
  position: relative;
  height: 32px;
  margin: 12px 5px 0;
  direction: ltr;
}

.price-range-track {
  position: absolute;
  top: 14px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to left,
    #dce3e8 var(--range-start),
    var(--industrial-yellow) var(--range-start),
    var(--industrial-yellow) var(--range-end),
    #dce3e8 var(--range-end)
  );
}

.price-range-input {
  position: absolute;
  inset: 0;
  direction: rtl;
  width: 100%;
  height: 32px;
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: transparent;
  accent-color: var(--industrial-yellow);
}

.price-range-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.price-range-input::-moz-range-track {
  height: 4px;
  background: transparent;
}

.price-range-input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--industrial-yellow);
  box-shadow: 0 1px 5px rgba(15, 39, 66, 0.3);
  pointer-events: auto;
  appearance: none;
  cursor: grab;
}

.price-range-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--industrial-yellow);
  box-shadow: 0 1px 5px rgba(15, 39, 66, 0.3);
  pointer-events: auto;
  cursor: grab;
}

.price-range-input:active::-webkit-slider-thumb,
.price-range-input:active::-moz-range-thumb {
  cursor: grabbing;
}

.price-range-input:focus-visible::-webkit-slider-thumb,
.price-range-input:focus-visible::-moz-range-thumb {
  outline: 3px solid rgba(20, 52, 83, 0.2);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .price-range { margin-inline: 8px; }
  .price-range-input { height: 40px; }
  .price-range { height: 40px; }
  .price-range-track { top: 18px; }
}

.price-filter small {
  display: block;
  margin-top: 4px;
  color: var(--industrial-steel);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
}

.results-toolbar {
  display: flex;
  margin-bottom: 18px;
  gap: 14px;
}

.search-box {
  display: flex;
  min-height: 54px;
  flex: 1;
  padding: 0 17px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--industrial-line);
  border-radius: 14px;
  background: #fff;
}

.search-box:focus-within {
  border-color: var(--industrial-muted);
  box-shadow: none;
}

.search-box i {
  color: var(--industrial-yellow-dark);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.search-box input:focus-visible {
  outline: 0;
}

.search-box input:focus,
.search-box input:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.search-box input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}

.sort-box {
  display: flex;
  min-width: 0;
  min-inline-size: 0;
  margin: 0;
  padding: 7px 12px;
  align-items: center;
  gap: 14px;
  border: 1px solid #d8e1e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(16, 42, 67, 0.035);
}

.sort-label {
  flex: 0 0 auto;
  color: var(--industrial-steel);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.sort-label i {
  margin-inline-start: 4px;
  color: #93a0aa;
  font-size: 13px;
}

.sort-options {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.sort-option {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  padding: 0 13px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5f6c78;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.sort-option input {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sort-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--industrial-yellow) 52%, white);
  background: color-mix(in srgb, var(--industrial-yellow) 17%, white);
  color: var(--industrial-navy);
  font-weight: 750;
}

.sort-option:has(input:focus-visible) {
  outline: 2px solid #a87c19;
  outline-offset: 2px;
}

.sort-option:hover:not(:has(input:checked)) {
  background: #f5f7f8;
  color: var(--industrial-navy);
}

.results-summary {
  display: flex;
  min-height: 42px;
  margin-bottom: 17px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.results-summary p {
  margin: 0;
  color: var(--industrial-steel);
  font-size: 11px;
}

.results-summary b {
  color: var(--color-blue);
  font-size: 16px;
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 6px 9px;
  border: 1px solid var(--industrial-muted);
  border-radius: 999px;
  background: var(--industrial-bg);
  color: var(--industrial-yellow-dark);
  font-size: 9px;
}

.product-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 1480px) {
  .inner-page .search-main .search-page-results {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.search-product {
  overflow: hidden;
  border: 1px solid var(--industrial-muted);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(11, 40, 104, 0.07);
  animation: productIn 0.35s ease both;
  transition: 0.25s;
}

.search-product:hover {
  border-color: var(--industrial-muted);
  box-shadow: 0 17px 35px rgba(11, 40, 104, 0.13);
  transform: translateY(-5px);
}

.search-page-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--industrial-bg);
}

.search-page-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.search-product:hover img {
  transform: scale(1.04);
}

.search-page-card-media span {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--industrial-navy) 91%, transparent);
  color: #fff;
  font-size: 8px;
}

.search-page-card-content {
  padding: 17px;
}

.empty-results {
  position: relative;
  display: flex;
  width: min(100%, 680px);
  min-height: 290px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px auto;
  padding: 38px 28px;
  overflow: hidden;
  border: 1px solid #dce4e8;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 0%, #f7f9fa 100%);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.08);
  text-align: center;
}

.empty-results[hidden] {
  display: none;
}

.empty-results::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f6c515 24%, #d9b16e 76%, transparent);
  content: "";
}

.empty-results::after {
  position: absolute;
  top: -75px;
  right: -58px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(217, 177, 110, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(217, 177, 110, 0.04), 0 0 0 42px rgba(217, 177, 110, 0.025);
  content: "";
  pointer-events: none;
}

.empty-results > i {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 5px;
  place-items: center;
  border: 1px solid rgba(246, 197, 21, 0.42);
  border-radius: 20px;
  background: #fff8db;
  color: #b68d00;
  font-size: 28px;
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.07);
}

.empty-results h2 {
  margin: 4px 0 0;
  color: var(--industrial-navy);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.6;
}

.empty-results p {
  margin: 0;
  color: var(--industrial-steel);
  font-size: 14px;
  line-height: 1.9;
}

.empty-results button {
  position: relative;
  z-index: 1;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px 22px;
  border: 1px solid var(--industrial-navy);
  border-radius: 12px;
  background: var(--industrial-navy);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.16);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.empty-results button:hover,
.empty-results button:focus-visible {
  border-color: #e5b700;
  background: #f6c515;
  color: var(--industrial-navy);
  box-shadow: 0 10px 22px rgba(16, 42, 67, 0.18);
}

@media (max-width: 575px) {
  .empty-results {
    min-height: 250px;
    margin: 22px auto;
    padding: 30px 18px;
    border-radius: 18px;
  }

  .empty-results h2 {
    font-size: 20px;
  }

  .empty-results p {
    font-size: 13px;
  }
}

.results-end {
  position: relative;
  display: flex;
  width: min(560px, 100%);
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin: 48px auto 0;
  padding: 22px 26px;
  overflow: hidden;
  border: 1px solid #dce4e8;
  border-radius: 20px;
  background:
    radial-gradient(circle at 9% 100%, rgba(246, 197, 21, 0.11) 0 34px, transparent 35px),
    radial-gradient(circle at 9% 100%, transparent 0 49px, rgba(16, 42, 67, 0.055) 50px 51px, transparent 52px),
    linear-gradient(145deg, #fff 0%, #f7f9fa 100%);
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.07);
  text-align: start;
}

.search-main .results-area > #resultsEnd {
  margin-top: 88px !important;
}

.results-end::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f6c515 24%, #d9b16e 76%, transparent);
  content: "";
}

.results-end[hidden] {
  display: none;
}

.results-end .end-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border: 1px solid rgba(16, 42, 67, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, #183b57, #102a43);
  color: #f6c515;
  font-size: 24px;
  box-shadow: 0 7px 16px rgba(16, 42, 67, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.results-end strong {
  display: block;
  color: var(--industrial-navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.8;
}

.results-end p {
  margin: 4px 0 0;
  color: var(--industrial-steel);
  font-size: 15px;
  line-height: 1.9;
}

.results-end p b {
  display: inline-grid;
  min-width: 27px;
  min-height: 27px;
  margin-inline: 3px;
  padding: 1px 7px;
  place-items: center;
  border: 1px solid rgba(246, 197, 21, 0.42);
  border-radius: 9px;
  background: #fff8db;
  color: var(--industrial-navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  vertical-align: middle;
}

@media (max-width: 575px) {
  .results-end {
    width: 100%;
    gap: 12px;
    margin-top: 36px;
    padding: 18px 16px;
    border-radius: 17px;
  }

  .search-main .results-area > #resultsEnd {
    margin-top: 48px !important;
  }

  .results-end .end-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }

  .results-end strong {
    font-size: 16px;
  }

  .results-end p {
    font-size: 14px;
  }

  .results-end p b {
    min-width: 25px;
    min-height: 25px;
    font-size: 14px;
  }
}

.load-more-state {
  display: none;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #eadbb8;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf0, #fff4d6);
  box-shadow: 0 8px 24px rgba(120, 84, 28, 0.08);
  color: var(--industrial-navy);
}

.load-more-state.loading {
  display: flex;
}

.load-more-state p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.load-more-state .loader {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 3px solid #f0dfaf;
  border-top-color: #bd8611;
  border-right-color: #e4ae25;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .load-more-state .loader {
    animation: none;
  }
}

.mobile-filter-toggle,
.filter-backdrop {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes productIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .product-results {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .search-intro > .container,
  .search-main.container {
    width: calc(100% - 24px);
  }


  .inner-page .search-intro {
    padding: 18px 0 16px !important;
    background-position:
      58% center,
      58% center;
  }

  .search-intro > .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .inner-page .search-intro h1 {
    margin: 5px 0 7px !important;
    font-size: 24px !important;
    line-height: 1.55 !important;
  }

  .inner-page .search-intro p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
  }

  .inner-page .search-intro .hero-trail {
    display: none;
  }

  .inner-page .search-intro .taxonomy-breadcrumb {
    margin-bottom: 8px;
  }

  .inner-page .search-intro .taxonomy-breadcrumb ol {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .inner-page .search-intro .taxonomy-breadcrumb li:first-child span {
    display: none;
  }

  .search-main {
    display: block;
    padding-top: 12px;
  }

  .mobile-filter-toggle {
    display: flex;
    width: 100%;
    min-height: 50px;
    margin-bottom: 14px;
    padding: 0 15px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--industrial-muted);
    border-radius: 13px;
    background: #fff;
    color: var(--color-blue);
    font-weight: 700;
  }

  .mobile-filter-toggle span {
    display: grid;
    width: 23px;
    height: 23px;
    margin-right: auto;
    place-items: center;
    border-radius: 50%;
    background: var(--color-blue);
    color: #fff;
    font-size: 9px;
  }

  .filter-panel {
    position: fixed;
    z-index: 2100;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 360px);
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(105%);
    transition: 0.3s;
  }

  .filter-panel.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .filter-panel .filter-head {
    position: sticky;
    z-index: 2;
    top: 0;
  }

  .filter-panel .filter-options {
    max-height: none !important;
    overflow: visible !important;
  }

  .filter-head button {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    place-items: center;
  }

  .filter-backdrop {
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(3, 13, 35, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
  }

  .filter-backdrop.open {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .results-toolbar {
    flex-direction: column;
  }

  .sort-box {
    min-height: 50px;
    padding: 7px 9px;
    gap: 8px;
    overflow-x: auto;
  }
  .sort-options {
    flex: 0 0 auto;
  }
  .sort-option {
    min-height: 34px;
    padding-inline: 10px;
  }

  .product-results {
    grid-template-columns: 1fr;
  }

  .search-page-card-media {
    height: 280px;
  }
}

/* Compact filter choices and product specification chips */
.filter-group.open .filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-group.open #typeFilters,
.filter-group.open #movementFilters,
.filter-group.open #strapFilters {
  grid-template-columns: minmax(0, 1fr);
}

.filter-option {
  min-width: 0;
  gap: 7px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.filter-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-color-option .filter-option-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-color-option .filter-color-name {
  overflow: visible;
  text-overflow: clip;
}

.filter-color-swatch {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 1px solid rgba(16, 42, 67, 0.2);
  border-radius: 50%;
  background-color: var(--filter-color, #64748b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.filter-color-option .filter-color-swatch[style*="#ffffff"] {
  border-color: #aeb9bf;
}

.filter-chip-color {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip-color .filter-color-swatch {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

.filter-search {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  margin: 2px 0 8px;
  border: 1px solid var(--industrial-line);
  border-radius: 10px;
  background: #fff;
  color: var(--industrial-muted);
}
.filter-search > i {
  position: absolute;
  right: 11px;
  font-size: 13px;
}
.filter-search input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 34px 0 10px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--industrial-navy);
  font: inherit;
  font-size: 12px;
}
.filter-search input::placeholder {
  color: var(--industrial-muted);
}
.filter-option-hidden {
  display: none !important;
}

/* Elevated filter choices: icon-led headings and clear selected states. */
.filter-panel {
  padding-bottom: 0;
  background: var(--industrial-bg);
}

.filter-group {
  margin: 8px 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--industrial-yellow) 14%, white);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.filter-group.open {
  border-color: var(--industrial-yellow);
  background: var(--industrial-bg);
  box-shadow: 0 9px 22px rgba(28, 42, 59, 0.07);
}

.filter-group > button {
  min-height: 54px;
  padding: 0 14px;
}
.filter-group-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.filter-group-title > span {
  color: var(--industrial-steel);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.7;
}
.filter-group-title > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--industrial-yellow) 14%, white);
  border-radius: 10px;
  background: var(--industrial-bg);
  color: var(--industrial-yellow-dark);
  font-size: 28px;
  line-height: 1;
}
.filter-group-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--industrial-bg);
  color: var(--industrial-yellow-dark);
}
.filter-group > button .filter-group-arrow i {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.filter-group > button i {
  font-size: 15px;
}
.filter-group.open > button .filter-group-arrow i {
  transform: rotate(180deg);
}
.filter-group.open > button .filter-group-title > i {
  transform: none;
}
.filter-group.open .filter-options,
.filter-group.open .price-filter {
  padding: 2px 12px 13px;
}
.filter-group.open .filter-options {
  gap: 7px;
}
.filter-option {
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid color-mix(in srgb, var(--industrial-yellow) 14%, white);
  border-radius: 10px;
  background: var(--industrial-bg);
}
.filter-option:hover {
  border-color: color-mix(in srgb, var(--industrial-yellow) 17%, white);
  background: color-mix(in srgb, var(--industrial-yellow) 14%, white);
  color: var(--industrial-navy);
}
.filter-option:has(input:checked) {
  border-color: var(--industrial-yellow);
  background: color-mix(in srgb, var(--industrial-yellow) 14%, white);
  color: var(--industrial-navy);
  font-weight: 700;
}
.filter-option input {
  appearance: none;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid var(--industrial-muted);
  border-radius: 5px;
  background: #fff;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}
.filter-option input:checked {
  border-color: var(--industrial-yellow-dark);
  background: var(--industrial-yellow-dark)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.2 8.3 2.7 2.7 6-6' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E")
    center/12px no-repeat;
}
.filter-option input:focus-visible {
  box-shadow: 0 0 0 3px rgba(152, 119, 71, 0.2);
}

.filter-choice-option {
  justify-content: flex-start;
  gap: 9px;
  margin: 0;
  color: var(--industrial-navy);
  font-weight: 600;
}

.filter-choice-option > span {
  flex: 1;
}

.filter-choice-option input,
.filter-sales-plan-option input {
  border-radius: 50%;
}

.filter-choice-option input:checked,
.filter-sales-plan-option input:checked {
  background: var(--industrial-yellow-dark)
    radial-gradient(circle, #fff 0 2.5px, transparent 3px);
}

.filter-choice-option:has(input:checked),
.filter-sales-plan-option:has(input:checked) {
  border-color: var(--industrial-yellow);
  background: color-mix(in srgb, var(--industrial-yellow) 12%, white);
  color: var(--industrial-navy);
}

.filter-sales-plan-option {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
}

.filter-sales-plan-option > span {
  flex: 1;
}

.filter-group.open #salesPlanFilters {
  grid-template-columns: minmax(0, 1fr);
}

.filter-group.open #availabilityFilters {
  grid-template-columns: minmax(0, 1fr);
}

.filter-discount-option {
  display: flex;
  min-height: 46px;
  margin: 12px 12px;
  padding: 9px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: color-mix(in srgb, var(--industrial-yellow) 34%, white);
  background: linear-gradient(110deg, #fff, #fffaf0);
  color: var(--industrial-navy);
  font-weight: 700;
  cursor: pointer;
}

.filter-discount-option > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  white-space: normal;
}

.filter-discount-option > span > i {
  color: var(--industrial-yellow-dark);
  font-size: 16px;
}

.filter-discount-option input {
  flex: 0 0 17px;
}

.filter-discount-option:has(input:checked) {
  border-color: var(--industrial-yellow-dark);
  background: color-mix(in srgb, var(--industrial-yellow) 17%, white);
}

@media (max-width: 359px) {
  .filter-group.open .filter-options {
    grid-template-columns: 1fr;
  }
}

.search-product .search-page-card-media > .compare-trigger {
  position: absolute;
  top: 13px;
  right: auto;
  bottom: auto;
  left: 60px;
  z-index: 5;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 15px;
}

.search-main :is(
  .filter-head-title > i,
  .filter-group-title > i,
  .mobile-filter-toggle > i
) {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #efdfad;
  border-radius: 10px;
  background: #fff8e2;
  color: #866600;
  font-size: 16px;
  line-height: 1;
}

.search-main .filter-head-title > i {
  border-color: rgba(255, 223, 84, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #ffdf54;
}

.search-main .clear-filters > i {
  color: #866600;
  font-size: 16px;
}

@media (max-width: 767px) {
  .filter-option {
    min-height: 44px;
  }

  .filter-search {
    min-height: 44px;
  }

  .filter-search input {
    height: 42px;
    font-size: 16px;
  }
}
