.product-category-page {
  background: var(--page);
}

.product-index-hero {
  position: relative;
  display: grid;
  min-height: clamp(270px, 22vw, 360px);
  overflow: hidden;
  isolation: isolate;
}

.product-index-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.24)
  );
  content: "";
  pointer-events: none;
}

.product-index-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: inherit;
}

.product-index-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #f8f8f4;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  text-shadow: 0 3px 24px rgba(12, 16, 14, 0.28);
}

.product-index-breadcrumb {
  background: #202523;
  color: rgba(248, 248, 244, 0.72);
}

.product-index-breadcrumb-inner {
  display: flex;
  align-items: center;
  min-height: 54px;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
}

.product-index-breadcrumb a {
  color: #f8f8f4;
  text-decoration: none;
  transition: color 180ms ease;
}

.product-index-breadcrumb a:hover,
.product-index-breadcrumb a:focus-visible {
  color: #ff767b;
}

.product-category-page .product-archive-section {
  padding: 88px 0 112px;
}

.product-category-page .product-archive-layout {
  grid-template-columns: 278px minmax(0, 1fr);
  gap: clamp(52px, 6vw, 88px);
}

.product-category-page .product-taxonomy {
  top: calc(var(--header-height) + 24px);
}

.product-category-page .product-taxonomy-heading {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
}

.product-category-page .product-taxonomy-heading h2 {
  font-size: 28px;
}

.product-taxonomy-groups {
  display: grid;
  gap: 2px;
  padding-top: 16px;
}

.product-taxonomy-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.product-taxonomy-parent,
.product-taxonomy-children button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #626966;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.product-taxonomy-parent {
  position: relative;
  padding: 12px 24px 7px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.product-taxonomy-parent::after {
  position: absolute;
  top: 19px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(-45deg);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-taxonomy-parent.is-expanded::after {
  transform: translateY(-2px) rotate(45deg);
}

.product-taxonomy-panel .product-taxonomy-children {
  display: grid;
  gap: 1px;
}

.product-taxonomy-children button {
  position: relative;
  padding: 5px 8px 5px 16px;
  font-size: 12px;
  font-weight: 590;
  line-height: 1.35;
}

.product-taxonomy-children button::before {
  position: absolute;
  top: 12px;
  left: 2px;
  width: 5px;
  height: 1px;
  background: #adb2af;
  content: "";
}

.product-taxonomy-parent:hover,
.product-taxonomy-parent:focus-visible,
.product-taxonomy-parent.is-active,
.product-taxonomy-children button:hover,
.product-taxonomy-children button:focus-visible,
.product-taxonomy-children button.is-active {
  color: var(--brand);
}

.product-taxonomy-children button.is-active {
  font-weight: 800;
}

.product-taxonomy-children button.is-active::before {
  height: 2px;
  background: var(--brand);
}

.product-category-page .product-taxonomy-note {
  margin-top: 28px;
  border-radius: var(--radius);
}

.product-archive-intro {
  display: grid;
  margin-bottom: 44px;
}

.product-archive-intro > p:last-child {
  max-width: none;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.product-category-page .product-archive-card {
  display: block;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}

.product-category-page .product-archive-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  outline: none;
}

.product-category-page .product-archive-card-media {
  aspect-ratio: 1 / 0.9;
}

.product-category-page .product-archive-card-media img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
}

.product-category-page .product-archive-card-copy {
  min-height: 178px;
}

.product-category-page .product-archive-card-copy > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-category-page .product-archive-card-copy > p span {
  overflow: hidden;
  color: #747b77;
  font-size: 9px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.product-category-page .product-archive-card-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-top: auto;
  color: #505854;
  font-size: 11px;
  font-weight: 800;
  transition: color 180ms ease;
}

.product-category-page .product-archive-card:hover .product-archive-card-action,
.product-category-page .product-archive-card:focus-visible .product-archive-card-action {
  color: var(--brand);
}

@media (max-width: 1120px) {
  .product-category-page .product-archive-layout {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 44px;
  }
}

@media (max-width: 900px) {
  .product-category-page .product-archive-layout {
    grid-template-columns: 1fr;
  }

  .product-category-page .product-taxonomy {
    position: static;
  }

  .product-taxonomy-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .product-category-page .product-taxonomy-note {
    display: none;
  }
}

@media (max-width: 640px) {
  .product-index-hero {
    min-height: 230px;
    background-position: 58% center;
  }

  .product-index-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .product-index-breadcrumb-inner {
    min-height: 50px;
    font-size: 13px;
  }

  .product-category-page .product-archive-section {
    padding: 72px 0 84px;
  }

  .product-taxonomy-groups {
    grid-template-columns: 1fr;
  }

  .product-archive-intro {
    margin-bottom: 36px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .product-index-breadcrumb a,
.product-taxonomy-parent::after {
    transition: none;
  }
}
