/* ============================================================
   RESULTS — shop, categories, product search, wishlist, journal
   ============================================================ */

.hs-results { padding-bottom: 48px; }
.hs-results__head { margin: 2px 0 6px; }
.hs-results__title { font-size: clamp(22px, 1vw + 16px, 26px); font-weight: 700; }
.hs-results__count { font-size: 16px; font-weight: 400; color: var(--hs-gray); }
.hs-results__desc { margin-top: 6px; font-size: 14px; color: var(--hs-ink-2); max-width: 90ch; }

/* Pills row */
.hs-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--hs-line);
}
.hs-pills__scroll {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hs-pills__scroll::-webkit-scrollbar { display: none; }
.hs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--pill);
  border: 1px solid var(--hs-line-2);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--hs-ink);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.hs-pill:hover { border-color: var(--hs-ink); }
.hs-pill.is-on {
  border-color: var(--hs-brand);
  background: var(--hs-brand-50);
  color: var(--hs-brand-dark);
  box-shadow: inset 0 0 0 1px var(--hs-brand);
}
.hs-pill--filter { display: none; }

.hs-sort { flex-shrink: 0; margin-left: auto; }
.hs-sort .woocommerce-ordering { margin: 0; }
.hs-sort select {
  height: 34px;
  min-height: 34px;
  padding: 0 34px 0 14px;
  border-radius: var(--pill);
  border: 1px solid var(--hs-line-2);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: auto;
}
.hs-sort select:hover { border-color: var(--hs-ink); }

/* Applied filters */
.hs-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; }
.hs-applied__chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px 0 12px;
  border-radius: var(--pill);
  background: var(--hs-tint-2);
  font-size: 13px; font-weight: 600;
}
.hs-applied__chip:hover { box-shadow: inset 0 0 0 1px var(--hs-ink); }
.hs-applied__clear { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }

/* Layout */
.hs-results__layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 32px;
  margin-top: 18px;
  align-items: start;
}
.hs-results__main { min-width: 0; }

/* Facets */
.hs-facets { padding-right: 4px; }
.hs-facets__head { display: none; }
.hs-facet { border-bottom: 1px solid var(--hs-line); padding: 12px 0; }
.hs-facet:first-of-type { padding-top: 0; }
.hs-facet__t {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  padding: 2px 0;
}
.hs-facet__t::-webkit-details-marker { display: none; }
.hs-facet__t svg { transition: transform .15s; }
.hs-facet[open] .hs-facet__t svg { transform: rotate(180deg); }
.hs-facet__list { list-style: none; margin-top: 8px; }
.hs-facet__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--hs-ink);
}
.hs-facet__opt:hover .hs-facet__name { text-decoration: underline; text-underline-offset: 2px; }
.hs-facet__box {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid var(--hs-gray);
  border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  color: #fff;
}
.hs-facet__box--radio { border-radius: 50%; }
.hs-facet__opt.is-on .hs-facet__box { background: var(--hs-brand); border-color: var(--hs-brand); }
.hs-facet__opt.is-on .hs-facet__box svg { stroke-width: 3.2; }
.hs-facet__opt.is-on { font-weight: 700; }
.hs-facet__n { margin-left: auto; font-size: 12px; color: var(--hs-gray); }
.hs-facets-scrim { display: none; }

/* Pagination */
.woocommerce-pagination, .navigation.pagination { margin-top: 40px; }
.woocommerce-pagination ul.page-numbers,
.navigation.pagination .nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.woocommerce-pagination .page-numbers li { display: block; }
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers,
.navigation.pagination .page-numbers {
  min-width: 38px; height: 38px;
  padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--hs-ink);
}
.woocommerce-pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover { background: var(--hs-bg); }
.woocommerce-pagination span.current,
.navigation.pagination .current { background: var(--hs-brand); color: #fff; }
.woocommerce-pagination .prev, .woocommerce-pagination .next { box-shadow: inset 0 0 0 1px var(--hs-line-2); }

/* Empty */
.hs-empty {
  text-align: center;
  padding: 56px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hs-empty__ico {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--hs-tint); color: var(--hs-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.hs-empty__t { font-size: 20px; }
.hs-empty__d { color: var(--hs-gray); margin-bottom: 8px; }

/* Wishlist + journal keep their own templates; dress them in the same suit */
.shop-hero { padding: 6px 0 18px; border-bottom: 1px solid var(--hs-line); }
.shop-hero__title { font-size: clamp(22px, 1vw + 16px, 28px); margin-top: 4px; }
.shop-hero__desc { margin-top: 6px; color: var(--hs-ink-2); font-size: 14px; max-width: 80ch; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.shop-bar__count { font-size: 14px; color: var(--hs-ink-2); }
.shop-empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--hs-line-2);
  border-radius: var(--r-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.shop-empty__t { font-size: 20px; font-weight: 700; }
.shop-empty__d { color: var(--hs-gray); max-width: 52ch; margin-bottom: 6px; }

.jour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.jour-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--sh-card);
  background: #fff;
  transition: box-shadow .15s;
}
.jour-card:hover { box-shadow: var(--sh-pop); }
.jour-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--hs-tint); }
.jour-card__media img { width: 100%; height: 100%; object-fit: cover; }
.jour-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.jour-card__tag { align-self: flex-start; }
.jour-card__tag { font-size: 12px; font-weight: 700; color: var(--hs-ink); }
.jour-card__t { font-size: 18px; }
.jour-card__d { font-size: 14px; color: var(--hs-ink-2); }
.jour-card__go { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; margin-top: 4px; }
.jour-card__go svg { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hs-results__layout { grid-template-columns: 1fr; margin-top: 14px; }
  .hs-pill--filter { display: inline-flex; font-weight: 700; }
  .hs-facets {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 230;
    width: min(360px, 90vw);
    max-height: none;
    padding: 0 18px 24px;
    background: #fff;
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.2,.7,.3,1);
  }
  .hs-facets.is-open { transform: none; box-shadow: var(--sh-pop); }
  .hs-facets__head {
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 -18px 12px;
    padding: 10px 10px 10px 18px;
    background: #fff;
    border-bottom: 1px solid var(--hs-line);
    font-size: 18px; font-weight: 700;
  }
  .hs-facet:first-of-type { padding-top: 12px; }
  .hs-facets-scrim {
    position: fixed; inset: 0; z-index: 225;
    background: rgba(0,0,0,.45);
  }
  .hs-facets-scrim:not([hidden]) { display: block; }
  .jour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .hs-pills { flex-wrap: wrap; gap: 8px; }
  .hs-pills__scroll { order: 3; flex-basis: 100%; }
  .hs-sort { margin-left: auto; }
  .hs-sort select { max-width: 180px; }
  .jour-grid { grid-template-columns: 1fr; }
}
