.detail-page {
  padding-top: 24px;
  padding-bottom: 60px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 13px;
  margin-bottom: 24px;
}
.breadcrumbs a {
  text-decoration: underline;
}
.detail-page .breadcrumbs {
  margin: 0 0 28px;
}
.breadcrumb-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.breadcrumb-trail li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
.detail-page .breadcrumb-trail a,
.breadcrumb-trail [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  min-width: 0;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px var(--ink);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 800;
  text-decoration: none;
  background: white;
  overflow-wrap: anywhere;
  transition:
    translate 0.15s steps(2, end),
    box-shadow 0.15s,
    background 0.15s;
}
.breadcrumb-trail li:nth-child(2) a {
  background: var(--ice);
}
.breadcrumb-trail [aria-current="page"] {
  background: #ffe56b;
}
.breadcrumb-trail svg {
  flex-shrink: 0;
}
.crumb-arrow {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}
.detail-page .breadcrumb-trail a:hover {
  background: #ffe56b;
  translate: -1px -2px;
  box-shadow: 4px 5px var(--ink);
}
.detail-page .breadcrumb-trail a:active {
  translate: 3px 3px;
  box-shadow: 0 0 var(--ink);
}
@media (max-width: 480px) {
  .breadcrumb-trail {
    gap: 10px 8px;
  }
  .breadcrumb-trail li {
    gap: 8px;
  }
  .detail-page .breadcrumb-trail a,
  .breadcrumb-trail [aria-current="page"] {
    font-size: 10px;
    padding: 7px 9px;
    min-height: 34px;
  }
  .detail-page .breadcrumbs {
    margin-bottom: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .detail-page .breadcrumb-trail a {
    transition: none;
  }
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}
.detail-panel {
  background: var(--surface);
  border: var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
  min-width: 0;
}
.detail-panel h1 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -1px;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.detail-visual {
  position: sticky;
  top: calc(var(--header-height, 91px) + 24px);
  min-width: 0;
}
.detail-visual .product-preview {
  height: auto;
  aspect-ratio: 1.15;
  width: 100%;
  border: var(--line);
  box-shadow: var(--shadow);
  border-radius: 12px;
  font-size: 90px;
  display: grid;
  place-items: center;
  margin: 0 0 24px;
}
.detail-visual img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: white;
  border: var(--line);
  padding: 16px;
  border-radius: 16px;
  box-shadow: 6px 6px var(--ink);
  rotate: -5deg;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  background: var(--yellow);
  color: var(--ink);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px var(--ink);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.2px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.14s ease, background-color 0.14s ease;
}
.detail-back:hover {
  background: #ffffff;
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px var(--ink);
  text-decoration: none;
}
.detail-back:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px var(--ink);
}
.detail-back:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.detail-back .back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), background-color 0.15s ease;
}
.detail-back:hover .back-arrow {
  transform: translateX(-3px);
  background: var(--lavender);
}
#product-missing {
  padding: 30px;
  background: white;
  border: var(--line);
}
#product-missing[hidden],
#product-content[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .detail-visual {
    position: static;
  }
  .detail-visual .product-preview {
    aspect-ratio: auto;
    min-height: 190px;
  }
  .detail-visual img {
    width: 100px;
    height: 100px;
  }
  .detail-panel {
    padding: 18px;
  }
}
.detail-visual .product-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  aspect-ratio: 1/1;
  min-height: 300px;
  background-image: radial-gradient(circle, rgba(23, 33, 58, 0.22) 1.25px, transparent 1.25px) !important;
  background-size: 18px 18px;
}
.poster-top {
  position: absolute;
  inset: 22px 22px auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 1px;
  z-index: 3;
}
.poster-category {
  max-width: 52%;
  padding: 6px 8px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px var(--ink);
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.5px;
  rotate: 3deg;
}
.poster-orbit {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  left: 16%;
  top: 12%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.poster-orbit:after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--ink);
  border-radius: 50%;
  opacity: 0.4;
}
.poster-logo {
  position: absolute;
  inset: 24% auto auto 26%;
  width: 40%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: white;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 8px var(--ink);
  rotate: -9deg;
  z-index: 2;
  font-size: 64px;
  animation: poster-logo-bob 5s ease-in-out infinite;
}
.poster-logo:before {
  content: "";
  position: absolute;
  width: 44%;
  height: 22px;
  background: #ffe56b;
  border: 2px solid var(--ink);
  left: 28%;
  top: -14px;
  rotate: 6deg;
  z-index: 1;
}
.detail-visual .poster-logo img {
  width: 100%;
  height: 100%;
  padding: 20%;
  border: 0;
  border-radius: 15px;
  background: transparent;
  box-shadow: none;
  rotate: 0;
  object-fit: contain;
}
.poster-sticker {
  position: absolute;
  right: 6%;
  top: 52%;
  background: #ffe56b;
  border: 2px solid var(--ink);
  padding: 10px 26px 10px 12px;
  box-shadow: 4px 4px var(--ink);
  font-size: clamp(12px, 1.6vw, 19px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.5px;
  rotate: 9deg;
  z-index: 3;
}
.poster-sticker > span {
  position: absolute;
  right: 7px;
  top: 9px;
  font-size: 18px;
}
.poster-spark {
  position: absolute;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  z-index: 1;
  animation: poster-star-turn 9s steps(4, end) infinite;
}
.poster-spark-one {
  left: 9%;
  top: 28%;
  color: var(--ink);
}
.poster-spark-two {
  right: 10%;
  top: 25%;
  font-size: 32px;
  color: var(--poster-accent);
  -webkit-text-stroke: 1px var(--ink);
}
.poster-checker {
  position: absolute;
  width: 48px;
  height: 48px;
  left: 10%;
  top: 61%;
  background: repeating-conic-gradient(var(--ink) 0% 25%, transparent 0% 50%) 0
    0/16px 16px;
  rotate: -10deg;
  opacity: 0.85;
}
.poster-bottom {
  position: absolute;
  inset: auto 22px 22px;
  display: grid;
  gap: 8px;
  z-index: 3;
}
.poster-bottom strong {
  display: block;
  width: 100%;
  font-size: clamp(25px, 3.1vw, 43px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -1.5px;
  overflow-wrap: anywhere;
}
.poster-bottom > span {
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 1.2px;
  font-weight: 800;
  border-top: 2px solid var(--ink);
  padding-top: 9px;
}
.detail-visual .product-preview:hover .poster-sticker {
  rotate: 3deg;
  translate: -2px -3px;
  box-shadow: 6px 7px var(--ink);
}
.poster-sticker {
  transition:
    rotate 0.2s steps(3, end),
    translate 0.2s steps(3, end),
    box-shadow 0.2s;
}
@keyframes poster-logo-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}
@keyframes poster-star-turn {
  to {
    rotate: 360deg;
  }
}
@media (max-width: 700px) {
  .detail-visual .product-preview {
    aspect-ratio: 1.15;
    min-height: 280px;
  }
  .poster-bottom strong {
    font-size: clamp(25px, 6vw, 38px);
  }
  .poster-sticker {
    font-size: 16px;
  }
  .poster-orbit {
    width: 58%;
    left: 21%;
    top: 13%;
  }
  .poster-logo {
    width: 34%;
    left: 29%;
    top: 25%;
  }
  .poster-checker {
    top: 57%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .poster-logo,
  .poster-spark {
    animation: none;
  }
  .poster-sticker {
    transition: none;
  }
}
