#products.showcase {
  display: block;
  min-width: 0;
  border: 0;
  background: transparent;
}

.showcase-viewport,
.showcase-track {
  min-width: 0;
  max-width: 100%;
}

.showcase-track {
  display: grid;
  gap: 1rem;
}

#products.showcase .product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line-hi);
  background: linear-gradient(115deg, #0b130f, var(--bg) 70%);
  isolation: isolate;
}

.showcase .product-copy {
  display: grid;
  align-content: center;
  gap: 1.15rem;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.6rem);
}

.showcase .card-head {
  gap: 0.55rem;
  min-width: 0;
}

.product-number {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.product-number::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #334a3c, transparent);
}

.showcase .card-name {
  gap: 0.65rem;
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.showcase .badge {
  flex: none;
  padding: 0.25rem 0.55rem;
  background: #0a1a11;
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.showcase .card-kind {
  color: var(--dim);
  font-size: 0.8rem;
}

.showcase .card-scale {
  margin-top: 0.5rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--accent-dim);
  color: var(--dim);
  font-size: 0.71rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.product-summary {
  max-width: 45ch;
  color: var(--text);
  font-size: clamp(0.96rem, 1.2vw, 1.07rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.product-details {
  min-width: 0;
  border-top: 1px solid var(--line-hi);
}

.product-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.65rem 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.product-details > summary::-webkit-details-marker {
  display: none;
}

.product-details > summary::marker {
  content: '';
}

.product-details > summary > span[aria-hidden]:not(.effect-ripple) {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--line-hi);
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s var(--snap), border-color 0.2s;
}

.product-details > summary:hover,
.product-details[open] > summary {
  color: var(--text);
}

.product-details[open] > summary > span[aria-hidden]:not(.effect-ripple) {
  transform: rotate(45deg);
  border-color: var(--accent-dim);
}

.product-details-body {
  min-width: 0;
  padding: 0.35rem 0 0.25rem;
}

.product-details[open] .product-details-body {
  animation: showcaseDetailsIn 0.3s var(--snap) both;
}

@keyframes showcaseDetailsIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

.showcase .card-body {
  font-size: 0.91rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.showcase .tags {
  gap: 0.35rem;
  margin-top: 1rem;
}

.showcase .tag {
  max-width: 100%;
  border-color: #25372c;
  color: var(--dim);
  background: #0a120e;
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.product-art {
  position: relative;
  display: grid;
  align-self: stretch;
  place-items: center;
  min-width: 0;
  min-height: 19rem;
  border-right: 1px solid var(--line-hi);
  overflow: hidden;
  isolation: isolate;
  perspective: 900px;
  background:
    radial-gradient(ellipse at 50% 43%, #16372680, transparent 68%),
    linear-gradient(#76c9910a 1px, transparent 1px),
    linear-gradient(90deg, #76c9910a 1px, transparent 1px),
    linear-gradient(145deg, #0a1710, #060d09 72%);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.product-art::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 1.15rem;
  background:
    linear-gradient(#5c9370, #5c9370) top left / 12px 1px,
    linear-gradient(#5c9370, #5c9370) top left / 1px 12px,
    linear-gradient(#5c9370, #5c9370) bottom right / 12px 1px,
    linear-gradient(#5c9370, #5c9370) bottom right / 1px 12px;
  background-repeat: no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

.product-art::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: auto 15% 13%;
  height: 13%;
  border-radius: 50%;
  background: #000a;
  filter: blur(12px);
  pointer-events: none;
}

.product-art > i {
  position: absolute;
  z-index: 1;
  display: block;
  left: 50%;
  top: 47%;
  font-style: normal;
  pointer-events: none;
  transition: transform 0.85s var(--snap), opacity 0.6s var(--ease);
}

.product-art-0 > i:nth-child(-n + 3) {
  aspect-ratio: 1;
  border: 1px solid #68d58d80;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-28deg);
}

.product-art-0 > i:nth-child(1) {
  width: min(72%, 18rem);
  box-shadow: 0 0 0 12px #76ca910b, 0 0 0 13px #6bba8433, 0 12px 0 -1px #163523, 0 13px 0 #4d8d6355;
  background: conic-gradient(from 15deg, transparent 0 16%, #7ff4a850 16.3% 16.7%, transparent 17% 69%, #7ff4a850 69.3% 69.7%, transparent 70%);
}

.product-art-0 > i:nth-child(2) {
  top: 43%;
  width: min(51%, 13rem);
  border-color: #79f6a5b3;
  box-shadow: 0 0 0 8px #4bf08c0b, 0 10px 0 #0e2116, 0 11px 0 #3f8055;
}

.product-art-0 > i:nth-child(3) {
  top: 39%;
  width: min(30%, 7.6rem);
  border-color: #b9ffcf;
  background: radial-gradient(circle, #52d67b25, #08120c 68%);
  box-shadow: 0 0 25px #4bf08c20, inset 0 0 16px #4bf08c20, 0 8px 0 #102b1b;
}

.product-art-0 > i:nth-child(1)::before,
.product-art-0 > i:nth-child(2)::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid #ceffdd;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px #4bf08c;
}

.product-art-0 > i:nth-child(1)::before {
  left: 2%;
  top: 32%;
}

.product-art-0 > i:nth-child(2)::after {
  right: 4%;
  bottom: 26%;
}

.product-art-0 > i:nth-child(4) {
  top: 38%;
  width: min(20%, 4.8rem);
  aspect-ratio: 1;
  border: 1px solid #c2f7d4;
  background: linear-gradient(135deg, #659078, #183623 52%, #0b1911);
  transform: translate(-50%, -50%) rotateX(56deg) rotateZ(45deg);
  box-shadow: 5px 5px 0 #0b1d12, 6px 6px 0 #487e58, 11px 11px 0 #0b1d12, 12px 12px 0 #365c42;
}

.product-art-0 > i:nth-child(5) {
  top: 27%;
  width: 1px;
  height: 30%;
  background: linear-gradient(transparent, #b8ffce 40%, var(--accent) 70%, transparent);
  box-shadow: 0 0 12px #4bf08c60;
  transform: translateX(-50%);
}

.product-art-1 > i {
  width: min(52%, 14rem);
  aspect-ratio: 4 / 3;
  border: 1px solid #5b9372;
  background: linear-gradient(135deg, #477355, #162e20 46%, #0a1710);
  box-shadow: 1px 2px 0 #061009, 2px 3px 0 #36503e, 0 14px 28px -12px #000;
  transform: translate(-50%, -50%) rotateX(47deg) rotateY(-17deg) rotateZ(-25deg);
}

.product-art-1 > i::before {
  content: '';
  position: absolute;
  inset: 0.65rem;
  border: 1px solid #a3dfb533;
  background: linear-gradient(125deg, #d9ffe20a, transparent 45%, #70d49214);
}

.product-art-1 > i:nth-child(1) { top: 67%; left: 42%; opacity: 0.45; }
.product-art-1 > i:nth-child(2) { top: 59%; left: 46%; opacity: 0.6; }
.product-art-1 > i:nth-child(3) { top: 51%; left: 50%; opacity: 0.8; }
.product-art-1 > i:nth-child(4) { top: 43%; left: 54%; border-color: #85c79b; }

.product-art-1 > i:nth-child(5) {
  top: 35%;
  left: 58%;
  border-color: #c0f6d1;
  background: linear-gradient(135deg, #a5d6b3, #427253 29%, #1a3e28 56%, #518963);
  box-shadow: 1px 2px 0 #193a25, 2px 3px 0 #92bfa0, 0 0 35px #4bf08c16;
}

.product-art-1 > i:nth-child(5)::after {
  content: '';
  position: absolute;
  inset: 17% 22%;
  border: 1px solid #d9ffe680;
  background: linear-gradient(140deg, transparent 43%, #b8ffce55 43.5% 45%, transparent 45.5%);
  transform: rotate(12deg);
}

.product-art-2 > i:nth-child(-n + 2) {
  top: 50%;
  width: 76%;
  height: 39%;
  background: repeating-linear-gradient(90deg, #a5ffc4 0 2px, #46d87c 2px 4px, transparent 4px 9px);
  clip-path: polygon(0 46%, 5% 44%, 9% 31%, 13% 41%, 17% 20%, 22% 35%, 26% 5%, 31% 32%, 36% 18%, 41% 37%, 46% 28%, 51% 0, 56% 20%, 61% 36%, 66% 9%, 71% 31%, 76% 21%, 81% 40%, 86% 32%, 91% 43%, 96% 39%, 100% 47%, 100% 53%, 96% 61%, 91% 57%, 86% 68%, 81% 60%, 76% 79%, 71% 69%, 66% 91%, 61% 64%, 56% 80%, 51% 100%, 46% 72%, 41% 63%, 36% 82%, 31% 68%, 26% 95%, 22% 65%, 17% 80%, 13% 59%, 9% 69%, 5% 56%, 0 54%);
  transform: translate(-50%, -50%);
}

.product-art-2 > i:nth-child(1) {
  width: 82%;
  height: 55%;
  opacity: 0.13;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.product-art-2 > i:nth-child(2) {
  filter: drop-shadow(0 0 8px #4bf08c45);
}

.product-art-2 > i:nth-child(3) {
  top: 50%;
  width: 86%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #67c08780 20%, #b6ffca 50%, #67c08780 80%, transparent);
  transform: translate(-50%, -50%);
}

.product-art-2 > i:nth-child(4),
.product-art-2 > i:nth-child(5) {
  top: 50%;
  width: 0.65rem;
  height: 45%;
  border-block: 1px solid #5d9b73;
  transform: translateY(-50%);
}

.product-art-2 > i:nth-child(4) {
  left: 9%;
  border-left: 1px solid #5d9b73;
}

.product-art-2 > i:nth-child(5) {
  left: auto;
  right: 9%;
  border-right: 1px solid #5d9b73;
}

.showcase-controls,
.showcase-status {
  display: none;
}

.showcase.is-gallery .showcase-viewport {
  padding: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.65rem;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.showcase.is-gallery .showcase-viewport::-webkit-scrollbar {
  display: none;
}

.showcase.is-gallery .showcase-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.showcase.is-gallery .product-card {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.showcase.is-gallery .showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: max-content;
  max-width: 100%;
  margin: 1.15rem auto 0;
  padding: 0.25rem;
  border: 1px solid var(--line-hi);
  border-radius: 3rem;
  background: var(--surface);
}

.showcase-pagination {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.showcase-arrow,
.showcase-dot {
  display: grid;
  flex: none;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--dim);
  font-family: var(--mono);
  line-height: 1;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.showcase-arrow { font-size: 1.25rem; }
.showcase-dot { font-size: 0.72rem; font-variant-numeric: tabular-nums; }

.showcase-dot[aria-pressed='true'] {
  border-color: #41664d;
  color: var(--accent);
  background: #14261a;
}

.showcase-arrow:hover:not([aria-disabled='true']):not(:disabled),
.showcase-dot:hover {
  border-color: var(--line-hi);
  color: var(--text);
  background: var(--surface-hi);
}

.showcase-arrow[aria-disabled='true'],
.showcase-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.showcase-arrow:focus-visible,
.showcase-dot:focus-visible,
.product-details > summary:focus-visible,
.showcase-viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.showcase.is-gallery .showcase-status {
  display: block;
  margin: 0.65rem 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  #products.showcase .product-card { grid-template-columns: minmax(0, 1fr); }
  .product-art { height: 180px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line-hi); }
  .showcase .product-copy { gap: 1rem; padding: 1.35rem; }
  .showcase .card-name { font-size: clamp(1.65rem, 5.7vw, 2.15rem); }
  .product-art-0 > i:nth-child(1) { width: 13rem; }
  .product-art-0 > i:nth-child(2) { width: 9rem; }
  .product-art-0 > i:nth-child(3) { width: 5.2rem; }
  .product-art-0 > i:nth-child(4) { width: 3.4rem; }
  .product-art-1 > i { width: 10rem; }
  .product-art-2 > i:nth-child(-n + 2) { max-width: 21rem; }
}

@media (max-width: 380px) {
  .showcase .product-copy { padding: 1.15rem; }
  .showcase .card-name { font-size: 1.7rem; }
  .showcase .badge { font-size: 0.7rem; }
  .showcase .product-summary { font-size: 0.94rem; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-card:hover .product-art-0 > i:nth-child(1) { transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-12deg); }
  .product-card:hover .product-art-1 > i { transform: translate(-50%, -54%) rotateX(43deg) rotateY(-12deg) rotateZ(-21deg); }
  .product-card:hover .product-art-2 > i:nth-child(2) { transform: translate(-50%, -50%) scaleX(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .showcase.is-gallery .showcase-viewport { scroll-behavior: auto; }
  .product-details[open] .product-details-body { animation: none; }
  .product-art > i,
  .product-details > summary,
  .product-details > summary > span[aria-hidden]:not(.effect-ripple),
  .showcase-arrow,
  .showcase-dot { transition: none; }
}
