/* Listing presentation only. Catalogue filtering, URLs and quote pricing stay
   in shop-filters.js. This sheet follows the legacy page-local styles. */
.shop-listing {
  --shop-ink: var(--heading, #0f172a);
  --retail-ink: var(--heading, #0f172a);
  --retail-blue: var(--cta-bg, #1D4E89);
  --retail-image: #fff;
  --retail-warm: #f4f5f5;
  --shop-accent: var(--cta-bg, #1D4E89);
  --shop-accent-hover: var(--cta-bg-hover, #173F70);
  --shop-accent-text: var(--cta-bg, #1D4E89);
  --shop-action-ink: var(--cta-text, #fff);
  --shop-surface: #f4f5f5;
  --shop-muted: var(--text-muted, #5f6e84);
  --shop-line: #dfe3e6;
  --shop-blue: var(--shop-accent);
  background: #fff;
  color: var(--shop-ink);
}

.shop-listing main { background: #fff; }
.shop-listing .retail-navigation .nav__cta,
.shop-listing .mobile-nav__cta .btn--primary {
  background: var(--shop-blue);
  border-color: var(--shop-blue);
  border-radius: 6px;
  color: var(--shop-action-ink);
}
.shop-listing .nav__cta:hover,
.shop-listing .mobile-nav__cta .btn--primary:hover {
  background: var(--shop-accent-hover);
  border-color: var(--shop-accent-hover);
  color: var(--shop-action-ink);
}
.shop-listing .mobile-nav__cta .btn--primary::before { background: none; }
.shop-listing .shop-hero,
.shop-listing .category-hero {
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-lg);
  background: #fff;
  border: 0;
  text-align: left;
  color: var(--shop-ink);
}
.shop-listing .category-hero__content { max-width: 850px; }
.shop-listing .shop-hero h1,
.shop-listing .category-hero h1 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--shop-ink);
  text-transform: none;
}
.shop-listing .shop-hero p,
.shop-listing .category-hero p {
  max-width: 800px;
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--shop-muted);
}
.shop-listing .shop-hero__badges,
.shop-listing .category-hero__features { display: none; }

.shop-listing .retail-categories {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding-block: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--shop-line);
  scrollbar-width: thin;
}
.retail-categories a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--shop-muted);
  text-decoration: none;
}
.retail-categories a:hover,
.retail-categories a[aria-current="page"] {
  color: var(--shop-ink);
  border-bottom-color: currentColor;
}

.shop-listing .retail-advice { padding-block: var(--space-sm); background: #f5f5f5; }
.shop-listing .retail-advice a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  min-height: 44px;
  color: var(--shop-ink);
  font-size: var(--text-sm);
}
.shop-listing .retail-advice__label { display: flex; align-items: center; gap: var(--space-sm); }
.shop-listing .retail-advice__label svg { flex-shrink: 0; }
.shop-listing .retail-advice__link { text-decoration: underline; }
.shop-listing .retail-advice a:focus-visible { outline: 2px solid var(--shop-blue); outline-offset: 3px; }

.shop-listing .shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  padding-block: var(--space-sm) var(--space-lg);
}
.shop-listing .shop-products { min-width: 0; }
.shop-listing .products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-sm);
}
.shop-listing .shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
}
.shop-listing .shop-toolbar__count {
  font-size: var(--text-sm);
  color: var(--shop-muted);
}
.shop-listing .shop-toolbar__sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0;
}
.shop-listing .shop-toolbar__sort label { display: none; }
.shop-listing .shop-toolbar__sort #sort-select {
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 32px 10px 16px;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  background-color: #fff;
  color: var(--shop-ink);
  font-size: var(--text-sm);
  font-weight: 600;
}
.shop-listing .mobile-sort-trigger,
.shop-listing .mobile-products-header { display: none; }
.shop-listing .mobile-filter-toggle {
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--shop-ink);
  border-radius: 6px;
  background: #fff;
  color: var(--shop-ink);
  font-size: var(--text-sm);
  box-shadow: none;
}
.shop-listing .shop-products > .mobile-filter-toggle { margin-bottom: var(--space-sm); }
.shop-listing .filter-chips-container { margin-bottom: var(--space-sm); }
.shop-listing .filter-chips { gap: var(--space-xs); }
.shop-listing .filter-chip {
  min-height: 36px;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  background: var(--shop-accent);
  color: var(--shop-action-ink);
  box-shadow: none;
}

.shop-listing .product-card,
.shop-listing .product-card:hover {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
  overflow: visible;
}
.shop-listing .product-card__media {
  position: relative;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--retail-image, #f4f5f5);
  transition: border-color 160ms ease;
}
.shop-listing .product-card:focus-within .product-card__media { border-color: var(--shop-blue); }
.shop-listing .product-card a.product-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 6px;
  background: var(--retail-image, #f4f5f5);
  box-shadow: none;
  text-decoration: none;
  overflow: hidden;
}
/* Match the full image canvas in both lifestyle and white-background views. */
.shop-listing .product-card:not(.product-card--skeleton) a.product-card__image {
  background: var(--retail-image, #f4f5f5) !important;
}
.shop-listing .product-card:not(.product-card--skeleton) .product-card__image img {
  background: transparent !important;
}
.shop-listing .product-card__image::before,
.shop-listing .product-card__image::after { display: none; }
.shop-listing .product-card__image picture {
  display: block;
  width: 100%;
  height: 100%;
}
.shop-listing .product-card__image img,
.shop-listing .product-card:hover .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  mix-blend-mode: normal;
  opacity: 1;
  transform: none;
  transition: none;
}
.shop-listing .product-card__save {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--shop-ink);
  background: #fff;
  cursor: pointer;
  box-shadow: none;
}
.shop-listing .product-card__save:hover { background: var(--shop-surface); color: var(--shop-accent); }
.shop-listing .product-card__save[aria-pressed="true"] { color: var(--shop-accent); }
.shop-listing .product-card__save[aria-pressed="true"] svg { fill: currentColor; }
.shop-listing .product-card__image-views {
  display: flex;
  align-self: flex-start;
  gap: 16px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.shop-listing .product-card__image-views button {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 8px 0 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--retail-ink, #0B2442);
  background: transparent;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
}
.shop-listing .product-card__image-views button[aria-pressed="true"] {
  border-bottom-color: var(--shop-accent-text);
  background: transparent;
  color: var(--shop-accent-text);
}
.shop-listing .product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: var(--space-sm) 0 0;
  text-align: left;
}
.shop-listing .product-card__title,
.shop-listing .product-card .product-card__title a {
  display: block;
  height: auto;
  min-height: 0;
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  font-weight: 700;
  color: var(--retail-ink, #0B2442);
  text-decoration: none;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.shop-listing .product-card .product-card__title a:hover { text-decoration: underline; }
.shop-listing .product-card__variant {
  margin: 4px 0 var(--space-sm);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--shop-muted);
}
.shop-listing .product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
}
.shop-listing .product-card__offer {
  margin-top: auto;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--retail-ink, #0B2442);
}
.shop-listing .product-card__price-from {
  flex-basis: 100%;
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--retail-ink, #0B2442);
}
.shop-listing .product-card__price-current,
.shop-listing .product-card__price-current:first-child {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(1.75rem, 2.4vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--shop-ink);
  letter-spacing: -0.04em;
}
.shop-listing .product-card__currency {
  align-self: flex-start;
  padding-top: 3px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}
.shop-listing .product-card__unit { font-size: var(--text-xs); letter-spacing: 0; }
.shop-listing .product-card__price-current--request { font-size: var(--text-lg); letter-spacing: 0; }
.shop-listing .product-card__summary {
  margin: 4px 0 0;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.5;
  color: var(--shop-muted);
}
.shop-listing .product-card__stock--in-stock { color: var(--shop-accent-text); font-weight: 600; }
.shop-listing .product-card__price-original { color: var(--shop-muted); font-size: 13px; text-decoration: line-through; }
.shop-listing .product-card__price-original ~ .product-card__price-current { color: var(--shop-accent); }
.shop-listing .product-card__price-discount,
.shop-listing .product-card__badge--sale { background: var(--shop-accent); color: #fff; border-radius: 4px; padding: 4px 7px; font-size: 11px; font-weight: 700; }
.shop-listing .product-card__badge--new { background: var(--shop-accent); color: var(--shop-action-ink); border-radius: 4px; }
.shop-listing .product-card__actions--retail {
  display: flex;
  margin-top: 0;
  padding-top: var(--space-sm);
  border: 0;
}
.shop-listing .product-card a.product-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: 48px;
  padding: 12px 8px;
  border: 1px solid var(--retail-blue, #1761d6);
  border-radius: 6px;
  background: var(--retail-blue, #1761d6);
  color: var(--shop-action-ink);
  font-size: var(--text-sm);
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.shop-listing .product-card a.product-card__action:hover {
  background: var(--shop-accent-hover);
  border-color: var(--shop-accent-hover);
  color: var(--shop-action-ink);
  text-decoration: none;
}
.shop-listing .product-card :focus-visible,
.shop-listing .retail-categories a:focus-visible {
  outline: 2px solid var(--shop-accent-text);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .shop-listing .product-card:hover .product-card__media { border-color: var(--shop-blue); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-listing .product-card__media,
  .shop-listing .product-card__image img,
  .shop-listing .product-card a.product-card__action { transition: none; }
}

.shop-listing .filter-sheet,
.shop-listing .filter-sheet__header,
.shop-listing .filter-sheet__footer { background: #fff; }
.shop-listing .filter-sheet__apply {
  border-radius: 6px;
  background: var(--shop-blue);
  color: var(--shop-action-ink);
  box-shadow: none;
}
.shop-listing .filter-sheet__reset { border-radius: 6px; }
/* The modal sits above chat, so it needs only the device safe-area inset. */
.shop-listing .filter-sheet__footer { padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.shop-listing .filter-group__header,
.shop-listing .filter-option,
.shop-listing .filter-swatch { color: var(--shop-ink); }
.shop-listing .filter-group__title { font-size: var(--text-sm); }
.shop-listing .filter-option { min-height: 44px; }
.shop-listing .filter-option__label { font-size: var(--text-sm); }
.shop-listing .filter-option__count { color: var(--shop-muted); background: transparent; }
.shop-listing .filter-option:hover .filter-option__count { color: var(--shop-accent-text); background: transparent; }
.shop-listing .filter-option--checked,
.shop-listing .filter-option:hover { background: var(--shop-surface); }

/* One quiet control style across the sidebar, sorting and mobile sheet. */
.shop-listing .filter-group { padding-bottom: 12px; margin-bottom: 12px; border-color: var(--shop-line); }
.shop-listing .filter-group__header { margin-inline: 0; padding-inline: 0; border-radius: 6px; }
.shop-listing .filter-option { margin-inline: 0; padding: 8px; gap: 10px; border-radius: 6px; }
.shop-listing .filter-option__checkmark { width: 18px; height: 18px; min-width: 18px; border-width: 1px; border-color: #87929b; background: #fff; }
.shop-listing .filter-option input:checked + .filter-option__checkmark { background: var(--shop-accent); border-color: var(--shop-accent-text); box-shadow: none; }
.shop-listing .filter-option input[type="checkbox"]:checked + .filter-option__checkmark::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}
.shop-listing .filter-option input[type="radio"]:checked + .filter-option__checkmark::after { background: var(--shop-action-ink); }
.shop-listing .filter-option input:checked ~ .filter-option__label { color: var(--shop-accent-text); }
.shop-listing .filter-group__count,
.shop-listing .mobile-filter-toggle__count { background: var(--shop-accent); color: var(--shop-action-ink); }
.shop-listing .filter-chip::before { display: none; }
.shop-listing .filter-chip:hover { background: var(--shop-accent-hover); border-color: var(--shop-accent-hover); transform: none; }
.shop-listing .filter-chip--clear { background: transparent; border-color: transparent; color: var(--shop-muted); text-decoration: underline; }
.shop-listing .filter-chip svg { color: inherit; opacity: 1; }
.shop-listing .filter-sheet__apply:hover { background: var(--shop-accent-hover); }
.shop-listing .filter-sheet__reset { border: 1px solid var(--shop-line); color: var(--shop-ink); background: #fff; }
.shop-listing .filter-sheet__title { color: var(--shop-ink); }
@media (min-width: 768px) {
  .shop-listing .products-grid { gap: var(--space-xl); }
  .shop-listing .product-card__title,
  .shop-listing .product-card .product-card__title a { font-size: var(--text-base); }
  .shop-listing .product-card__offer { padding: 8px 0 0; }
}
@media (min-width: 1024px) {
  .shop-listing .shop-layout { grid-template-columns: 248px minmax(0, 1fr); }
  .shop-listing .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-listing .mobile-filter-toggle { display: none; }
  .shop-listing .shop-filters {
    display: flex !important;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    max-height: calc(100vh - var(--header-height) - var(--space-xl));
    max-height: calc(100dvh - var(--header-height) - var(--space-xl));
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
    overflow: hidden;
    flex-direction: column;
  }
  .shop-listing .shop-filters__header {
    padding: 0 0 var(--space-md);
    background: #fff;
    border-bottom: 1px solid var(--shop-line);
  }
  .shop-listing .shop-filters__title { font-size: var(--text-base); }
  .shop-listing .shop-filters__body { padding: var(--space-xs) 0 0; }
  .shop-listing .shop-filters__badge {
    background: var(--shop-ink);
    border-radius: 50%;
    box-shadow: none;
  }
  .shop-listing .shop-filters__clear { padding: 8px 0; color: var(--shop-ink); text-decoration: underline; }
  .shop-listing .shop-toolbar__sort { margin-left: auto; }
  .shop-listing .shop-toolbar__sort label { display: block; font-size: var(--text-sm); }
}
@media (min-width: 1440px) {
  .shop-listing .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Keep the explanatory copy in a continuous reading flow. The legacy
   sections each added 64px on both sides, doubling the space at boundaries. */
.shop-listing .shop-editorial,
.shop-listing .type-guide { padding-block: var(--space-lg); }
.shop-listing .shop-editorial h2 { margin-bottom: 12px; }
.shop-listing .shop-editorial__body,
.shop-listing .type-guide__body,
.shop-listing .type-guide__body p,
.shop-listing .type-guide__lead,
.shop-listing .shop-editorial p,
.shop-listing main > .section p,
.shop-listing [aria-labelledby="shop-uitleg"] p,
.shop-listing [aria-labelledby="kennisbank-heading"] p { line-height: 1.6; }
.shop-listing .shop-editorial__body p,
.shop-listing .type-guide__body p,
.shop-listing .type-guide__body ul,
.shop-listing .type-guide__table { margin-bottom: 12px; }
.shop-listing .shop-editorial__body > :last-child,
.shop-listing .type-guide__body > :last-child { margin-bottom: 0; }
.shop-listing .type-guide__lead { margin-bottom: var(--space-md); }
.shop-listing .type-guide h3 { margin-top: var(--space-md); }
.shop-listing .type-guide__body > h3:first-child { margin-top: 0; }
.shop-listing .type-guide__actions { margin-top: var(--space-md); }
.shop-listing .type-guides__nav { margin-top: 12px; }
/* These older listing CTA/benefit sections carry their spacing inline. */
.shop-listing main > .section {
  padding-block: var(--space-lg) !important;
  margin-top: 0 !important;
}
