/* WAI LAB — editorial results catalogue.
   Presentation-only layer: search, filters, sorting, links and card behaviour
   remain owned by the existing application components. */

.wl-app-shell .wl-results-page {
  --wl-results-ink: #171916;
  --wl-results-muted: #646862;
  --wl-results-paper: #fbf8f2;
  --wl-results-rule: rgba(47, 52, 49, .16);
  --wl-results-gold: #aa8245;
  overflow: clip;
  background: #fff;
  color: var(--wl-results-ink);
}

.wl-app-shell .wl-results-page .wl-results-top {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--wl-results-rule);
  background: var(--wl-results-paper);
}

.wl-app-shell .wl-results-page .wl-results-hero-main {
  position: relative;
  min-height: 370px;
  overflow: visible;
  isolation: isolate;
}

.wl-app-shell .wl-results-page .wl-results-hero-main::before {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 49%;
  background: url('/wai-lab/editorial/wai-lab-hero-editorial-v2.png') center 56% / cover no-repeat;
  content: '';
}

.wl-app-shell .wl-results-page .wl-results-hero-main::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #fbf8f2 0%, #fbf8f2 47%, rgba(251, 248, 242, .91) 57%, rgba(251, 248, 242, .1) 84%);
  content: '';
}

.wl-app-shell .wl-results-page .wl-results-hero-main > .wl-container {
  display: flex;
  min-height: 370px;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--wl-hero-top, 48px) 52% 42px 0;
}

.wl-app-shell .wl-results-page .wl-results-title-row {
  display: block;
  margin: 0 0 24px;
}

.wl-app-shell .wl-results-page .wl-results-title-row .wl-eyebrow {
  display: block;
  margin: 0 0 20px;
  color: #6f685f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
}

.wl-app-shell .wl-results-page .wl-results-title-row h1 {
  max-width: 720px;
  margin: 0;
  color: var(--wl-results-ink);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(48px, 4.35vw, 64px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .96;
  text-wrap: balance;
}

.wl-app-shell .wl-results-page .wl-results-title-row h1 span {
  color: var(--wl-results-gold);
}

.wl-app-shell .wl-results-page .wl-personalized-results-intro {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--wl-results-muted);
  font-size: 14px;
  line-height: 1.6;
}

.wl-app-shell .wl-results-page .wl-results-search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(100%, 780px);
}

.wl-app-shell .wl-results-page .wl-results-autocomplete {
  min-width: 0;
}

.wl-app-shell .wl-results-page .wl-results-search {
  width: 100%;
  max-width: none;
  min-height: 56px;
  gap: 13px;
  padding: 10px 14px 10px 17px;
  border: 1px solid rgba(44, 49, 47, .22);
  border-radius: 11px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(58, 50, 40, .07);
}

.wl-app-shell .wl-results-page .wl-results-search > svg {
  flex: 0 0 auto;
  color: #28302c;
}

.wl-app-shell .wl-results-page .wl-results-search input {
  min-width: 0;
  height: 34px;
  color: var(--wl-results-ink);
  font-size: 14px;
}

.wl-app-shell .wl-results-page .wl-results-search > button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  color: #565c57;
}

.wl-app-shell .wl-results-page .wl-search-compare-status {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(44, 49, 47, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #5f645f;
  font-size: 10px;
  letter-spacing: .035em;
  white-space: nowrap;
}

.wl-app-shell .wl-results-page .wl-results-controls {
  position: relative;
  z-index: 20;
  background: rgba(255, 253, 249, .96);
}

.wl-app-shell .wl-results-page .wl-filter-row {
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 15px 0;
  border: 0;
}

.wl-app-shell .wl-results-page .wl-filter-tabs {
  gap: 5px;
  padding: 0;
  scrollbar-width: none;
}

.wl-app-shell .wl-results-page .wl-filter-tabs::-webkit-scrollbar {
  display: none;
}

.wl-app-shell .wl-results-page .wl-filter-tabs button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #636762;
  font-size: 11px;
  font-weight: 500;
}

.wl-app-shell .wl-results-page .wl-filter-tabs button:hover {
  border-color: rgba(46, 52, 48, .13);
  background: #f4f0e9;
  color: var(--wl-results-ink);
}

.wl-app-shell .wl-results-page .wl-filter-tabs button.is-active {
  border-color: #262923;
  background: #262923;
  color: #fff;
  font-weight: 600;
}

.wl-app-shell .wl-results-page .wl-results-sort .wl-category-select-trigger {
  min-width: 190px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(44, 49, 47, .2);
  border-radius: 999px;
  background: #fff;
  color: #4f554f;
  font-size: 11px;
}

.wl-app-shell .wl-results-page .wl-results-sort .wl-category-select-menu {
  overflow: hidden;
  border: 1px solid rgba(44, 49, 47, .16);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 20px 45px rgba(43, 38, 31, .12);
}

.wl-app-shell .wl-results-page .wl-results-section {
  padding-top: 38px;
  padding-bottom: 110px;
  background: #fff;
}

.wl-app-shell .wl-results-page .wl-results-count {
  margin: 0 0 16px;
  color: #5f645f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
}

.wl-app-shell .wl-results-page .wl-results-order-note {
  margin: 0 0 18px;
}

.wl-app-shell .wl-results-page .wl-results-order-note summary {
  color: #4f5550;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.wl-app-shell .wl-results-page .wl-results-order-note summary::after {
  margin-left: 7px;
  content: '↓';
}

.wl-app-shell .wl-results-page .wl-results-order-note[open] summary::after {
  content: '↑';
}

.wl-app-shell .wl-results-page .wl-results-order-note p {
  margin-top: 10px;
  padding: 11px 14px;
  border-left-color: #a98249;
  background: #fbf8f2;
}

.wl-app-shell .wl-results-page .wl-master-note {
  gap: 10px;
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid var(--wl-results-rule);
  border-radius: 10px;
  background: #fbfaf7;
  color: #4e554f;
}

.wl-app-shell .wl-results-page .wl-master-note b {
  font-size: 11px;
  font-weight: 650;
}

.wl-app-shell .wl-results-page .wl-master-note span {
  color: #6c716c;
  font-size: 10.5px;
  line-height: 1.45;
}

.wl-app-shell .wl-results-page .wl-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #d7d2c9;
  background: #d7d2c9;
}

.wl-app-shell .wl-results-page .wl-product-card {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.wl-app-shell .wl-results-page .wl-product-card:hover {
  z-index: 1;
  border: 0;
  box-shadow: 0 18px 38px rgba(49, 44, 37, .09);
  transform: translateY(-2px);
}

.wl-app-shell .wl-results-page .wl-product-media {
  height: 330px;
  background: #fff;
}

.wl-app-shell .wl-results-page .wl-product-body {
  padding: 21px 22px 23px;
}

.wl-app-shell .wl-results-page .wl-product-brand {
  color: #78654a;
  font-size: 9px;
  letter-spacing: .14em;
}

.wl-app-shell .wl-results-page .wl-product-name {
  min-height: 0;
  margin: 8px 0 7px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.18;
}

.wl-app-shell .wl-results-page .wl-product-footer button,
.wl-app-shell .wl-results-page .wl-score-chip,
.wl-app-shell .wl-results-page .wl-verified-chip {
  border-radius: 999px;
}

.wl-app-shell .wl-results-page .wl-load-more-wrap .wl-btn {
  min-width: 220px;
  border-color: #262923;
  border-radius: 999px;
  background: #fff;
}

@media (max-width: 980px) {
  .wl-app-shell .wl-results-page .wl-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .wl-app-shell .wl-results-page .wl-results-hero-main {
    min-height: 0;
  }

  .wl-app-shell .wl-results-page .wl-results-hero-main::before {
    width: 44%;
    opacity: .62;
  }

  .wl-app-shell .wl-results-page .wl-results-hero-main::after {
    background: linear-gradient(90deg, #fbf8f2 0%, #fbf8f2 57%, rgba(251, 248, 242, .78) 76%, rgba(251, 248, 242, .22) 100%);
  }

  .wl-app-shell .wl-results-page .wl-results-hero-main > .wl-container {
    min-height: 310px;
    padding: var(--wl-hero-top, 48px) 36% 34px 0;
  }

  .wl-app-shell .wl-results-page .wl-results-title-row h1 {
    font-size: clamp(42px, 8vw, 56px);
  }

  .wl-app-shell .wl-results-page .wl-results-search-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .wl-app-shell .wl-results-page .wl-search-compare-status {
    width: max-content;
  }

  .wl-app-shell .wl-results-page .wl-results-controls .wl-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 12px 0;
  }

  .wl-app-shell .wl-results-page .wl-mobile-filter-trigger,
  .wl-app-shell .wl-results-page .wl-results-sort .wl-category-select-trigger {
    min-height: 48px;
    border-radius: 12px;
  }

  .wl-app-shell .wl-results-page .wl-filter-tabs {
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(43, 38, 31, .1);
  }
}

@media (max-width: 540px) {
  .wl-app-shell .wl-results-page .wl-results-hero-main::before {
    inset: 0 0 auto auto;
    width: 42%;
    height: 190px;
    background-position: 62% center;
    opacity: .48;
  }

  .wl-app-shell .wl-results-page .wl-results-hero-main::after {
    background: linear-gradient(90deg, #fbf8f2 0%, #fbf8f2 62%, rgba(251, 248, 242, .76) 82%, rgba(251, 248, 242, .2) 100%);
  }

  .wl-app-shell .wl-results-page .wl-results-hero-main > .wl-container {
    min-height: 0;
    padding: var(--wl-hero-top, 42px) 0 26px;
  }

  .wl-app-shell .wl-results-page .wl-results-title-row {
    margin-bottom: 20px;
    padding-right: 20%;
  }

  .wl-app-shell .wl-results-page .wl-results-title-row .wl-eyebrow {
    margin-bottom: 14px;
    font-size: 9px;
  }

  .wl-app-shell .wl-results-page .wl-results-title-row h1 {
    font-size: clamp(34px, 10vw, 43px);
    line-height: .98;
  }

  .wl-app-shell .wl-results-page .wl-personalized-results-intro {
    font-size: 12.5px;
  }

  .wl-app-shell .wl-results-page .wl-results-search {
    min-height: 52px;
    padding: 8px 11px 8px 14px;
  }

  .wl-app-shell .wl-results-page .wl-results-search input {
    font-size: 16px;
  }

  .wl-app-shell .wl-results-page .wl-search-compare-status {
    padding: 7px 10px;
    font-size: 9px;
  }

  .wl-app-shell .wl-results-page .wl-results-section {
    padding-top: 27px;
    padding-bottom: 86px;
  }

  .wl-app-shell .wl-results-page .wl-results-count {
    margin-bottom: 13px;
    font-size: 9.5px;
  }

  .wl-app-shell .wl-results-page .wl-master-note {
    margin-bottom: 18px;
    padding: 10px 11px;
  }

  .wl-app-shell .wl-results-page .wl-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
  }

  .wl-app-shell .wl-results-page .wl-product-media {
    height: 190px;
  }

  .wl-app-shell .wl-results-page .wl-product-body {
    padding: 12px;
  }

  .wl-app-shell .wl-results-page .wl-product-name {
    min-height: 35px;
    margin: 5px 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.32;
  }
}

@media (max-width: 339px) {
  .wl-app-shell .wl-results-page .wl-product-grid {
    grid-template-columns: 1fr;
  }

  .wl-app-shell .wl-results-page .wl-product-media {
    height: 235px;
  }
}
