/* === Product Page & Order Success Styles === */

.product-page {
  padding: 32px 24px 80px;
  min-height: 70vh;
}
.product-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Back link */
.product-back-link {
  display: inline-block;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.product-back-link:hover {
  color: var(--accent);
}

/* Error state */
.product-error {
  text-align: center;
  padding: 80px 24px;
  color: var(--fg-muted);
}
.product-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.product-error p {
  font-size: 18px;
  margin-bottom: 24px;
}

/* Layout: cover + info side-by-side on desktop */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Cover image */
.product-cover {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.product-cover-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.product-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  background: var(--bg-raised);
}
.product-cover-icon {
  font-size: 64px;
  opacity: 0.5;
}

/* Product info */
.product-category {
  display: inline-block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}
.product-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.product-seller {
  color: var(--fg-muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.product-seller strong {
  color: var(--fg);
}

/* Price box */
.product-price-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}
.product-price-note {
  color: var(--fg-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* Buy form */
.product-buy-form {
  margin-bottom: 32px;
}
.product-email-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 16px;
  font-family: var(--font-body);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.product-email-input:focus {
  border-color: var(--accent);
}
.product-email-input::placeholder {
  color: var(--fg-muted);
}
.product-buy-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: -0.3px;
}
.product-buy-btn:hover {
  opacity: 0.9;
}
.product-buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.product-buy-btn--link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #000;
}
.product-buy-note {
  color: var(--fg-muted);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}
.product-buy-error {
  color: var(--red);
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

/* Description */
.product-description {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.product-desc-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.product-desc-text {
  color: var(--fg-muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* === Order Success === */
.order-success {
  text-align: center;
  padding: 40px 0;
  max-width: 560px;
  margin: 0 auto;
}
.order-success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.order-success-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}
.order-success-subtitle {
  color: var(--fg-muted);
  font-size: 17px;
  margin-bottom: 32px;
}
.order-success-subtitle strong {
  color: var(--fg);
}

/* Order card */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}
.order-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.order-card-row + .order-card-row {
  border-top: 1px solid var(--border);
}
.order-card-label {
  color: var(--fg-muted);
  font-size: 14px;
}
.order-card-value {
  font-weight: 600;
  font-size: 15px;
}

/* Download */
.order-download {
  margin-bottom: 32px;
}
.order-download-btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  font-family: var(--font-heading);
  transition: opacity 0.2s;
}
.order-download-btn:hover {
  opacity: 0.9;
}
.order-download-note {
  color: var(--fg-muted);
  font-size: 13px;
  margin-top: 12px;
}
.order-no-file {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  color: var(--fg-muted);
}
