/* App palettes follow the moss garden, sunset window, lamplit cat room, and blue-hour aquarium. */
/* Snow Nook carries the app's winter slate and warm brass into the shared layout. */
.product-snow-nook {
  --bg: #26303a;
  --surface: #2d3a46;
  --text: #f0f1ef;
  --muted: #bec6cd;
  --accent: #d8bc87;
  --line: #4a5661;
  --page-glow: #8395a32b;
}
.catalog-item.item-snow-nook .specimen-wrap {
  background:
    radial-gradient(ellipse at 50% 70%, #a0b9c43d, transparent 70%), #26303a;
}
.product-moss-nook {
  --bg: #182219;
  --surface: #253326;
  --text: #e5eadc;
  --muted: #b0bda4;
  --accent: #b4cd83;
  --line: #40513b;
  --page-glow: #51643855;
}
.product-pochi-pochi {
  --bg: #302021;
  --surface: #402d2d;
  --text: #f5e6dc;
  --muted: #d1b4aa;
  --accent: #f0bc94;
  --line: #624443;
  --page-glow: #ab614445;
}
.product-aqua-nook {
  --bg: #172b3a;
  --surface: #223d50;
  --text: #eaf6f9;
  --muted: #b4c7d1;
  --accent: #bce9ff;
  --line: #3d5a6e;
  --page-glow: #3f7aa055;
}
.product-third-paw {
  --bg: #191e35;
  --surface: #262e47;
  --text: #eeeaf2;
  --muted: #b4bbd1;
  --accent: #e5bf86;
  --line: #424c6a;
  --page-glow: #56588750;
}
/* Reading pages keep the same palette on a quiet, flat background. */
.document-page::before {
  display: none;
}
.product-page .wordmark::before,
.document-page .wordmark::before {
  box-shadow: none;
}

.product-page main > .back-link {
  display: inline-block;
  margin-top: 30px;
}
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 46px 0 72px;
}
.product-intro {
  min-width: 0;
}
.product-intro .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
}
.product-intro h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.55;
  margin: 0 0 28px;
}
.product-lede {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 460px;
  margin-bottom: 32px;
}
.store-link {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.store-link:hover {
  background: var(--text);
  color: var(--bg);
}
.store-link.is-disabled,
.store-link.is-disabled:hover {
  background: transparent;
  color: var(--muted);
  border-color: var(--muted);
  border-style: dashed;
  cursor: not-allowed;
  font-family: inherit;
}
.availability {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 12px 0 0;
}
.product-scene {
  margin: 0;
  min-width: 0;
  text-align: center;
}
.product-scene img {
  display: block;
  max-width: 100%;
  width: auto;
  height: 560px;
  margin: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  object-fit: contain;
}
.product-scene figcaption {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 16px auto 0;
  max-width: 380px;
}
.product-details {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 90px;
  padding: 72px 0;
}
.detail-picture {
  min-width: 0;
}
.detail-picture img {
  display: block;
  max-width: 100%;
  width: auto;
  height: 540px;
  object-fit: contain;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.product-details h2 {
  margin-bottom: 30px;
}
.product-feature {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.product-feature h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.product-feature p {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0;
}
.product-closing {
  border-top: 1px solid var(--line);
  padding: 58px 0;
  text-align: center;
}
.product-closing h2 {
  margin-bottom: 24px;
}
.product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 24px 0;
  font-size: 0.78rem;
}
.product-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}
.product-third-paw .product-hero {
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}
.product-third-paw .product-scene img,
.product-third-paw .detail-picture img {
  width: 100%;
  height: auto;
}
.document-page main {
  max-width: 900px;
  padding-top: 30px;
  padding-bottom: 64px;
}
.document-content {
  overflow-wrap: anywhere;
}
.document-content h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.6;
  margin: 36px 0 8px;
}
.document-content .updated {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 36px;
}
.document-content h2 {
  font-family: var(--sans);
  font-size: 1.15rem;
  margin-top: 40px;
  margin-bottom: 16px;
}
.document-content p,
.document-content li {
  font-size: 0.9rem;
}
.document-content ul {
  padding-left: 1.5em;
}
.document-content code {
  background: var(--surface);
  padding: 2px 5px;
}
@media (max-width: 900px) {
  .product-hero,
  .product-third-paw .product-hero {
    gap: 32px;
  }
  .product-details {
    gap: 40px;
  }
  .product-scene img,
  .detail-picture img {
    height: auto;
    max-height: 540px;
  }
}
@media (max-width: 660px) {
  .product-hero,
  .product-third-paw .product-hero,
  .product-details {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .product-hero {
    padding: 32px 0 44px;
  }
  .product-intro h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .product-scene img {
    max-height: 540px;
  }
  .detail-picture img {
    max-height: 440px;
  }
  .product-details {
    padding: 44px 0;
  }
  .product-details > div:last-child {
    grid-row: 1;
  }
  .product-nav {
    gap: 14px 20px;
  }
  .product-nav a:first-child {
    width: 100%;
  }
}
