/* T4 Category Grid + T5 Category List (/<category>.html[?product_list_mode=list]): native catalog blocks
   reskinned per T4 Category Grid.dc.html / T5 Category List.dc.html.
   Also the T7 search listing: catalogsearch_result_index.xml adds body.hvn-page-category and layers _search.css on top.
   Section gutters come from .hvn-home-section (_sections.css); every rule is scoped to body.hvn-page-category. */

.hvn-page-category .page-main,
.hvn-page-category .columns .column.main {
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: 0;
}

/* ---- breadcrumbs (page.top): 12px uppercase, "/" separators; beats Blank's .breadcrumbs .item:not(:last-child):after (0,3,1) icon ---- */
.hvn-page-category .breadcrumbs {
  max-width: var(--hvn-container);
  margin: 0 auto;
  padding: 22px 40px 0;
  min-height: 0;
}
.hvn-page-category .breadcrumbs .items {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hvn-text-subtle);
}
.hvn-page-category .breadcrumbs .item {
  display: inline-flex;
  gap: 9px;
  margin: 0;
}
.hvn-page-category .breadcrumbs .item:not(:last-child)::after {
  content: "/";
  font-family: var(--hvn-font-body);
  font-size: 12px;
  line-height: inherit;
  margin: 0;
  color: var(--hvn-text-subtle);
  vertical-align: baseline;
}
.hvn-page-category .breadcrumbs .item a,
.hvn-page-category .breadcrumbs .item a:visited,
.hvn-page-category .breadcrumbs .item a:hover {
  color: inherit;
  text-decoration: none;
}
.hvn-page-category .breadcrumbs .item strong {
  font-weight: 400;
  color: var(--hvn-text);
}

/* ---- head: h1 40px display + intro (columns.top) ---- */
.hvn-page-category .hvn-category-head {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hvn-page-category .hvn-category-head .page-title-wrapper { margin: 0; }
.hvn-page-category .hvn-category-head .page-title {
  font-family: var(--hvn-font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;
}
.hvn-page-category .hvn-category-head .category-description {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--hvn-text-subtle);
  max-width: 60ch;
  margin: 0;
}
.hvn-page-category .hvn-category-head .category-description p { margin: 0; }
/* Page Builder wraps the seeded description in a row whose inline style pads 10px. */
.hvn-page-category .hvn-category-head .category-description [data-content-type="row"] > [data-element="inner"] {
  padding: 0 !important;
  margin: 0 !important;
}

/* ---- bar: filters left, amount + sorter right, one row between two rules ---- */
.hvn-page-category .hvn-category-bar { padding-top: 14px; }
.hvn-page-category .hvn-category-bar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 14px 0;
  border-top: 1px solid var(--hvn-border);
  border-bottom: 1px solid var(--hvn-border);
  font-size: 13.5px;
}
.hvn-page-category .hvn-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* pills: 12.5px, 1px border, 999px radius, 8px 14px */
.hvn-page-category .hvn-filter-pill,
.hvn-page-category .hvn-sorter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid var(--hvn-border-strong);
  border-radius: var(--hvn-radius-pill);
  background: transparent;
  color: var(--hvn-text);
  font-size: 12.5px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.hvn-page-category .hvn-filter-pill:hover,
.hvn-page-category .hvn-filter[open] > .hvn-filter-pill {
  border-color: var(--hvn-text);
  background: var(--hvn-accent-tint);
}
.hvn-page-category .hvn-filter-pill--active {
  border-color: var(--hvn-accent-strong);
  color: var(--hvn-accent-strong);
}
.hvn-page-category .hvn-filter-pill--clear,
.hvn-page-category .hvn-filter-pill--previous {
  border-color: transparent;
  color: var(--hvn-text-subtle);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hvn-page-category .hvn-filter-caret,
.hvn-page-category .hvn-filter-remove {
  font-size: 13px;
  line-height: 1;
  color: var(--hvn-text-subtle);
}
.hvn-page-category .hvn-filter-pill--active .hvn-filter-remove { color: inherit; }

/* <details> menus: no JS, absolutely positioned under the pill */
.hvn-page-category .hvn-filter { position: relative; }
.hvn-page-category .hvn-filter > summary { list-style: none; }
.hvn-page-category .hvn-filter > summary::-webkit-details-marker { display: none; }
.hvn-page-category .hvn-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  padding: 8px 0;
  background: var(--hvn-surface);
  border: 1px solid var(--hvn-border);
  border-radius: 4px;
  box-shadow: var(--hvn-shadow-card);
}
.hvn-page-category .hvn-filter-options {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hvn-page-category .hvn-filter-option { margin: 0; }
.hvn-page-category .hvn-filter-option-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--hvn-text);
  text-decoration: none;
  white-space: nowrap;
}
.hvn-page-category a.hvn-filter-option-link:hover { background: var(--hvn-accent-tint); }
.hvn-page-category .hvn-filter-option-link--empty { color: var(--hvn-text-subtle); }
.hvn-page-category .hvn-filter-count { color: var(--hvn-text-subtle); font-size: 12px; }

/* ---- toolbar (core product/list/toolbar.phtml): top = amount + sorter, bottom = pager ---- */
.hvn-page-category .toolbar-products {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 0 auto;
  padding: 0;
  text-align: left;
}
/* Blank's clearfix pseudo-elements would become flex items */
.hvn-page-category .toolbar-products::before,
.hvn-page-category .toolbar-products::after { display: none; content: none; }
.hvn-page-category .toolbar-products .limiter { display: none; }
/* view-mode switcher (viewmode.phtml override): "List view ☰ ▦" at the far right of the bar (artboard: h1 row).
   (0,3,0) beats Blank's .modes{display:none} (<768) and .modes{float:left;margin-right:20px} (>=768). */
.hvn-page-category .toolbar-products .modes {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  float: none;
  margin: 0;
  font-size: 13px;
  color: var(--hvn-text-subtle);
}
.hvn-page-category .hvn-viewmode-label { white-space: nowrap; }
.hvn-page-category .hvn-viewmode-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--hvn-border-strong);
  border-radius: 4px;
  color: var(--hvn-text-subtle);
  font-family: var(--hvn-font-body);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}
.hvn-page-category a.hvn-viewmode-mode:hover {
  border-color: var(--hvn-text);
  color: var(--hvn-text);
  background: var(--hvn-accent-tint);
}
.hvn-page-category .hvn-viewmode-mode--active {
  border-color: var(--hvn-text);
  color: var(--hvn-text);
}
.hvn-page-category .toolbar-amount {
  float: none;
  display: block;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--hvn-text-subtle);
}
.hvn-page-category .toolbar-sorter {
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.hvn-page-category .sorter-label {
  font-size: 12.5px;
  color: var(--hvn-text-subtle);
}
.hvn-page-category .hvn-sorter-pill { position: relative; padding: 0; }
.hvn-page-category .sorter-options {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: auto;
  height: auto;
  padding: 8px 30px 8px 14px;
  border: 0;
  border-radius: var(--hvn-radius-pill);
  background: transparent;
  font-family: var(--hvn-font-body);
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--hvn-text);
  cursor: pointer;
}
.hvn-page-category .hvn-sorter-pill .hvn-filter-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hvn-page-category .sorter-action {
  position: static;
  top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  text-decoration: none;
}
.hvn-page-category .sorter .sorter-action::before {
  font-family: var(--hvn-font-body);
  font-size: 14px;
  line-height: 1;
  content: "\2191";
  color: var(--hvn-text-subtle);
}
.hvn-page-category .sorter .sort-desc::before { content: "\2193"; }
.hvn-page-category .sorter-action:hover::before { color: var(--hvn-text); }

/* ---- grid: 3 columns (the artboard's 8-per-page composition with the second tile spanning two rows) ---- */
.hvn-page-category .hvn-category-products { padding-top: 28px; }
.hvn-page-category .hvn-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

/* ---- empty result (core .message.info.empty markup kept) ---- */
.hvn-page-category .message.info {
  margin: 0;
  padding: 24px 0;
  background: transparent;
  border: 0;
  color: var(--hvn-text-subtle);
  font-size: 14.5px;
  font-weight: 300;
}
.hvn-page-category .message.info > :first-child::before { display: none; content: none; }
.hvn-page-category .message.info > :first-child { padding: 0; }

/* ---- T5 list rows (?product_list_mode=list): bordered surface rows, 200px | 1fr | 200px, gap 24, max 1080 ---- */
.hvn-page-category .hvn-product-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1080px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hvn-page-category .hvn-product-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 20px;
  background: var(--hvn-surface);
  border: 1px solid var(--hvn-border);
  border-radius: 4px;
}
/* image: the 4:5 category_page_list rendition cropped into the artboard's square tile */
.hvn-page-category .hvn-product-row-media {
  position: relative;
  display: block;
  text-decoration: none;
}
.hvn-page-category .hvn-product-row .product-image-container,
.hvn-page-category .hvn-product-row .product-image-wrapper {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}
.hvn-page-category .hvn-product-row .product-image-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
}
.hvn-page-category .hvn-product-row-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.hvn-page-category .hvn-product-row-name {
  font-family: var(--hvn-font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.2;
  color: var(--hvn-text);
  text-decoration: none;
  text-wrap: balance;
}
.hvn-page-category .hvn-product-row-name:hover { color: var(--hvn-accent-strong); }
.hvn-page-category .hvn-product-row-rating {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--hvn-accent-strong);
}
.hvn-page-category .hvn-product-row-rating .product-reviews-summary { display: flex; align-items: center; gap: 10px; margin: 0; }
.hvn-page-category .hvn-product-row-rating .rating-summary { display: inline-block; }
.hvn-page-category .hvn-product-row-description {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--hvn-text-subtle);
  max-width: 56ch;
}
.hvn-page-category .hvn-product-row-description p { margin: 0; }
.hvn-page-category .hvn-product-row-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--hvn-text-subtle);
}
.hvn-page-category .hvn-product-row-fact {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
}
.hvn-page-category .hvn-product-row-fact-check { color: var(--hvn-accent-2-strong); }
.hvn-page-category .hvn-product-row-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.hvn-page-category .hvn-product-row-price .price-box { margin: 0; }
.hvn-page-category .hvn-product-row-price .price-box > * { margin: 0; }
.hvn-page-category .hvn-product-row-price .price {
  font-family: var(--hvn-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hvn-text);
}
.hvn-page-category .hvn-product-row-price .old-price .price {
  font-size: 14px;
  font-weight: 400;
  color: var(--hvn-text-subtle);
  text-decoration: line-through;
}
.hvn-page-category .hvn-product-row-price .price-label { display: none; }
.hvn-page-category .hvn-product-row-view,
.hvn-page-category a.hvn-product-row-view {
  padding: 11px 20px;
  font-size: 13px;
}
.hvn-page-category .hvn-product-row-save,
.hvn-page-category a.hvn-product-row-save,
.hvn-page-category .hvn-product-row-compare,
.hvn-page-category a.hvn-product-row-compare {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--hvn-text-subtle);
  text-decoration: none;
}
.hvn-page-category a.hvn-product-row-save:hover { color: var(--hvn-text); }
.hvn-page-category a.hvn-product-row-compare:hover { color: var(--hvn-text); text-decoration: underline; }

/* ---- bottom toolbar: pager only, centred; numbers as 36px squares, current filled ---- */
.hvn-page-category .hvn-category-grid ~ .toolbar-products,
.hvn-page-category .hvn-product-list ~ .toolbar-products {
  margin: 40px 0 0;
  justify-content: center;
}
.hvn-page-category .toolbar-products .pages { display: block; }
.hvn-page-category .pages > .label { display: none; }
.hvn-page-category .pages .items {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.hvn-page-category .pages .item { margin: 0; display: block; }
.hvn-page-category .pages .action { width: auto; }
.hvn-page-category .pages a.page,
.hvn-page-category .pages strong.page,
.hvn-page-category .pages .action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--hvn-border);
  border-radius: 4px;
  background: transparent;
  color: var(--hvn-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}
.hvn-page-category .pages a.page:hover,
.hvn-page-category .pages .action:hover {
  border-color: var(--hvn-text);
  background: var(--hvn-accent-tint);
  color: var(--hvn-text);
}
.hvn-page-category .pages strong.page {
  background: var(--hvn-text);
  border-color: var(--hvn-text);
  color: var(--hvn-bg);
}
.hvn-page-category .pages .action { padding: 0 14px; }
.hvn-page-category .pages .action::before { display: none; content: none; }
.hvn-page-category .pages .action > span:not(.label) {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
}

/* ---- outro band: the category's landing CMS block ("About our ...") ---- */
.hvn-page-category .hvn-category-outro { padding-top: 48px; }
.hvn-page-category .hvn-category-outro .category-cms {
  background: var(--hvn-surface);
  border: 1px solid var(--hvn-border);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
}
.hvn-page-category .hvn-category-outro .category-cms > * { max-width: 68ch; margin-inline: auto; }
.hvn-page-category .hvn-category-outro h2 {
  font-family: var(--hvn-font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
.hvn-page-category .hvn-category-outro p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--hvn-text-subtle);
  margin: 10px auto 0;
}
.hvn-page-category .hvn-category-outro:empty { display: none; }

/* ---- responsive ---- */
@media (max-width: 1023px) {
  .hvn-page-category .breadcrumbs { padding: 18px 24px 0; }
  .hvn-page-category .hvn-category-head .page-title { font-size: 32px; }
  .hvn-page-category .hvn-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }
  .hvn-page-category .hvn-category-outro .category-cms { padding: 32px 24px; }
  /* list rows: 160px image + copy; the price column drops under the copy */
  .hvn-page-category .hvn-product-row {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px 20px;
    padding: 16px;
  }
  .hvn-page-category .hvn-product-row-aside {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 18px;
  }
}
@media (max-width: 767px) {
  /* Tap targets >= 44px (§11.4) on the toolbar controls and the row's Save / Compare links. */
  .hvn-page-category .hvn-filter-pill,
  .hvn-page-category .hvn-viewmode-mode,
  .hvn-page-category .sorter-action,
  .hvn-page-category .hvn-sorter-pill select,
  .hvn-page-category .hvn-product-row-save,
  .hvn-page-category .hvn-product-row-compare {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hvn-page-category .hvn-product-row-save,
  .hvn-page-category .hvn-product-row-compare { justify-content: flex-start; }
  .hvn-page-category .breadcrumbs { padding: 14px 16px 0; margin-left: 0; }
  .hvn-page-category .hvn-category-head { padding-top: 14px; gap: 10px; }
  .hvn-page-category .hvn-category-head .page-title { font-size: 26px; }
  .hvn-page-category .hvn-category-bar-row { gap: 10px 16px; padding: 12px 0; }
  .hvn-page-category .toolbar-products { margin-left: 0; flex-wrap: wrap; gap: 10px 14px; }
  .hvn-page-category .hvn-category-products { padding-top: 20px; }
  .hvn-page-category .hvn-category-grid { gap: 20px 14px; }
  .hvn-page-category .hvn-filter-menu { min-width: 200px; }
  .hvn-page-category .hvn-category-grid ~ .toolbar-products,
  .hvn-page-category .hvn-product-list ~ .toolbar-products { margin-top: 28px; }
  /* list rows: one column - square image, copy, then the price row */
  .hvn-page-category .hvn-product-list { gap: 14px; }
  .hvn-page-category .hvn-product-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }
  .hvn-page-category .hvn-product-row-aside { grid-column: 1; }
  .hvn-page-category .hvn-product-row-name { font-size: 17px; }
  .hvn-page-category .hvn-product-row-fact { white-space: normal; }
  .hvn-page-category .hvn-category-outro { padding-top: 32px; }
  .hvn-page-category .hvn-category-outro .category-cms { padding: 24px 16px; }
  .hvn-page-category .hvn-category-outro h2 { font-size: 20px; }
}
