.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.gallery {
  border: 2px solid rgba(143, 164, 200,.26);
  background: #0c1220;
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info {
  border: 2px solid rgba(143, 164, 200,.26);
  background: rgba(21, 29, 46,.92);
  padding: 16px;
}
.info h1 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 950;
  line-height: 1.2;
}
.info .price {
  margin: 0 0 10px;
  color: var(--purple-2);
  font-size: 1.35rem;
  font-weight: 950;
}
.info .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.info .tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid rgba(143, 164, 200,.3);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.info .tag:hover { color: var(--purple-2); border-color: rgba(143, 164, 200,.55); }
.info .desc {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-weight: 750;
  font-size: .95rem;
}
.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--purple);
  color: #fff;
  font: inherit;
  font-weight: 950;
  font-size: 1rem;
  text-decoration: none;
}
.buy:hover { filter: brightness(1.08); }
.buy-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
}
.back {
  display: inline-flex;
  margin-top: 14px;
  color: var(--purple-2);
  font-weight: 900;
  text-decoration: none;
  font-size: .9rem;
}
.related { margin-top: 28px; }
.related h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 950;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.related-card {
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(143, 164, 200,.22);
  background: rgba(21, 29, 46,.92);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.related-card:hover {
  border-color: rgba(143, 164, 200,.55);
  transform: translateY(-2px);
}
.related-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0c1220;
}
.related-card span {
  padding: 8px 10px;
  font-size: .84rem;
  font-weight: 900;
  line-height: 1.25;
}
.notfound {
  padding: 20px;
  border: 2px solid rgba(143, 164, 200,.26);
  background: rgba(21, 29, 46,.92);
}
@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; gap: 14px; }
  .buy { width: 100%; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .related-grid { grid-template-columns: 1fr; }
}