:root {
  --product-shell: min(1180px, calc(100vw - 40px));
  --product-card-bg: rgba(255, 255, 255, 0.04);
  --product-card-line: rgba(131, 156, 198, 0.18);
  --product-text: #edf2ff;
  --product-muted: #b5c0d7;
  --product-accent: #6be3ff;
  --product-accent-strong: #c9a57a;
}

body.portfolio-home.product-detail {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--product-accent) 18%, transparent), transparent 28%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--product-accent-strong) 14%, transparent), transparent 26%),
    linear-gradient(180deg, #0a0e17 0%, #0d1220 100%);
}

.product-detail .home-header {
  border-bottom-color: var(--product-card-line);
}

.product-main {
  padding-bottom: 64px;
}

.product-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 30px;
  border-bottom: 1px solid var(--product-card-line);
}

.product-hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.product-card,
.product-panel,
.product-surface {
  border: 1px solid var(--product-card-line);
  background: var(--product-card-bg);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.product-card,
.product-panel,
.product-surface {
  padding: 28px;
}

.product-kicker,
.product-chip,
.product-meta dt,
.detail-label,
.product-gallery figcaption {
  font-family: "IBM Plex Mono", monospace;
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--product-accent);
  background: color-mix(in srgb, var(--product-accent) 14%, transparent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-title {
  margin: 18px 0 12px;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.product-summary,
.product-body-copy,
.detail-copy,
.product-meta dd,
.product-bullets li,
.product-gallery p,
.product-links a,
.product-footer-note {
  color: var(--product-muted);
  line-height: 1.72;
}

.product-summary {
  max-width: 56ch;
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.product-action:hover,
.detail-card:hover,
.product-gallery figure:hover {
  transform: translateY(-2px);
}

.product-action-primary {
  background: linear-gradient(135deg, var(--product-accent), color-mix(in srgb, var(--product-accent) 50%, #3f8cff));
  color: #07101d;
  font-weight: 700;
}

.product-action-secondary {
  border: 1px solid color-mix(in srgb, var(--product-accent-strong) 32%, var(--product-card-line));
  background: rgba(255, 255, 255, 0.03);
}

.product-bullets {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.product-meta {
  display: grid;
  gap: 12px;
}

.product-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--product-card-line);
}

.product-meta dt {
  color: color-mix(in srgb, var(--product-muted) 80%, white);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-meta dd {
  margin: 0;
  text-align: right;
  color: var(--product-text);
  font-weight: 600;
}

.product-visual-wrap {
  display: grid;
  gap: 16px;
}

.product-icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  display: block;
  object-fit: cover;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.product-preview {
  width: 100%;
  border-radius: 22px;
  display: block;
  border: 1px solid var(--product-card-line);
  background: rgba(255, 255, 255, 0.03);
}

.product-sections {
  padding: 34px 0 0;
}

.product-section {
  padding: 0 0 24px;
}

.product-section + .product-section {
  padding-top: 8px;
}

.product-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.product-section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.product-section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--product-muted);
  line-height: 1.65;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--product-card-line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 160ms ease;
}

.detail-label {
  display: block;
  color: var(--product-accent);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-card h3 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
}

.detail-copy {
  margin: 0;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--product-card-line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 160ms ease;
}

.product-gallery img {
  width: 100%;
  display: block;
}

.product-gallery figcaption {
  padding: 14px 16px 18px;
  color: var(--product-muted);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.product-links a {
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.product-links a:hover {
  color: var(--product-accent);
  transform: translateY(-2px);
}

.product-footer {
  padding-top: 24px;
  border-top: 1px solid var(--product-card-line);
  margin-top: 10px;
}

.product-footer-note {
  margin: 0;
}

body.theme-fast-pdf {
  --product-accent: #69dbff;
  --product-accent-strong: #89a8ff;
}

body.theme-grandmas-cookbook {
  --product-accent: #d7905c;
  --product-accent-strong: #f0c9a7;
  --product-card-bg: rgba(255, 250, 243, 0.86);
  --product-card-line: rgba(133, 87, 49, 0.16);
  --product-text: #402412;
  --product-muted: #68452d;
}

body.theme-grandmas-cookbook .product-action-primary {
  color: #fff7ef;
}

body.theme-hush {
  --product-accent: #8fd0ff;
  --product-accent-strong: #c8b6ff;
}

body.theme-receipt-to-pdf {
  --product-accent: #7bf3d3;
  --product-accent-strong: #8bc7ff;
}

body.theme-renew-guard {
  --product-accent: #8fd8ff;
  --product-accent-strong: #ffd27d;
}

body.theme-shift-swap-liaison {
  --product-accent: #8fb0ff;
  --product-accent-strong: #7de3ff;
}

body.theme-snapdeck {
  --product-accent: #8cefff;
  --product-accent-strong: #8d8cff;
}

body.theme-text-cleanse {
  --product-accent: #9ff0de;
  --product-accent-strong: #c9a57a;
}

@media (max-width: 1040px) {
  .product-hero-layout,
  .detail-grid,
  .product-gallery,
  .product-section-heading {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 720px) {
  .product-hero {
    padding-top: 34px;
  }

  .product-card,
  .product-panel,
  .product-surface {
    padding: 22px;
    border-radius: 22px;
  }

  .product-title,
  .product-section-heading h2 {
    max-width: none;
  }

  .product-links {
    display: grid;
    gap: 10px;
  }

  .product-meta div {
    flex-direction: column;
  }

  .product-meta dd {
    text-align: left;
  }
}
