.products-hero {
  padding: clamp(50px, 8vw, 105px) clamp(22px, 8vw, 120px) 48px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--ink) 7%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--ink) 7%, transparent) 1px,
      transparent 1px
    );
  background-size: 34px 34px;
}
.eyebrow,
.section-kicker,
.product-type {
  margin: 0;
  color: var(--orange);
  font: 800 10px monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.products-hero h1 {
  max-width: 900px;
  margin: 14px 0;
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}
.products-hero h1 span {
  display: block;
  color: var(--orange);
}
.products-hero > p:last-child {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font: 14px/1.7 monospace;
}
.product-library {
  padding: clamp(42px, 6vw, 76px) clamp(22px, 8vw, 120px);
}
.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.library-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.05em;
}
.library-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.product-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 20px 44px #0003;
}
.product-card:before {
  content: '';
  position: absolute;
  inset: 0 0 38%;
  background: var(--card-art) center/contain no-repeat;
  opacity: 0.88;
  filter: drop-shadow(0 15px 16px #0005);
  transition: transform 0.25s ease;
}
.product-card:hover:before {
  transform: scale(1.035);
}
.product-card > * {
  position: relative;
  z-index: 1;
}
.product-card .card-status {
  align-self: flex-start;
  padding: 6px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--orange);
  font: 800 9px monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-card > div {
  margin-top: auto;
  padding-top: 165px;
}
.product-card h3 {
  margin: 0 0 8px;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 850;
}
.card-action span:last-child {
  color: var(--orange);
  font-size: 19px;
}
.product-card.dummy-card:before {
  background-image: var(--dummy-art);
  background-size: auto 118%;
  background-position: center 4%;
}
.product-card.basic-card:before {
  background-image: url('../../whiteboard-medium.png');
}
.product-card.giraffe-card:before {
  background-image: url('../../giraffe-whiteboard.png');
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  min-height: calc(100vh - 70px);
  border-bottom: 1px solid var(--line);
}
.product-visual {
  position: relative;
  min-height: 650px;
  padding: clamp(30px, 5vw, 70px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--ink) 7%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--ink) 7%, transparent) 1px,
      transparent 1px
    );
  background-size: 34px 34px;
}
.product-visual:before {
  content: '';
  position: absolute;
  width: min(72%, 680px);
  aspect-ratio: 1;
  background: url('../../the-extruder-logo.svg') center/contain no-repeat;
  opacity: 0.1;
}
.product-visual img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: min(92%, 720px);
  max-height: 720px;
  object-fit: contain;
  filter: drop-shadow(0 30px 25px #0005);
}
.product-copy {
  padding: clamp(45px, 6vw, 85px) clamp(24px, 5vw, 70px);
  border-left: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-copy h1 {
  margin: 15px 0 18px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.product-copy .lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.product-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.etsy-action,
.tool-action {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}
.etsy-action {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 9px 24px color-mix(in srgb, var(--orange) 28%, transparent);
}
.tool-action {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.etsy-action span:last-child,
.tool-action span:last-child {
  font-size: 19px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.fact {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.fact span {
  display: block;
  color: var(--muted);
  font: 700 9px monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fact strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}
.product-content {
  padding: clamp(45px, 7vw, 90px) clamp(22px, 8vw, 120px);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(35px, 7vw, 100px);
}
.content-grid h2,
.related h2 {
  margin: 0 0 14px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.content-grid p,
.content-grid li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.content-grid ul {
  margin: 0;
  padding-left: 18px;
}
.experience-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}
.experience-card h3 {
  margin: 10px 0;
  font-size: 27px;
}
.experience-card p {
  margin: 0 0 20px;
}
.experience-card a {
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
}
.related {
  padding: 0 clamp(22px, 8vw, 120px) clamp(55px, 7vw, 90px);
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-links a {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}
.related-links a:hover {
  border-color: var(--orange);
  color: var(--orange);
}
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-visual {
    min-height: 520px;
  }
  .product-copy {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .library-heading {
    align-items: start;
    flex-direction: column;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .products-hero {
    padding-top: 40px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    min-height: 330px;
  }
  .product-visual {
    min-height: 410px;
    padding: 20px;
  }
  .product-visual img {
    max-height: 390px;
  }
  .product-copy h1 {
    font-size: 44px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
}

/* Compact product-detail layout belongs to the product module, not the shared shell. */
.product-detail {
  min-height: auto;
}
.product-detail .product-visual {
  min-height: 540px;
  padding: clamp(24px, 3.5vw, 48px);
}
.product-detail .product-visual img {
  max-height: 580px;
}
.product-detail .product-copy {
  padding: clamp(34px, 4vw, 58px) clamp(24px, 4vw, 56px);
}
.product-detail .product-actions {
  margin-top: 22px;
}
.product-detail .facts {
  margin-top: 22px;
}
.product-content {
  padding-top: clamp(36px, 4.5vw, 58px);
  padding-bottom: clamp(36px, 4.5vw, 58px);
}
.product-content .content-grid {
  gap: clamp(28px, 5vw, 70px);
}
.related {
  padding-bottom: clamp(42px, 5vw, 62px);
}
@media (max-width: 900px) {
  .product-detail .product-visual {
    min-height: 440px;
  }
  .product-detail .product-visual img {
    max-height: 470px;
  }
}
@media (max-width: 580px) {
  .product-detail .product-visual {
    min-height: 350px;
  }
  .product-detail .product-visual img {
    max-height: 350px;
  }
  .product-detail .product-copy {
    padding-top: 30px;
    padding-bottom: 34px;
  }
  .product-content {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* Reusable product gallery. */
.product-gallery {
  position: relative;
  z-index: 1;
  width: min(100%, 780px);
  outline: none;
}
.product-gallery:focus-visible {
  border-radius: 14px;
  outline: 3px solid color-mix(in srgb, var(--orange) 58%, transparent);
  outline-offset: 5px;
}
.product-gallery-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  box-shadow: 0 22px 40px #0003;
}
.product-gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
}
.product-gallery-slide[hidden] {
  display: none;
}
.product-gallery-slide img {
  width: 100%;
  height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  filter: none;
}
.product-gallery-slide .product-render {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 24px 64px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 24px 22px #0005);
}
.product-gallery-slide figcaption {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 13px;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  border: 1px solid #ffffff2a;
  border-radius: 8px;
  background: #090b0dd4;
  color: #fff;
  font: 700 10px/1.35 monospace;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px #0004;
}
.product-gallery-slide figcaption span {
  display: block;
  margin-bottom: 2px;
  color: #ff9a72;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff50;
  border-radius: 999px;
  background: #090b0dc9;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 19px;
  box-shadow: 0 6px 18px #0004;
}
.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  border-color: var(--orange);
  background: var(--orange);
  outline: none;
}
.gallery-prev {
  left: 12px;
}
.gallery-next {
  right: 12px;
}
.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.dummy13-gallery .product-gallery-thumbs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.product-gallery-thumbs button {
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 3/2;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  opacity: 0.68;
  transition:
    border-color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}
.product-gallery-thumbs button:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.product-gallery-thumbs button[aria-current='true'] {
  border-color: var(--orange);
  opacity: 1;
}
.product-gallery-thumbs button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--orange) 55%, transparent);
  outline-offset: 2px;
}
.product-gallery-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  filter: none;
}
.product-gallery-thumbs button:first-child img {
  object-fit: contain;
  padding: 4px;
}
html[data-theme='light'] .product-gallery-stage {
  background: color-mix(in srgb, var(--panel) 86%, var(--paper));
}

/* Branded backdrop for transparent catalog renders. */
.product-render-slide,
.product-gallery-slide:has(.product-render) {
  isolation: isolate;
  background-color: #17191c;
  background-image:
    radial-gradient(
      circle at 72% 24%,
      color-mix(in srgb, var(--orange) 28%, transparent),
      transparent 32%
    ),
    linear-gradient(
      color-mix(in srgb, #fff 8%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, #fff 8%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(145deg, #23262a, #111315);
  background-size:
    auto,
    32px 32px,
    32px 32px,
    auto;
}
.product-render-slide::before,
.product-gallery-slide:has(.product-render)::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(62%, 440px);
  aspect-ratio: 1;
  background: url('../../the-extruder-logo.svg') center/contain no-repeat;
  opacity: 0.13;
  filter: grayscale(1) brightness(2);
}
.product-render-slide::after,
.product-gallery-slide:has(.product-render)::after {
  content: '///  ----';
  position: absolute;
  z-index: -1;
  right: 22px;
  bottom: 18px;
  color: color-mix(in srgb, var(--orange) 72%, #fff);
  font: 800 11px monospace;
  letter-spacing: 0.18em;
  opacity: 0.8;
}
.product-gallery-thumbs button:first-child {
  background-color: #17191c;
  background-image:
    radial-gradient(
      circle at 72% 24%,
      color-mix(in srgb, var(--orange) 25%, transparent),
      transparent 42%
    ),
    linear-gradient(
      color-mix(in srgb, #fff 8%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, #fff 8%, transparent) 1px,
      transparent 1px
    );
  background-size:
    auto,
    12px 12px,
    12px 12px;
}
html[data-theme='light'] .product-render-slide,
html[data-theme='light'] .product-gallery-slide:has(.product-render) {
  background-color: #e9eaeb;
  background-image:
    radial-gradient(
      circle at 72% 24%,
      color-mix(in srgb, var(--orange) 22%, transparent),
      transparent 34%
    ),
    linear-gradient(
      color-mix(in srgb, #111 8%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, #111 8%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(145deg, #f5f5f3, #dfe1e2);
}
html[data-theme='light'] .product-render-slide::before,
html[data-theme='light'] .product-gallery-slide:has(.product-render)::before {
  opacity: 0.09;
  filter: grayscale(1) brightness(0.7);
}
html[data-theme='light'] .product-gallery-thumbs button:first-child {
  background-color: #e9eaeb;
  background-image:
    radial-gradient(
      circle at 72% 24%,
      color-mix(in srgb, var(--orange) 22%, transparent),
      transparent 42%
    ),
    linear-gradient(
      color-mix(in srgb, #111 8%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, #111 8%, transparent) 1px,
      transparent 1px
    );
}
.product-size-comparison {
  position: relative;
  z-index: 1;
  width: min(78%, 560px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 4vw, 46px);
}
.product-size-item {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.product-size-item img {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 20px 18px #0006) !important;
}
.product-size-item img.board-color-orange {
  filter: hue-rotate(175deg) saturate(1.35) brightness(1.05)
    drop-shadow(0 20px 18px #0006) !important;
}
.product-size-item img.board-color-cyan {
  filter: hue-rotate(-12deg) saturate(1.08) drop-shadow(0 20px 18px #0006) !important;
}
.product-size-item span {
  color: #fff;
  font: 800 10px monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-size-medium {
  width: 45%;
}
.product-size-small {
  width: 37.17%;
}
html[data-theme='light'] .product-size-item span {
  color: #24272a;
}
.size-comparison-thumb {
  width: 100%;
  height: 100%;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
}
.size-comparison-thumb > span {
  display: block;
  flex: none;
}
.size-comparison-thumb-small {
  width: 33.04%;
}
.size-comparison-thumb-medium {
  width: 40%;
}
.product-gallery-thumbs .size-comparison-thumb img {
  display: block;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  object-fit: contain !important;
}
.product-gallery-thumbs .size-comparison-thumb img.board-color-orange {
  filter: hue-rotate(175deg) saturate(1.35) brightness(1.05) !important;
}
.product-gallery-thumbs .size-comparison-thumb img.board-color-cyan {
  filter: hue-rotate(-12deg) saturate(1.08) !important;
}
@media (max-width: 580px) {
  .product-gallery {
    width: 100%;
  }
  .product-gallery-stage {
    border-radius: 12px;
  }
  .product-gallery-slide .product-render {
    padding: 18px 48px;
  }
  .gallery-arrow {
    width: 38px;
    height: 38px;
  }
  .product-gallery-slide figcaption {
    left: 9px;
    bottom: 8px;
  }
  .product-gallery-thumbs {
    gap: 5px;
  }
  .product-gallery-thumbs button {
    border-radius: 6px;
  }
  .product-size-comparison {
    width: 86%;
    gap: 13px;
  }
}
