.product-category-page {
  background: #f7f9fc;
  color: #17243d;
}

.category-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.category-hero {
  padding: 42px 0 52px;
  background:
    radial-gradient(circle at 82% 16%, rgba(34, 108, 255, 0.12), transparent 31%),
    linear-gradient(145deg, #f9fbff 0%, #eef4ff 100%);
  border-bottom: 1px solid #dde6f2;
}

.category-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: #6b7c96;
  font-size: 14px;
}

.category-breadcrumb a {
  color: #49617e;
  text-decoration: none;
}

.category-breadcrumb a:hover {
  color: #1768e5;
}

.category-eyebrow,
.category-section-head > div > p {
  margin: 0 0 10px;
  color: #1768e5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #10213c;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.category-lead {
  max-width: 760px;
  margin: 20px 0 28px;
  color: #536783;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.8;
}

.category-products {
  padding: 64px 0 72px;
}

.category-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.category-section-head h2,
.category-sourcing h2,
.category-faq h2,
.category-related h2,
.category-articles h2,
.category-final-cta h2 {
  margin: 0;
  color: #10213c;
  font-size: clamp(25px, 3.5vw, 36px);
  line-height: 1.22;
}

.category-section-head > span {
  flex: 0 0 auto;
  color: #71819a;
  font-size: 14px;
}

.category-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.category-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e7f0;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(22, 46, 82, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-product-card:hover {
  transform: translateY(-4px);
  border-color: #a8c7f5;
  box-shadow: 0 18px 36px rgba(22, 71, 143, 0.13);
}

.category-product-media {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #f2f5f9;
}

.category-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.category-product-card:hover .category-product-media img {
  transform: scale(1.035);
}

.category-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.category-product-body h2 {
  margin: 0;
  color: #17243d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.category-product-body p {
  display: -webkit-box;
  min-height: 3.3em;
  margin: 11px 0 18px;
  overflow: hidden;
  color: #687a92;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-product-body > span {
  margin-top: auto;
  color: #1768e5;
  font-size: 14px;
  font-weight: 650;
}

.category-sourcing {
  padding: 64px 0;
  background: #10213c;
  color: #dbe6f7;
}

.category-sourcing-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}

.category-sourcing h2 {
  color: #fff;
}

.category-sourcing p:not(.category-eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: #c3d1e6;
  line-height: 1.8;
}

.category-sourcing ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-sourcing li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.category-sourcing li::before {
  position: absolute;
  left: 18px;
  color: #65a3ff;
  content: "✓";
  font-weight: 800;
}

.category-lower {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 54px;
  padding-top: 70px;
  padding-bottom: 76px;
}

.category-faq-list {
  margin-top: 24px;
  border-top: 1px solid #dce5ef;
}

.category-faq details {
  border-bottom: 1px solid #dce5ef;
}

.category-faq summary {
  padding: 20px 30px 20px 0;
  cursor: pointer;
  color: #1b2a43;
  font-weight: 650;
}

.category-faq details p {
  margin: -4px 0 20px;
  color: #62758f;
  line-height: 1.75;
}

.category-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-related-links a {
  padding: 11px 15px;
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  background: #fff;
  color: #36516f;
  text-decoration: none;
}

.category-related-links a:hover {
  border-color: #8bb7f5;
  color: #1768e5;
}

.category-articles {
  padding-bottom: 72px;
}

.category-articles-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}

.category-articles-head > div > p {
  margin: 0 0 8px;
  color: #1768e5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-articles-head > div > span {
  display: block;
  max-width: 720px;
  margin-top: 12px;
  color: #62758f;
  line-height: 1.7;
}

.category-articles-head > a {
  flex: 0 0 auto;
  color: #1768e5;
  font-weight: 650;
  text-decoration: none;
}

.category-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e7f0;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(22, 46, 82, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-article-card:hover {
  transform: translateY(-3px);
  border-color: #a8c7f5;
  box-shadow: 0 18px 36px rgba(22, 71, 143, 0.12);
}

.category-article-card figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, #edf4ff, #f8fbff);
}

.category-article-card figure img,
.category-article-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-article-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px 20px 20px;
}

.category-article-card h3 {
  margin: 0;
  color: #17243d;
  font-size: 18px;
  line-height: 1.45;
}

.category-article-card p {
  display: -webkit-box;
  margin: 9px 0 14px;
  overflow: hidden;
  color: #687a92;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-article-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: auto;
  border-radius: 50%;
  background: #edf5ff;
  color: #1768e5;
  font-size: 17px;
  font-weight: 700;
}

.category-article-card:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  width: min(100%, 780px);
  min-height: 168px;
  justify-self: start;
}

.category-article-card:only-child figure {
  height: 100%;
  min-height: 168px;
  aspect-ratio: auto;
}

.category-article-card:only-child > div {
  padding: 22px 24px;
}

.category-article-card:only-child h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-final-cta {
  padding: 38px 0;
  background: #e8f1ff;
}

.category-final-cta .category-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.category-final-cta h2 {
  font-size: clamp(23px, 3vw, 31px);
}

.category-final-cta p {
  margin: 9px 0 0;
  color: #5c718d;
}

.category-collection-page {
  overflow-x: clip;
}

.category-collection-page .category-hero {
  padding-bottom: 58px;
}

.category-collection-page .category-breadcrumb {
  margin-bottom: 28px;
}

.category-collection-page .category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.category-collection-page .category-hero-copy {
  min-width: 0;
}

.category-collection-page .category-lead {
  max-width: 680px;
  margin-bottom: 24px;
}

.category-hero-media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 310px;
  padding: 24px 24px 54px;
  border: 1px solid rgba(127, 159, 204, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 64px rgba(38, 79, 137, 0.13);
  backdrop-filter: blur(10px);
}

.category-hero-product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1e8f2;
  border-radius: 18px;
  background: #fff;
  color: #243a58;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(28, 58, 97, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-hero-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(28, 76, 142, 0.14);
}

.category-hero-product img,
.category-hero-product-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f6fa;
  object-fit: contain;
}

.category-hero-product > span:last-child {
  display: -webkit-box;
  min-height: 3.5em;
  padding: 13px 14px 15px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-hero-count {
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: #5e718b;
  font-size: 13px;
}

.category-hero-count strong {
  margin-right: 5px;
  color: #1768e5;
  font-size: 18px;
}

.category-collection-page .category-products {
  padding-top: 54px;
  padding-bottom: 58px;
}

.category-product-grid--focused {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin-inline: auto;
}

.category-collection-page .category-product-media {
  aspect-ratio: 16 / 10;
  padding: 12px;
  background: linear-gradient(145deg, #f7f9fc, #edf2f8);
}

.category-collection-page .category-product-media img {
  object-fit: contain;
}

.category-collection-page .category-product-body {
  padding: 24px 26px 26px;
}

.category-collection-page .category-product-body h2 {
  font-size: 20px;
}

.category-collection-page .category-product-body p {
  min-height: 4.95em;
  -webkit-line-clamp: 3;
}

.category-collection-page .category-sourcing {
  padding: 0 0 58px;
  background: transparent;
  color: #dbe6f7;
}

.category-collection-page .category-sourcing-grid {
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(34px, 5vw, 52px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(74, 142, 255, 0.2), transparent 30%),
    #10213c;
  box-shadow: 0 20px 48px rgba(19, 45, 82, 0.14);
}

.category-collection-page .category-lower {
  gap: 24px;
  padding-top: 0;
  padding-bottom: 58px;
}

.category-collection-page .category-faq,
.category-collection-page .category-related {
  padding: 30px;
  border: 1px solid #e0e7f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22, 46, 82, 0.055);
}

.category-collection-page .category-faq-list {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .category-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .category-sourcing-grid,
  .category-lower {
    grid-template-columns: 1fr;
  }

  .category-sourcing-grid {
    gap: 34px;
  }

  .category-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-collection-page .category-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .category-collection-page .category-hero-copy {
    max-width: 760px;
  }

  .category-hero-media {
    max-width: 680px;
  }

  .category-lower {
    gap: 52px;
  }
}

@media (max-width: 720px) {
  .category-shell {
    width: min(100% - 28px, 1180px);
  }

  .category-hero {
    padding: 24px 0 38px;
  }

  .category-breadcrumb {
    margin-bottom: 24px;
  }

  .category-products {
    padding: 42px 0 52px;
  }

  .category-section-head {
    align-items: start;
  }

  .category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-product-grid--focused {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .category-collection-page .category-hero {
    padding-bottom: 42px;
  }

  .category-collection-page .category-hero-grid {
    gap: 28px;
  }

  .category-hero-media {
    min-height: 0;
    padding: 14px 14px 46px;
    border-radius: 20px;
  }

  .category-hero-count {
    right: 16px;
    bottom: 13px;
  }

  .category-product-card {
    border-radius: 14px;
  }

  .category-product-body {
    padding: 15px;
  }

  .category-product-body h2 {
    font-size: 15px;
  }

  .category-product-body p {
    display: none;
  }

  .category-product-body > span {
    margin-top: 12px;
    font-size: 13px;
  }

  .category-collection-page .category-product-body {
    padding: 17px;
  }

  .category-collection-page .category-product-body h2 {
    font-size: 16px;
  }

  .category-collection-page .category-product-body p {
    display: -webkit-box;
    min-height: 4.8em;
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .category-sourcing {
    padding: 48px 0;
  }

  .category-lower {
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .category-collection-page .category-sourcing {
    padding-bottom: 42px;
  }

  .category-collection-page .category-sourcing-grid {
    width: min(100% - 20px, 1180px);
    padding: 28px 22px;
    border-radius: 18px;
  }

  .category-collection-page .category-lower {
    gap: 16px;
    padding-top: 0;
    padding-bottom: 42px;
  }

  .category-collection-page .category-faq,
  .category-collection-page .category-related {
    padding: 22px;
    border-radius: 16px;
  }

  .category-articles {
    padding-bottom: 52px;
  }

  .category-articles-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }

  .category-article-grid {
    grid-template-columns: 1fr;
  }

  .category-article-card:only-child {
    display: block;
    width: 100%;
    min-height: 0;
  }

  .category-article-card:only-child figure {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .category-final-cta .category-shell {
    align-items: stretch;
    flex-direction: column;
  }

  .category-final-cta .button {
    text-align: center;
  }
}

@media (max-width: 390px) {
  .category-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Functional collections use the same restrained catalog language as /products/. */
.category-collection-page {
  background: var(--bg, #f4f8fc);
}

.category-collection-page .category-hero {
  padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 0;
  background: transparent;
}

.category-collection-page .category-breadcrumb,
.category-collection-page .category-hero-media {
  display: none;
}

.category-collection-page .category-hero-grid {
  display: block;
}

.category-collection-page .category-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none;
  text-align: center;
}

.category-collection-page .category-eyebrow {
  margin: 0 0 8px;
  color: #9aa8b8;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.category-collection-page .category-hero h1 {
  margin: 0 0 20px;
  color: #222;
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.category-collection-page .category-lead {
  max-width: 52em;
  margin: 0 auto;
  color: #555;
  font-size: clamp(15px, 1.8vw, 16px);
  line-height: 1.9;
}

.category-collection-page .category-products {
  width: min(1140px, calc(100% - 40px));
  padding: 0 0 clamp(56px, 6vw, 88px);
}

.category-collection-page .category-product-grid--focused {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  gap: clamp(28px, 3vw, 40px) clamp(20px, 2.5vw, 28px);
  margin-inline: auto;
}

.category-collection-page .category-product-card {
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
}

.category-collection-page .category-product-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}

.category-collection-page .category-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: 12px;
  aspect-ratio: 1 / 1;
  border: 1px solid #c7ddf2;
  border-radius: 8px;
  background: #f8fbff;
}

.category-collection-page .category-product-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.category-collection-page .category-product-body {
  display: block;
  padding: 0;
}

.category-collection-page .category-product-body h2 {
  margin: 0;
  padding: 0 6px;
  color: var(--ink, #10233d);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.category-collection-page .category-product-card:hover h2 {
  color: var(--blue, #0b67d1);
}

.category-collection-page .category-product-body p,
.category-collection-page .category-product-body > span {
  display: none;
}

.category-collection-page .category-lower {
  width: min(1140px, calc(100% - 40px));
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding-top: 0;
  padding-bottom: 58px;
}

.category-collection-page .category-articles {
  padding-bottom: 56px;
}

.category-collection-page .category-lower--stacked {
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 48px;
}

.category-collection-page .category-related--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 26px;
}

.category-collection-page .category-related--compact h2 {
  flex: 0 0 auto;
  font-size: 21px;
}

.category-collection-page .category-related--compact .category-related-links {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 720px) {
  .category-collection-page .category-hero {
    padding-top: 32px;
  }

  .category-collection-page .category-products,
  .category-collection-page .category-lower {
    width: min(100% - 28px, 1140px);
  }

  .category-collection-page .category-product-grid--focused {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 24px 16px;
  }

  .category-collection-page .category-lower {
    grid-template-columns: 1fr;
  }

  .category-collection-page .category-related--compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
  }

  .category-collection-page .category-related--compact .category-related-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .category-collection-page .category-product-grid--focused {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
