﻿/* ==========================================================================
   House of Serene — Kalles collection / listing / search pages
   Views/Home/Products.cshtml, _CategoryFilters.cshtml, _TrendingGrid.cshtml,
   Collection.cshtml, SearchUnavailable.cshtml.
   Reference: Theme/kalles-template/Women.html (main-heading, hdt-shop-control,
   facets drawer, hdt-collection-products, hdt-pagination).
   Loaded from each view's @section head, after libaas-kalles.css.
   ========================================================================== */

/* ── Top collections list (sub-category tiles) ─────────────────────────────── */
.kc-collections { padding-block: 26px 0; }
.kc-collections__list { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; justify-content: safe center; padding-bottom: 4px; }
.kc-collections__list::-webkit-scrollbar { display: none; }
.kc-collection-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; text-decoration: none; color: var(--dark); scroll-snap-align: start; }
.kc-collection-item__img { display: block; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--bg-subtle); border: 2px solid transparent; transition: border-color .25s ease; }
.kc-collection-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.kc-collection-item__name { font-size: 13px; font-weight: 500; text-align: center; line-height: 1.3; }
.kc-collection-item:hover .kc-collection-item__img img { transform: scale(1.08); }
.kc-collection-item:hover .kc-collection-item__name, .kc-collection-item.is-active .kc-collection-item__name { color: var(--accent); }
.kc-collection-item.is-active .kc-collection-item__img { border-color: var(--dark); }

/* ── Main heading (page-title banner) ──────────────────────────────────────── */
.kc-heading { position: relative; overflow: hidden; margin-top: 26px; min-height: 230px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--dark); color: #fff; }
.kc-heading .hdt-heading-image { position: absolute; inset: 0; pointer-events: none; }
.kc-heading .hdt-heading-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-heading .hdt-h-overlay::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.kc-heading__inner { position: relative; z-index: 1; padding-block: 50px; display: flex; flex-direction: column; align-items: center; }
.kc-heading__title { margin: 0 0 8px; font-size: 26px; font-weight: 500; line-height: 1.25; color: #fff; }
.kc-heading .hdt-breadcrumb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 14px; }
.kc-heading .hdt-breadcrumb-item { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.kc-heading .hdt-breadcrumb-item a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.kc-heading .hdt-breadcrumb-item a:hover { color: #fff; text-decoration: underline; }
.kc-heading .result-count { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.kc-heading .page-hero-desc { max-width: 680px; margin: 10px auto 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.kc-heading .page-hero-desc a { color: #fff; text-decoration: underline; }
/* No photo (collection without tiles, search-unavailable): Kalles light heading. */
.kc-heading--plain { background: var(--bg-subtle); color: var(--dark); min-height: 0; }
.kc-heading--plain .kc-heading__title, .kc-heading--plain .hdt-breadcrumb-item { color: var(--dark); }
.kc-heading--plain .hdt-breadcrumb-item a { color: var(--light); }
.kc-heading--plain .hdt-breadcrumb-item a:hover { color: var(--dark); }

/* ── Main collection ───────────────────────────────────────────────────────── */
.kc-main { padding-block: 40px 60px; }

/* Toolbar: [Filter] · [layout switch] · [Sort] */
.kc-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 30px; }
.hdt-control-filter { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hdt-filter_btn { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--dark); font: 500 14px var(--font-sans); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; }
.hdt-filter_btn:hover { color: var(--accent); }
.toolbar-count { font-size: 14px; color: var(--light); white-space: nowrap; }
.hdt-control-layout { display: flex; justify-content: center; }
.hdt-view-layout-switch { display: flex; gap: 4px; }
.c3-col { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .35; transition: opacity .2s; }
.c3-col:hover, .c3-col.is-active { opacity: 1; }
/* Kalles view icons: n thin vertical bars / list rows */
.kc-ico { display: flex; gap: 2px; height: 14px; }
.kc-ico i { display: block; width: 5px; height: 100%; background: var(--dark); border-radius: 1px; }
.kc-ico--list { flex-direction: column; width: 16px; gap: 3px; }
.kc-ico--list i { width: 100%; height: 5px; }
.hdt-control-sorting { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.sort-label { font-size: 14px; color: var(--light); white-space: nowrap; }
.kc-sort { position: relative; min-width: 0; }
.kc-sort .sort-select { appearance: none; -webkit-appearance: none; max-width: 220px; height: 40px; padding: 0 34px 0 16px; border: 1px solid var(--bg-warm); border-radius: var(--radius-pill); background: #fff; color: var(--dark); font: 500 14px var(--font-sans); cursor: pointer; text-overflow: ellipsis; }
.kc-sort .sort-select:focus { outline: none; border-color: var(--dark); }
.kc-sort svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.kc-main.no-filters .kc-toolbar { grid-template-columns: 1fr auto 1fr; }

/* Active filters row above the grid */
.kc-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 26px; }
.kc-active-filter, .kc-facets .active-filter { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--bg-warm); border-radius: var(--radius-pill); font-size: 13px; color: var(--dark); text-decoration: none; }
.kc-active-filter:hover, .kc-facets .active-filter:hover { border-color: var(--dark); }
.clear-all { font-size: 13px; font-weight: 500; color: var(--red); text-decoration: underline; }

/* ── Product grid (Kalles hdt-collection-products) ────────────────────────── */
#productsGrid.kc-grid { display: grid; gap: 30px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#productsGrid.c3-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#productsGrid.c3-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#productsGrid.c3-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#productsGrid.c3-grid--list { grid-template-columns: minmax(0, 1fr); gap: 30px; }
#productsGrid.c3-grid--list .hdt-card-product__wrapper { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid var(--bg-warm); }
#productsGrid.c3-grid--list .hdt-card-product__info { padding-top: 0; }
#productsGrid.c3-grid--list .hdt-card-product__title { font-size: 18px; }
.products-grid--contain .hdt-card-product__media-wrapp img { object-fit: contain; }
.pc__unit { margin-left: 2px; font-size: 12px; color: var(--light); }
.pc__note { margin-top: 4px; font-size: 12px; color: var(--light); }
.pc__note--low { color: var(--red); }
.kc-trending-grid { margin-top: 20px; }

/* Empty state / fallback */
.kc-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 50px 0 30px; text-align: center; color: var(--light); }
.kc-empty p { margin: 0; max-width: 520px; font-size: 15px; color: var(--dark-mid); }
.kc-fallback { margin-top: 30px; }
.kc-fallback .lk-heading { text-align: center; }

/* ── Pagination (Kalles hdt-pagination, default style) ────────────────────── */
.kc-showing { margin: 40px 0 0; text-align: center; font-size: 13px; color: var(--light); }
.kc-pagination { display: flex; justify-content: center; margin-top: 16px; border-top: 1px solid var(--bg-warm); padding-top: 25px; margin-bottom: 20px; }
.kc-pagination .hdt-pagination__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.kc-pagination .hdt-pagination__item { display: inline-block; min-width: 24px; padding: 5px 10px; text-align: center; font-size: 15px; color: var(--light); text-decoration: none; }
.kc-pagination a.hdt-pagination__item:hover { color: var(--dark); }
.kc-pagination .hdt-pagination__item--current { color: var(--dark); font-weight: 600; }
.kc-pagination .hdt-pagination__item-arrow { color: var(--dark); font-weight: 500; }

/* SEO copy */
.kc-seo { max-width: 860px; margin: 50px auto 0; line-height: 1.75; color: var(--mid); font-size: 14px; }
.kc-seo h2 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; color: var(--dark); }
.kc-seo h3 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; color: var(--dark); }
.kc-seo p, .kc-seo ul { margin: 0 0 12px; }
.kc-seo ul { padding-left: 20px; list-style: disc; }
.kc-seo a { color: var(--dark); text-decoration: underline; }

/* ── Filter drawer (Kalles hdt-dialog-drawer, pos=left) ────────────────────── */
.kc-overlay { position: fixed; inset: 0; z-index: var(--z-filter-drawer, 1050); background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.kc-overlay.open { opacity: 1; visibility: visible; display: block; }
.kc-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: calc(var(--z-filter-drawer, 1050) + 1); width: 340px; max-width: 90vw; height: auto; padding: 0; display: flex; flex-direction: column; background: #fff; transform: translateX(-100%); visibility: hidden; transition: transform .35s cubic-bezier(.4, 0, .2, 1), visibility .35s; box-shadow: none; overflow: hidden; }
.kc-drawer.open { transform: none; visibility: visible; box-shadow: 0 0 20px rgba(0, 0, 0, .12); }
.kc-drawer__header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 20px; min-height: 60px; background: var(--bg-subtle); border-bottom: 0; }
.kc-drawer__title { margin: 0; font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.kc-drawer .filter-drawer-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--dark); cursor: pointer; transition: transform .3s; }
.kc-drawer .filter-drawer-close:hover { transform: rotate(90deg); }
.kc-drawer__inner { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 30px; scrollbar-width: thin; }

/* ── Facets (Kalles hdt-widget / hdt-filter-group) ─────────────────────────── */
.kc-facets__active { padding: 20px 0; border-bottom: 1px solid var(--bg-warm); }
.kc-facets__active-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 16px; font-weight: 500; }
.kc-facets .active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.kc-facets .hdt-widget { padding: 22px 0; border-bottom: 1px solid var(--bg-warm); }
.kc-facets .hdt-widget:last-child { border-bottom: 0; }
.kc-facets .hdt-widget-title { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-size: 18px; font-weight: 500; color: var(--dark); }
.kc-facets .hdt-widget-title::-webkit-details-marker { display: none; }
/* Kalles accordion plus / minus */
.kc-acc-icon { position: relative; display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; }
.kc-acc-icon::before, .kc-acc-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform .3s ease; }
.kc-acc-icon::after { transform: rotate(90deg); }
details[open] > summary .kc-acc-icon::after { transform: rotate(0deg); }
.kc-subnav.open .kc-acc-icon::after { transform: rotate(0deg); }
.kc-facets .hdt-widget-content { padding-top: 16px; }
.kc-facets .filter-scroll { max-height: 260px; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.kc-facets .hdt-filter-group__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kc-facets .filter-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mid); text-decoration: none; }
.kc-facets .filter-check:hover, .kc-facets .filter-check.active { color: var(--dark); }
.kc-facets .hdt-facets-checkbox { position: relative; flex: 0 0 auto; width: 16px; height: 16px; border: 1px solid #d4d4d4; border-radius: 2px; background: #fff; }
.kc-facets .filter-check.active .hdt-facets-checkbox { background: var(--dark); border-color: var(--dark); }
.kc-facets .filter-check.active .hdt-facets-checkbox::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.kc-facets .filter-count { color: var(--light); font-size: 13px; }
/* Colour swatches */
.kc-facets .hdt-filter-group__list--color { flex-direction: column; gap: 10px; }
.kc-color { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mid); text-decoration: none; }
.kc-color:hover, .kc-color.active { color: var(--dark); }
.kc-color .color-dot { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.kc-color:hover .color-dot { outline-color: var(--light); }
.kc-color.active .color-dot { outline-color: var(--dark); }
.kc-color .color-code-only { background: var(--bg-warm); font-size: 9px; font-weight: 700; color: var(--dark-mid); }
/* Size pills */
.kc-facets .size-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-facets .size-pill { display: inline-grid; place-items: center; min-width: 40px; height: 36px; padding: 0 12px; border: 1px solid var(--bg-warm); border-radius: var(--radius-pill); font-size: 13px; color: var(--dark); text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.kc-facets .size-pill:hover { border-color: var(--dark); }
.kc-facets .size-pill.active { background: var(--dark); border-color: var(--dark); color: #fff; }
/* Price band slider */
.kc-facets .price-slider { display: flex; flex-direction: column; gap: 12px; }
.kc-facets .price-range-input { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; margin: 8px 0; border-radius: 2px; background: var(--bg-warm); outline: none; cursor: pointer; }
.kc-facets .price-range-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--dark); cursor: pointer; }
.kc-facets .price-range-input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--dark); cursor: pointer; }
.kc-facets .price-range-readout { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--mid); }
.kc-facets .price-range-label { color: var(--dark); font-weight: 500; }
.kc-facets .price-range-clear { font-size: 18px; line-height: 1; color: var(--light); text-decoration: none; }
.kc-facets .price-range-clear:hover { color: var(--dark); }

/* ── Collection (CMS splash) ───────────────────────────────────────────────── */
.kc-subnav { margin-bottom: 30px; }
.kc-subnav__toggle { display: none; }
.kc-subnav__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.kc-subnav__links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border: 1px solid var(--bg-warm); border-radius: var(--radius-pill); font-size: 14px; color: var(--dark); text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.kc-subnav__links a:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.kc-subnav__links a.is-deal { color: var(--red); font-weight: 600; }
.kc-collection__desc { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.collection-description { margin: 0; max-height: 3.4em; overflow: hidden; line-height: 1.7; color: var(--mid); font-size: 14px; }
.collection-description.expanded { max-height: none; }
.collection-read-more { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--dark); text-decoration: underline; cursor: pointer; }
.kc-collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.kc-ctile { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--dark); text-decoration: none; }
.kc-ctile__media { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-subtle); }
.kc-ctile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.kc-ctile:hover .kc-ctile__media img { transform: scale(1.08); }
.kc-ctile__ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; font-size: 15px; color: var(--light); }
.kc-ctile__title { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 16px; font-weight: 500; }
.kc-ctile:hover .kc-ctile__title { color: var(--accent); }
.kc-ctile__sub { margin-top: 2px; font-size: 13px; color: var(--light); }
.kc-ctile .badge { font-size: 10px; padding: 2px 8px; color: #fff; }

/* ── Search unavailable ────────────────────────────────────────────────────── */
.search-down { padding: 60px 0 80px; background: #fff; }
.search-down-inner { max-width: 620px; margin-inline: auto; text-align: center; }
.search-down-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: var(--bg-subtle); color: var(--dark); }
.search-down-icon svg { width: 28px; height: 28px; }
.search-down h1 { margin: 0 0 12px; font-size: 26px; font-weight: 500; }
.search-down-lead { margin: 0 auto 26px; max-width: 480px; line-height: 1.7; color: var(--mid); }
.search-down-retry { margin-bottom: 38px; }
.search-down-alt h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; color: var(--dark); }
.search-down-alt > p { margin: 0 0 16px; font-size: 14px; color: var(--mid); }
.search-down-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.search-down-links a { padding: 7px 18px; border: 1px solid var(--bg-warm); border-radius: var(--radius-pill); font-size: 14px; color: var(--dark); text-decoration: none; transition: all .2s; }
.search-down-links a:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.search-down-help { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--bg-warm); }
.search-down-help p { margin: 0 0 6px; font-size: 14px; color: var(--mid); }
.search-down-contact a { font-weight: 600; color: var(--dark); text-decoration: none; }
.search-down-contact a:hover { color: var(--accent); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1149px) {
  #productsGrid.c3-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #productsGrid.kc-grid { gap: 24px; }
  .kc-collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 767px) {
  .kc-collections { padding-top: 16px; }
  .kc-collections__list { gap: 12px; justify-content: flex-start; }
  .kc-collection-item { width: 76px; }
  .kc-collection-item__img { width: 68px; height: 68px; }
  .kc-collection-item__name { font-size: 12px; }
  .kc-heading { margin-top: 16px; min-height: 150px; }
  .kc-heading__inner { padding-block: 30px; }
  .kc-heading__title { font-size: 22px; }
  .kc-heading .hdt-breadcrumb-list { font-size: 13px; }
  .kc-heading .page-hero-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
  .kc-main { padding-block: 22px 40px; }
  .kc-toolbar { grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; margin-bottom: 20px; }
  .kc-main.no-filters .kc-toolbar { grid-template-columns: auto minmax(0, 1fr); }
  .kc-main.no-filters .hdt-control-filter { display: none; }
  .toolbar-count, .sort-label { display: none; }
  .hdt-control-layout { justify-content: flex-start; }
  .c3-col[data-cols="3"], .c3-col[data-cols="4"] { display: none; }
  .kc-sort .sort-select { max-width: 100%; height: 36px; font-size: 13px; padding-left: 12px; }
  .kc-sort { width: 100%; max-width: 180px; }
  /* Phones: 2 up whatever was chosen on desktop (list still allowed). */
  #productsGrid.c3-grid--2, #productsGrid.c3-grid--3, #productsGrid.c3-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  #productsGrid.c3-grid--list .hdt-card-product__wrapper { grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding-bottom: 20px; }
  #productsGrid.c3-grid--list .hdt-card-product__title { font-size: 15px; }
  .hdt-card-product__title { font-size: 13px; }
  .kc-active-filters { margin-top: -6px; }
  .kc-subnav { border: 1px solid var(--bg-warm); margin-bottom: 20px; }
  .kc-subnav__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 12px 16px; border: 0; background: var(--bg-subtle); color: var(--dark); font: 500 14px var(--font-sans); cursor: pointer; }
  .kc-subnav__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--light); }
  .kc-subnav__links { display: none; padding: 14px; justify-content: flex-start; gap: 8px; }
  .kc-subnav.open .kc-subnav__links { display: flex; }
  .kc-subnav__links a { padding: 6px 14px; font-size: 13px; }
  .kc-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .kc-ctile__title { margin-top: 10px; font-size: 14px; }
  .search-down { padding: 38px 0 52px; }
  .search-down h1 { font-size: 22px; }
}

/* ==========================================================================
   Kalles "Grid layout" (Theme\kalles-template\Grid layout.html) — overrides above.
   ========================================================================== */

/* Top list collections: one row of plain text links with small arrows. */
.kc-toplist { border-bottom: 1px solid var(--lk-line, #eee); }
.kc-toplist__slider { position: relative; padding-inline: 34px; }
.kc-toplist .hdt-slider__viewport { overflow: hidden; }
.kc-toplist .hdt-slider__container { display: flex; }
.kc-toplist .hdt-slider__slide { flex: 0 0 auto; }
.kc-toplist .hdt-slider__slide a {
  display: block; padding: 12px 15px; white-space: nowrap; font-size: 14px; color: var(--dark); text-decoration: none;
  transition: color .25s ease;
}
.kc-toplist .hdt-slider__slide a:hover, .kc-toplist .hdt-current-active a { color: var(--accent); }
.kc-toplist__nav .hdt-slider__button {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0; border: 0; background: none; color: var(--dark); cursor: pointer;
}
.kc-toplist__nav .hdt-slider__button--prev { left: 0; }
.kc-toplist__nav .hdt-slider__button--next { right: 0; }
.kc-toplist__nav .hdt-slider__button[disabled] { opacity: .3; cursor: default; }

/* Main heading: full-bleed photo, dark overlay, title + breadcrumb only. */
.kc-heading { margin-top: 0; min-height: 0; }
.kc-heading__inner { padding-block: 55px; }
.kc-heading .hdt-h-overlay::after { background: rgba(0, 0, 0, .54); }
.kc-heading__title { margin: 0 0 6px; font-size: 24px; font-weight: 500; }
.kc-heading .hdt-breadcrumb-list { font-size: 14px; }

/* Toolbar: Filter | layout switch (centre) | sort (pill). */
.kc-main { padding-top: 40px; }
.kc-toolbar { margin-bottom: 30px; }
.hdt-filter_btn { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font-size: 14px; color: var(--dark); cursor: pointer; }
.hdt-filter_btn:hover { color: var(--accent); }
.kc-toolbar .hdt-control-layout { justify-self: center; }
.kc-toolbar .hdt-control-sorting { justify-self: end; }
.c3-cols { display: flex; align-items: center; gap: 6px; }
.c3-col { display: grid; place-items: center; padding: 4px; border: 0; background: none; cursor: pointer; opacity: .35; transition: opacity .2s; }
.c3-col:hover, .c3-col.is-active { opacity: 1; }
.kc-ico { gap: 2px; height: 20px; }
.kc-ico i { width: 5px; border-radius: 0; background: var(--dark); }
.kc-ico--list { width: 20px; }
.kc-ico--list i { height: 8px; }
.kc-only-mobile { display: none; }
.kc-sort .sort-select { height: 40px; min-width: 175px; border: 1px solid var(--lk-line, #ddd); border-radius: 40px; background: #fff; font-size: 14px; color: var(--dark); }

/* Grid: 1–6 columns. */
#productsGrid.c3-grid--1 { grid-template-columns: minmax(0, 1fr); }
#productsGrid.c3-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#productsGrid.c3-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Card (Grid layout style 1): round badges, centred hover buttons. */
#productsGrid .hdt-badge { width: 46px; height: 46px; min-width: 0; padding: 0 4px; border-radius: 50%; font-size: 12px; line-height: 1.1; text-align: center; }
.kc-card-center {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -40%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.pc:hover .kc-card-center, .kc-card-center:focus-within { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.kc-card-btn.hdt-pr_btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; min-width: 136px; height: 40px; padding: 0 20px; border-radius: 40px;
  background: #fff; color: var(--dark); font: 400 14px/1 var(--font-sans); white-space: nowrap;
  opacity: 1; transform: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.kc-card-btn.hdt-pr_btn:hover { background: var(--dark); color: #fff; }
@media (hover: none) { .kc-card-center { display: none; } }

/* Pagination: centred numbers, current underlined/dark, "Next". */
.kc-pagination { margin-top: 50px; }
.kc-pagination .hdt-pagination__list { justify-content: center; gap: 4px; }
.kc-pagination .hdt-pagination__item { min-width: 36px; height: 36px; padding: 0 10px; border: 0; background: none; font-size: 14px; color: var(--light); }
.kc-pagination .hdt-pagination__item:hover { color: var(--dark); }
.kc-pagination .hdt-pagination__item--current { color: var(--dark); border-bottom: 2px solid var(--dark); }

/* Filter drawer widgets: big titles, divider between groups. */
.kc-drawer .hdt-widget-title, .kc-drawer .kc-facet__title, .kc-drawer summary { font-size: 20px; font-weight: 500; }

@media (max-width: 1149px) {
  .kc-only-desktop { display: none !important; }
  #productsGrid.c3-grid--5, #productsGrid.c3-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .kc-toplist__slider { padding-inline: 24px; }
  .kc-toplist .hdt-slider__slide a { padding: 10px 10px; font-size: 13px; }
  .kc-heading__inner { padding-block: 35px; }
  .kc-heading__title { font-size: 20px; }
  .kc-main { padding-top: 24px; }
  .kc-toolbar { grid-template-columns: auto auto minmax(0, 1fr); }
  .kc-hide-mobile { display: none !important; }
  .kc-only-mobile { display: grid; }
  #productsGrid.c3-grid--1 { grid-template-columns: minmax(0, 1fr); }
  #productsGrid.c3-grid--5, #productsGrid.c3-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kc-sort .sort-select { min-width: 0; }
  #productsGrid .hdt-badge { width: 38px; height: 38px; font-size: 11px; }
}
/* ==========================================================================
   Filter drawer — Kalles facets (Grid layout.html filter drawer).
   ========================================================================== */
.kc-drawer { width: 340px; max-width: 90vw; background: #fff; }
.kc-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #eee; }
.kc-drawer__title { margin: 0; font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--dark); }
.kc-drawer .hdt-dialog-btn__close { border: 0; background: none; color: var(--dark); cursor: pointer; padding: 4px; }
.kc-drawer .hdt-dialog-btn__close svg { width: 22px; height: 22px; }
.kc-drawer__inner { padding: 0 20px 30px; overflow-y: auto; }

/* Each group: title with a short dark underline, thin divider between groups. */
.kc-facets .hdt-widget { margin: 0; padding: 30px 0; border: 0; border-bottom: 1px solid #ddd; border-radius: 0; background: none; box-shadow: none; }
.kc-facets .hdt-widget:last-child { border-bottom: 0; }
.kc-facets .hdt-widget-title {
  position: relative; display: block; margin: 0 0 20px; padding: 0 0 10px; list-style: none; cursor: default;
  font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--dark); text-transform: none; letter-spacing: 0; border: 0; background: none;
}
.kc-facets .hdt-widget-title::-webkit-details-marker { display: none; }
.kc-facets .hdt-widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 2px; background: var(--dark); }
.kc-facets .kc-acc-icon { display: none; }
.kc-facets .hdt-widget-content { padding: 0; border: 0; }

/* Scrolling lists (categories, colours) with a thin dark scrollbar. */
.kc-facets .filter-scroll { max-height: 200px; overflow-y: auto; padding-right: 12px; scrollbar-width: thin; scrollbar-color: #222 #eee; }
.kc-facets .filter-scroll::-webkit-scrollbar { width: 4px; }
.kc-facets .filter-scroll::-webkit-scrollbar-track { background: #eee; }
.kc-facets .filter-scroll::-webkit-scrollbar-thumb { background: #222; }
.kc-facets .hdt-filter-group__list { margin: 0; padding: 0; list-style: none; }
.kc-facets .hdt-filter-group__list-item { margin: 0 0 14px; }
.kc-facets .hdt-filter-group__list-item:last-child { margin-bottom: 0; }

/* Product categories: plain links. */
.kc-facets .filter-check { display: flex; align-items: center; gap: 0; padding: 0; font-size: 14px; color: var(--dark); text-decoration: none; }
.kc-facets .filter-check .filter-count { display: none; }
.kc-facets .filter-check:hover, .kc-facets .filter-check.active { color: var(--accent); }

/* Colour: 24px circles, name + (count). */
.kc-facets .kc-color { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dark); text-decoration: none; }
.kc-facets .kc-color .color-dot { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); box-shadow: none; }
.kc-facets .kc-color.active .color-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--dark); }
.kc-facets .kc-color:hover, .kc-facets .kc-color.active { color: var(--accent); }
.kc-facets .filter-count { color: inherit; }

/* Size pills. */
.kc-facets .size-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-facets .size-pill { min-width: 44px; padding: 7px 12px; border: 1px solid #ddd; border-radius: 0; background: #fff; font-size: 13px; color: var(--dark); text-align: center; text-decoration: none; }
.kc-facets .size-pill:hover, .kc-facets .size-pill.active { border-color: var(--dark); background: var(--dark); color: #fff; }

/* Price: accent track, round handle, "Price: £ [min] - £ [max]" boxes. */
.kc-facets .price-slider { padding-top: 6px; }
.kc-facets .price-range-input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 3px; margin: 8px 0 26px; border-radius: 3px;
  background: var(--accent) !important; outline: none; cursor: pointer;
}
.kc-facets .price-range-input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 0; box-shadow: 0 0 0 3px rgba(224, 178, 82, .2); }
.kc-facets .price-range-input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 0; }
.kc-price-boxes { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--light, #878787); }
.kc-price-box { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex: 0 1 86px; height: 36px; padding: 0 12px; border: 1px solid #eee; border-radius: 4px; color: var(--light, #878787); }
.kc-price-box i { font-style: normal; margin-right: auto; }
.kc-facets .price-range-readout { margin-top: 12px; font-size: 13px; color: var(--mid, #696969); }

/* "Refine by" active filters block at the top of the drawer. */
.kc-facets__active { padding: 24px 0; border-bottom: 1px solid #ddd; }
/* The min/max boxes already show the band; keep only the clear (x) link from the old readout. */
.kc-facets .price-range-readout > span { display: none; }
.kc-facets .price-range-readout { margin-top: 8px; }

/* Layout switcher icons — Kalles hdt-view-layout-switch: 26px-high outlined box with solid bars inside,
   grey by default, dark when active/hovered (collection-products.css .hdt-icon_view*). */
.c3-cols { gap: 10px; }
.c3-cols .c3-col { padding: 0; opacity: 1; color: #aaa; transition: color .25s; }
.c3-cols .c3-col:hover, .c3-cols .c3-col.is-active { color: var(--dark); opacity: 1; }
.c3-cols .kc-ico { display: flex; gap: 3px; box-sizing: border-box; height: 26px; padding: 2px; border: 1px solid currentColor; color: inherit; transition: .25s; }
.c3-cols .kc-ico i { display: block; flex: none; width: 10px; height: 100%; border-radius: 0; background: currentColor; }
.c3-cols .kc-ico[style*="--n:1"] i { width: 22px; }
.c3-cols .kc-ico--list { flex-direction: column; justify-content: space-between; gap: 0; width: 29px; }
.c3-cols .kc-ico--list i { width: 100%; height: 5px; }

/* Kalles toolbar controls (collection-products.css .hdt-shop-control): Filter and Sort are 60% foreground
   grey, sentence case, 14px; the sort is a #ddd-bordered pill. Layout buttons size to their icon so the
   outlined boxes don't overlap. */
.c3-cols .c3-col { width: auto; height: auto; min-width: 0; }
.c3-cols { gap: 10px; }
.hdt-filter_btn { gap: 5px; color: rgba(34, 34, 34, .6); font: 400 14px/22px var(--font-sans); text-transform: none; letter-spacing: 0; }
.hdt-filter_btn:hover { color: var(--dark); }
.hdt-filter_btn svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.kc-sort .sort-select { min-width: 190px; border: 1px solid #ddd; color: rgba(34, 34, 34, .6); font: 400 14px var(--font-sans); }
.kc-sort .sort-select:hover, .kc-sort .sort-select:focus { color: var(--dark); border-color: #ddd; }
.kc-sort svg { color: rgba(34, 34, 34, .6); }
@media (max-width: 767px) { .kc-sort .sort-select { min-width: 0; } }

/* Phones: the sort pill just says "Sort" (Kalles hides the current choice below 768px). The native select
   stays on top, transparent, so tapping still opens the options list. */
.kc-sort__label { display: none; }
@media (max-width: 767px) {
  .kc-sort__label { display: block; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font: 400 14px var(--font-sans); color: rgba(34, 34, 34, .6); pointer-events: none; }
  .kc-sort .sort-select, .kc-sort .sort-select:hover, .kc-sort .sort-select:focus { color: transparent; }
  .kc-sort:hover .kc-sort__label { color: var(--dark); }
  .kc-sort .sort-select option { color: #222; }
}
