/* The home category (ID 2) is the editorial collection landing. */
body#category #wf-collection {
  --wf-collection-ink: #1e2a3a;
  --wf-collection-line: #e5e3e0;
  color: var(--wf-collection-ink);
  width: 100%;
  margin: 0 auto 26px;
  font-family: "PT Serif", Georgia, serif;
}

body#category #wf-collection .wf-collection-intro {
  text-align: center;
  padding: 28px 20px 14px;
}

body#category #wf-collection h1 {
  margin: 0;
  color: var(--wf-collection-ink);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.25;
  font-weight: 500;
  text-transform: none;
}

body#category #wf-collection .wf-collection-rule {
  display: block;
  width: 132px;
  height: 1px;
  margin: 14px auto 18px;
  background: #b3956a;
}

body#category #wf-collection .wf-collection-description,
body#category #wf-collection .wf-collection-intro > p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--wf-collection-ink);
  font-size: 15px;
  line-height: 1.65;
  text-transform: none;
}

body#category #wf-collection .wf-collection-description p:last-child { margin-bottom: 0; }
body#category #wf-collection .wf-collection-description img { max-width: 100%; height: auto; }

body#category #wf-collection .wf-collection-nav {
  margin: 0 20px;
}

body#category #wf-collection .wf-collection-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  align-items: stretch;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

body#category #wf-collection .wf-collection-track a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 10px;
  border: 1px solid var(--wf-collection-line);
  background: #fff;
  color: #62666a;
  font-family: "PT Serif", Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

body#category #wf-collection .wf-collection-track a:hover,
body#category #wf-collection .wf-collection-track a.is-active {
  color: var(--wf-collection-ink);
}

body#category #wf-collection .wf-collection-track a.is-active {
  border-color: rgba(30, 42, 58, .5);
  box-shadow: 0 3px 10px rgba(30, 42, 58, .07);
  font-weight: 500;
}

body#category #wf-collection .wf-collection-track a:hover { background: #f9f4f0; }

body#category #wf-collection .wf-collection-track a:focus-visible {
  outline: 2px solid var(--wf-collection-ink);
  outline-offset: -2px;
}

body#category #wf-collection .wf-collection-progress { display: none; }
body#category #wf-collection .wf-collection-feedback:not([hidden]) {
  margin: 12px 20px 0;
  text-align: center;
  font-size: 13px;
}

body#category #products.wf-collection-loading .wf-category-results-content {
  opacity: .55;
  pointer-events: none;
  transition: opacity .2s ease;
}

body#category #products .wf-collection-empty {
  margin: 26px 10px 38px;
  padding: 30px 16px;
  background: #f9f4f0;
  color: #1e2a3a;
  font-family: "PT Serif", Georgia, serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 767px) {
  body#category #wf-collection { margin-bottom: 20px; }
  body#category #wf-collection .wf-collection-intro { padding: 24px 16px 12px; }
  body#category #wf-collection h1 { font-size: 25px; }
  body#category #wf-collection .wf-collection-rule { margin: 12px auto; }
  body#category #wf-collection .wf-collection-description,
  body#category #wf-collection .wf-collection-intro > p {
    font-size: 13px;
    line-height: 1.6;
  }

  body#category #wf-collection .wf-collection-nav { margin: 0; }
  body#category #wf-collection .wf-collection-track {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    max-width: none;
    margin: 0 0 0 15px;
    padding-right: 15px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  body#category #wf-collection .wf-collection-track::-webkit-scrollbar { display: none; }
  body#category #wf-collection .wf-collection-track a {
    flex: 0 0 calc(42% - 4px);
    min-height: 50px;
    padding: 12px 6px 10px;
    font-size: 13px;
    scroll-snap-align: start;
  }

  body#category #wf-collection .wf-collection-progress {
    display: block;
    width: min(160px, 42vw);
    height: 2px;
    margin: 12px auto 0;
    background: #e4e6e9;
    overflow: hidden;
  }

  body#category #wf-collection .wf-collection-progress span {
    display: block;
    height: 100%;
    width: 33%;
    background: var(--wf-collection-ink);
    transform-origin: left center;
    transition: width .2s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#category #wf-collection .wf-collection-track a,
  body#category #wf-collection .wf-collection-progress span,
  body#category #products.wf-collection-loading .wf-category-results-content { transition: none; }
}
