.cvn-client-palette .fc-pdp {
  --fc-canvas: var(--client-canvas);
  --fc-primary: var(--client-primary);
  --fc-primary-hover: var(--client-primary-hover);
  --fc-accent: var(--client-primary);
  --fc-soft: var(--client-soft);
  --fc-ink: var(--client-ink);
  --fc-muted: var(--client-muted);
  --fc-border: var(--client-line);
  --fc-control-border: var(--client-control);
  --fc-favorite: var(--client-primary);
  --fc-favorite-soft: var(--client-soft);
}

/* Use the same palette as the homepage, with soft pink reserved for selection. */
.cvn-client-palette .fc-pdp .fc-variants label {
  background: var(--client-surface);
  border-color: var(--client-control);
}
.cvn-client-palette .fc-pdp .fc-variants label:has(input:checked) {
  background: var(--client-soft);
  border-color: var(--client-primary);
}
.cvn-client-palette .fc-pdp .fc-quantity {
  background: var(--client-surface);
  border-color: var(--client-control);
}
.cvn-client-palette .fc-pdp .fc-quantity button { color: var(--client-primary); }

/* Reuse the existing heart shapes as masks so their color follows the palette. */
.cvn-client-palette .fc-pdp .fc-favorite {
  color: var(--client-primary);
  background: var(--client-surface);
  border-color: var(--client-line);
  box-shadow: none;
}
.cvn-client-palette .fc-pdp .fc-favorite img { display: none; }
.cvn-client-palette .fc-pdp .fc-favorite::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background-color: currentColor;
  -webkit-mask: url("icons/heart.b5ddb21439d1.svg") center / contain no-repeat;
  mask: url("icons/heart.b5ddb21439d1.svg") center / contain no-repeat;
}
.cvn-client-palette .fc-pdp .fc-favorite:hover,
.cvn-client-palette .fc-pdp .fc-favorite[aria-pressed="true"] {
  color: var(--client-primary);
  background: var(--client-soft);
  border-color: var(--client-primary);
  box-shadow: none;
}
.cvn-client-palette .fc-pdp .fc-favorite[aria-pressed="true"]::before {
  -webkit-mask-image: url("icons/heart-filled.9eed6ac5c29e.svg");
  mask-image: url("icons/heart-filled.9eed6ac5c29e.svg");
  animation: fc-favorite-fill 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .cvn-client-palette .fc-pdp .fc-favorite[aria-pressed="true"]::before { animation: none; }
}
@media (forced-colors: active) {
  .cvn-client-palette .fc-pdp .fc-favorite::before { background-color: ButtonText; }
}

.fc-page .fc-gallery > img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.fc-product-preview {
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--fc-primary);
  background: var(--fc-soft);
  border-radius: 8px;
}

.fc-product-preview p { margin: 12px 0; }

.fc-page .fc-product-story {
  width: 100%;
  max-width: none;
  margin-top: 72px;
  padding: 48px 0 0;
  border-top: 1px solid var(--fc-border);
}

.fc-story-layout {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.fc-page .fc-story-aside > h2 {
  max-width: 13em;
  margin: 0;
  color: var(--fc-ink);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.fc-story-navigation { margin-top: 28px; }
.fc-story-mobile-contents { display: none; }
.fc-story-navigation ul { margin: 0; padding: 0; list-style: none; }
.fc-story-navigation li + li { margin-top: 4px; }
.fc-page .fc-story-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--fc-border);
  color: var(--fc-muted);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.fc-page .fc-story-navigation a:hover,
.fc-page .fc-story-navigation a:focus-visible {
  border-left-color: var(--fc-primary);
  color: var(--fc-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.fc-page .fc-story-navigation a[aria-current="location"] {
  color: var(--fc-primary);
  border-left-color: var(--fc-primary);
  background: var(--fc-soft);
  font-weight: 500;
}

.fc-story-content { min-width: 0; max-width: 680px; }
.fc-story-section { position: relative; isolation: isolate; }
.fc-story-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12px -18px;
  background: var(--fc-soft);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
.fc-story-section::after {
  content: "";
  position: absolute;
  left: -18px;
  top: 3px;
  width: 2px;
  height: 30px;
  background: var(--fc-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.fc-story-section + .fc-story-section::after { top: 31px; }
.fc-story-section.is-reading::after { opacity: 1; }
.fc-story-section.is-arriving::before { animation: fc-story-arrival 1400ms ease-out both; }
.cvn-client-palette .fc-story-section:focus-visible {
  outline: 2px solid var(--client-primary);
  outline-offset: 10px;
}
.fc-story-section + .fc-story-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--fc-border);
}

.fc-page .fc-story-section > h3 {
  margin: 0 0 14px;
  color: var(--fc-ink);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.fc-page .fc-story-copy p,
.fc-page .fc-story-content > p {
  margin: 0;
  color: var(--fc-muted);
  font-size: 16px;
  line-height: 1.8;
}

.fc-page .fc-story-copy p + p { margin-top: 16px; }
.fc-story-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--fc-border);
}
.fc-page .fc-story-footer .fc-link { color: var(--fc-primary); }

.fc-product-enter { animation: fc-product-entry 260ms cubic-bezier(.2, .7, .3, 1) both; }
@keyframes fc-product-entry {
  from { opacity: .92; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fc-story-arrival {
  0% { opacity: 0; }
  15%, 55% { opacity: .8; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-product-enter, .fc-story-section.is-arriving::before { animation: none; }
  .fc-story-section.is-arriving::before { opacity: .65; }
  .fc-story-section::after, .fc-page .fc-story-navigation a { transition: none; }
}

@media (min-width: 900px) and (min-height: 760px) {
  .fc-story-aside {
    position: sticky;
    top: 112px;
    max-height: calc(100dvh - 136px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 8px 4px 0;
  }
}

@media (max-width: 899px) {
  .fc-page .fc-product-story { margin-top: 48px; padding-top: 32px; }
  .fc-story-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fc-page .fc-story-aside > h2 { max-width: 21em; font-size: 28px; }
  .fc-story-title-break, .fc-story-desktop { display: none; }
  .fc-story-mobile-contents {
    display: block;
    margin-top: 20px;
    background: var(--client-surface);
    border: 1px solid var(--fc-border);
    border-radius: 6px;
  }
  .fc-story-mobile-contents summary {
    min-height: 48px;
    padding: 12px 16px;
    color: var(--fc-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
  }
  .fc-story-mobile-contents[open] summary { border-bottom: 1px solid var(--fc-border); }
  .fc-story-mobile-contents .fc-story-navigation { margin: 0; padding: 8px 12px 12px; }
  .fc-story-section::before { inset: -10px -12px; }
  .fc-story-section::after { left: -12px; }
  .fc-story-content { max-width: 100%; }
  .fc-page .fc-story-section > h3 { font-size: 21px; margin-bottom: 12px; }
  .fc-story-section + .fc-story-section { margin-top: 24px; padding-top: 24px; }
  .fc-story-footer { margin-top: 28px; }
}
