/* Universal ordinary-family presentation. Loaded only outside the Products route. */
body#category {
  --sauleda-family-red: #b82828;
  --sauleda-family-red-dark: #8c1f1f;
  --sauleda-family-ink: #1a1a18;
  --sauleda-family-copy: #4a4540;
  --sauleda-family-muted: #8c8680;
  --sauleda-family-cream: #efefee;
  --sauleda-family-cream-light: #f3f3f4;
  --sauleda-family-border: #d8d2c8;
  --sauleda-family-radius: 14px;
  --sauleda-family-ease: cubic-bezier(.4, 0, .2, 1);
}

body#category .sauleda-family-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 5%;
  border-bottom: 1px solid var(--sauleda-family-border);
}

body#category .sauleda-family-quicknav a {
  padding: 8px 16px;
  border: 1px solid var(--sauleda-family-border);
  border-radius: 999px;
  color: var(--sauleda-family-copy);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}

body#category .sauleda-family-quicknav a:hover {
  border-color: var(--sauleda-family-red);
  color: var(--sauleda-family-red);
}

body#category .sauleda-family-quicknav a.is-active {
  border-color: var(--sauleda-family-red);
  background: rgb(184 40 40 / 8%);
  color: var(--sauleda-family-red);
}

body#category .sauleda-family-quicknav a:focus-visible,
body#category .sauleda-family__button:focus-visible,
body#category .sauleda-family-property a:focus-visible,
body#category .sauleda-family-application:focus-visible {
  outline: 3px solid rgb(184 40 40 / 24%);
  outline-offset: 3px;
}

body#category .sauleda-family-editorial,
body#category .sauleda-family-section,
body#category .sauleda-family-warranty {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  scroll-margin-top: 7rem;
}

body#category .sauleda-family-editorial {
  padding: 64px 5% 76px;
  background: #fff;
}

body#category .sauleda-family-editorial__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

body#category .sauleda-family-editorial__grid--text-only {
  display: block;
}

body#category .sauleda-family-editorial__grid--text-only .sauleda-family-editorial__copy {
  max-width: 680px;
}

body#category .sauleda-family__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--sauleda-family-muted);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

body#category .sauleda-family__label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sauleda-family-red);
  content: '';
  flex-shrink: 0;
}

body#category .sauleda-family-editorial__copy h2 {
  margin: 0 0 22px;
  color: var(--sauleda-family-ink);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

body#category .sauleda-family-editorial__text {
  color: var(--sauleda-family-copy);
  font-size: .92rem;
  line-height: 1.85;
}

body#category .sauleda-family-editorial__text > :last-child {
  margin-bottom: 0;
}

body#category .sauleda-family__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 12px 24px;
  border: 1.5px solid var(--sauleda-family-ink);
  border-radius: 999px;
  color: var(--sauleda-family-ink);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-decoration: none;
  transition: color .25s, background-color .25s, transform .25s;
}

body#category .sauleda-family__button:hover {
  background: var(--sauleda-family-ink);
  color: #fff;
  transform: translateY(-1px);
}

body#category .sauleda-family-editorial__images {
  position: relative;
  height: 460px;
}

body#category .sauleda-family-editorial__image {
  position: absolute;
  display: block;
  object-fit: cover;
  border-radius: var(--sauleda-family-radius);
  box-shadow: 0 20px 50px rgb(0 0 0 / 14%);
}

body#category .sauleda-family-editorial__image--back {
  top: 0;
  right: 0;
  width: 75%;
  height: 82%;
}

body#category .sauleda-family-editorial__image--front {
  bottom: 0;
  left: 0;
  width: 52%;
  height: 58%;
  border: 5px solid #fff;
  box-shadow: 0 20px 50px rgb(0 0 0 / 16%);
}

body#category .sauleda-family-editorial__images--single .sauleda-family-editorial__image {
  inset: 0;
  width: 88%;
  height: 100%;
  margin: auto;
  border: 0;
}

body#category .sauleda-family-section {
  padding: 76px 5%;
}

body#category .sauleda-family-section__inner {
  max-width: 1280px;
  margin: 0 auto;
}

body#category .sauleda-family-section h2 {
  margin: 0 0 34px;
  color: var(--sauleda-family-ink);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

/* Properties / highlights */
body#category .sauleda-family-properties {
  border-top: 1px solid var(--sauleda-family-border);
  background: #fff;
}

body#category .sauleda-family-properties__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

body#category .sauleda-family-property {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  border-radius: var(--sauleda-family-radius);
  background: var(--sauleda-family-cream-light);
  text-align: center;
}

body#category .sauleda-family-property__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  flex: 0 0 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgb(184 40 40 / 8%);
}

body#category .sauleda-family-property__icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

body#category .sauleda-family-property h3 {
  margin: 0 0 8px;
  color: var(--sauleda-family-ink);
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

body#category .sauleda-family-property h3 a {
  color: inherit;
  text-decoration: none;
}

body#category .sauleda-family-property h3 a:hover {
  color: var(--sauleda-family-red);
}

body#category .sauleda-family-property__subtitle {
  margin: 0 0 8px;
  color: var(--sauleda-family-red);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body#category .sauleda-family-property p,
body#category .sauleda-family-property .rich-text {
  margin: 0;
  color: var(--sauleda-family-copy);
  font-size: .8rem;
  line-height: 1.6;
}

body#category .sauleda-family-property .rich-text > :last-child {
  margin-bottom: 0;
}

/* Technical data */
/* The technical sheet is published by WebERP as its own section. Keep its
   original collection-page composition without rebuilding that HTML. */
body#category .sauleda-category-technical {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 76px 5%;
  scroll-margin-top: 7rem;
  background: #f3f3f4;
}

body#category .sauleda-category-technical__content {
  max-width: 1280px;
  margin: 0 auto;
  color: var(--sauleda-family-copy);
  font-size: .9rem;
  line-height: 1.65;
}

body#category .sauleda-category-technical h2 {
  max-width: 1280px;
  margin: 0 auto 34px;
  color: var(--sauleda-family-ink);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

body#category .sauleda-family-technical {
  background: var(--sauleda-family-cream-light);
}

body#category .sauleda-family-technical__content {
  max-width: 100%;
  color: var(--sauleda-family-copy);
  font-size: .9rem;
  line-height: 1.65;
}

body#category .sauleda-family-technical__content h2 {
  margin-bottom: 34px;
}

body#category .sauleda-family-technical__content ul,
body#category .sauleda-family-technical__content ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
  max-width: 900px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body#category .sauleda-family-technical__content li {
  min-width: 0;
}

body#category .sauleda-family-technical__content table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
}

body#category .sauleda-family-technical__content th,
body#category .sauleda-family-technical__content td {
  padding: 12px 14px;
  border: 1px solid var(--sauleda-family-border);
  text-align: left;
  vertical-align: top;
}

body#category .sauleda-family-technical__content th {
  color: var(--sauleda-family-ink);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Applications */
body#category .sauleda-family-applications {
  background: var(--sauleda-family-cream-light);
}

body#category .sauleda-family-applications__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body#category .sauleda-family-application-item {
  min-width: 0;
}

body#category .sauleda-family-application {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  color: var(--sauleda-family-ink);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, transform .2s;
}

body#category .sauleda-family-application:hover {
  color: var(--sauleda-family-red);
  transform: translateX(3px);
}

body#category .sauleda-family-application__image,
body#category .sauleda-family-application__marker {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  background: rgb(184 40 40 / 8%);
}

body#category .sauleda-family-application__image {
  object-fit: cover;
}

body#category .sauleda-family-application__marker {
  position: relative;
  border-radius: 50%;
}

body#category .sauleda-family-application__marker::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sauleda-family-red);
  content: '';
  transform: translate(-50%, -50%);
}

body#category .sauleda-family-application__content,
body#category .sauleda-family-application__content strong,
body#category .sauleda-family-application__content > span {
  display: block;
}

body#category .sauleda-family-application__content {
  min-width: 0;
}

body#category .sauleda-family-application__content strong {
  color: inherit;
  font-weight: 600;
  line-height: 1.35;
}

body#category .sauleda-family-application__content .rich-text,
body#category .sauleda-family-application__content > span {
  margin-top: 4px;
  color: var(--sauleda-family-copy);
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.5;
}

body#category .sauleda-family-application__content .rich-text > :last-child {
  margin-bottom: 0;
}

/* Native family filters are placed with the product controls. */
body#category .sauleda-family-product-filters {
  margin: 0 0 32px;
  scroll-margin-top: 7rem;
}

body#category .sauleda-family-product-filters .ps-categorytree {
  display: none;
}

body#category .sauleda-family-product-filters:not(:has(#search_filters)) {
  display: none;
}

body#category .sauleda-family-product-filters #search_filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--sauleda-family-border);
  border-radius: var(--sauleda-family-radius);
  background: var(--sauleda-family-cream-light);
}

body#category .sauleda-family-product-filters #search_filters > .facet {
  min-width: 160px;
  flex: 1 1 180px;
  margin: 0;
}

/* Maintenance */
body#category .sauleda-family-maintenance {
  border-top: 1px solid var(--sauleda-family-border);
  background: #fff;
}

body#category .sauleda-family-maintenance h2 {
  margin-bottom: 20px;
}

body#category .sauleda-family-maintenance__content {
  max-width: 820px;
  color: var(--sauleda-family-copy);
  font-size: .9rem;
  line-height: 1.8;
}

body#category .sauleda-family-maintenance__content h3 {
  margin: 28px 0 10px;
  color: var(--sauleda-family-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

body#category .sauleda-family-maintenance__content p {
  margin: 0 0 8px;
}

body#category .sauleda-family-maintenance__content ol {
  display: flex;
  max-width: 820px;
  margin: 20px 0 24px;
  padding: 0;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  counter-reset: care-step;
}

body#category .sauleda-family-maintenance__content ol > li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0 16px;
  align-items: start;
  color: var(--sauleda-family-copy);
  font-size: .86rem;
  line-height: 1.65;
  counter-increment: care-step;
}

body#category .sauleda-family-maintenance__content ol > li::before {
  display: flex;
  grid-row: 1 / span 20;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sauleda-family-cream-light);
  color: var(--sauleda-family-red);
  content: counter(care-step);
  font-size: .74rem;
  font-weight: 700;
}

body#category .sauleda-family-maintenance__content ol > li > * {
  grid-column: 2;
}

body#category .sauleda-family-maintenance__content ol p {
  margin: 0;
}

body#category .sauleda-family-maintenance__content .maintenance-note {
  color: var(--sauleda-family-muted);
  font-size: .8rem;
  font-style: italic;
}

/* Certifications */
body#category .sauleda-family-certifications {
  background: var(--sauleda-family-cream-light);
}

body#category .sauleda-family-certifications__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
}

body#category .sauleda-family-certification {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--sauleda-family-radius);
  background: #fff;
}

body#category .sauleda-family-certification__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgb(184 40 40 / 8%);
}

body#category .sauleda-family-certification__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

body#category .sauleda-family-certification h3 {
  margin: 0 0 6px;
  color: var(--sauleda-family-ink);
  font-size: .92rem;
  font-weight: 700;
}

body#category .sauleda-family-certification p,
body#category .sauleda-family-certification .rich-text {
  margin: 0;
  color: var(--sauleda-family-copy);
  font-size: .8rem;
  line-height: 1.6;
}

/* Warranty strip */
body#category .sauleda-family-warranty {
  padding: 60px 5%;
  background: var(--sauleda-family-ink);
}

body#category .sauleda-family-warranty__inner {
  max-width: 1280px;
  margin: 0 auto;
}

body#category .sauleda-family-warranty__content {
  color: rgb(255 255 255 / 75%);
  font-size: .88rem;
  line-height: 1.7;
}

body#category .sauleda-family-warranty__content::after,
body#category .sauleda-family-warranty__content .warranty-content::after {
  display: block;
  clear: both;
  content: '';
}

body#category .sauleda-family-warranty__content h1,
body#category .sauleda-family-warranty__content h2,
body#category .sauleda-family-warranty__content h3 {
  color: #fff;
}

body#category .sauleda-family-warranty__content h2 {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
}

body#category .sauleda-family-warranty__content h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

body#category .sauleda-family-warranty__content p {
  max-width: 820px;
  margin: 0 0 6px;
}

body#category .sauleda-family-warranty__content small {
  color: rgb(255 255 255 / 55%);
  font-size: .7rem;
  letter-spacing: .04em;
}

body#category .sauleda-family-warranty__content .warranty-years {
  float: left;
  min-width: 112px;
  margin: 0 40px 24px 0;
  text-align: center;
}

body#category .sauleda-family-warranty__content .warranty-years strong {
  display: block;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  white-space: nowrap;
}

body#category .sauleda-family-warranty__content .warranty-years span {
  display: block;
  margin-top: 6px;
  color: rgb(255 255 255 / 55%);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Scroll reveal from the approved reference; JS only enables the hidden state. */
body#category.sauleda-family-motion .sauleda-family-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--sauleda-family-ease), transform .9s var(--sauleda-family-ease);
  will-change: opacity, transform;
}

body#category.sauleda-family-motion .sauleda-family-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body#category.sauleda-family-motion .sauleda-family-properties__grid > :nth-child(4n + 2),
body#category.sauleda-family-motion .sauleda-family-applications__grid > :nth-child(4n + 2) {
  transition-delay: .08s;
}

body#category.sauleda-family-motion .sauleda-family-properties__grid > :nth-child(4n + 3),
body#category.sauleda-family-motion .sauleda-family-applications__grid > :nth-child(4n + 3) {
  transition-delay: .16s;
}

body#category.sauleda-family-motion .sauleda-family-properties__grid > :nth-child(4n + 4),
body#category.sauleda-family-motion .sauleda-family-applications__grid > :nth-child(4n + 4) {
  transition-delay: .24s;
}

@media (max-width: 960px) {
  body#category .sauleda-family-editorial__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  body#category .sauleda-family-editorial__images {
    height: 380px;
    order: -1;
  }
}

@media (max-width: 900px) {
  body#category .sauleda-family-properties__grid,
  body#category .sauleda-family-applications__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body#category .sauleda-family-technical__content ul,
  body#category .sauleda-family-technical__content ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body#category .sauleda-family-certifications__grid {
    grid-template-columns: 1fr;
  }

  body#category .sauleda-family-warranty__content .warranty-years {
    float: none;
    width: fit-content;
    margin: 0 0 18px;
    text-align: left;
  }
}

@media (max-width: 560px) {
  body#category .sauleda-family-editorial,
  body#category .sauleda-family-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  body#category .sauleda-family-quicknav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 5%;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  body#category .sauleda-family-quicknav a {
    flex: 0 0 auto;
  }

  body#category .sauleda-family-properties__grid,
  body#category .sauleda-family-applications__grid,
  body#category .sauleda-family-technical__content ul,
  body#category .sauleda-family-technical__content ol {
    grid-template-columns: 1fr;
  }

  body#category .sauleda-family-editorial__images {
    height: 300px;
  }

  body#category .sauleda-family-property {
    padding: 26px 20px;
  }

  body#category .sauleda-family-warranty {
    padding: 48px 5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#category.sauleda-family-motion .sauleda-family-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body#category .sauleda-family__button,
  body#category .sauleda-family-application,
  body#category .sauleda-family-quicknav a {
    transition: none;
  }
}
