/* Product page */

.product-page {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Product detail */

.product-page > .product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.product__gallery {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 552px;
  min-height: 0;
  overflow: hidden;
}

.product__image {
  display: block;
  max-width: 100%;
  max-height: calc(552px - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.product__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
  min-height: 100%;
}

.product__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.product__meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}

.product__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
}

.product__label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.3;
}

.product__value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.product__value--rarity {
  color: var(--purple);
}

.product__meta-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.product__meta-link:hover {
  color: var(--purple);
}

.product__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 16px;
}

.product__price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.product__price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.product__cart {
  flex-shrink: 0;
  padding: 14px 32px;
  white-space: nowrap;
}

/* Responsive */

@media (max-width: 1024px) {
  .product-page > .product {
    grid-template-columns: 1fr;
  }

  .product__gallery {
    max-height: 552px;
    padding: 24px;
  }

  .product__image {
    max-height: calc(552px - 48px);
  }

  .product__info {
    padding-top: 0;
  }
}

@media (max-width: 1023px) {
  .product-page .skins-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .product-page {
    gap: 32px;
  }

  .product-page .skins-grid--4 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .product__gallery {
    max-height: 552px;
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .product__image {
    max-height: calc(552px - 40px);
  }

  .product__value {
    font-size: 1.125rem;
  }

  .product__price {
    font-size: 1.25rem;
  }
}
