/* ==========================================================================
   MORYU product detail pages (treatment-*.html), generated by tools/product-pages.js.
   Hero gallery with glass chips + details column, disclaimer, "What is it?",
   "Why MORYU?" trio with small UI mockups, related treatments.
   ========================================================================== */

.pd { --pd-ink: var(--ink); --pd-muted: rgba(11, 11, 11, .62); --pd-line: rgba(11, 11, 11, .09); }

/* ---------- Hero ---------- */
.pd-hero { padding: 28px 0 64px; }
.pd-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: start; }

.pd-gallery { position: sticky; top: calc(var(--top-h) + 20px); }
.pd-stage { position: relative; aspect-ratio: 4 / 4.6; border-radius: 28px; overflow: hidden; background: var(--forest); isolation: isolate; }
.pd-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.pd-slide.is-active { opacity: 1; }
.pd-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 6, .28) 0%, rgba(10, 16, 6, 0) 30%, rgba(10, 16, 6, 0) 55%, rgba(10, 16, 6, .45) 100%); pointer-events: none; }
.pd-slide--product .pd-slide__bg { filter: blur(6px) brightness(.85) saturate(1.1); transform: scale(1.06); }
.pd-slide--product::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(45% 40% at 50% 52%, rgba(217, 249, 157, .45) 0%, rgba(217, 249, 157, 0) 70%); }
.pd-slide__product { position: absolute; z-index: 2; left: 50%; top: 48%; height: 74%; width: auto; max-width: none; transform: translate(-50%, -50%); filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .35)); }
.pd-slide__fg { position: absolute; z-index: 1; left: 50%; bottom: 0; height: 86%; width: auto; max-width: none; transform: translateX(-50%); }

.pd-tags { position: absolute; z-index: 3; top: 22px; left: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tags span { padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 500; }

.pd-glass { position: absolute; z-index: 3; left: 22px; bottom: 112px; display: grid; gap: 10px; width: min(78%, 420px); }
.pd-glass li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .08) 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
          backdrop-filter: blur(16px) saturate(1.3);
  color: #fff;
  font-size: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
.pd-glass i { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(11, 11, 11, .28); }
.pd-glass svg, .pd-points svg, .pd-checks svg, .pd-cta svg, .pd-what__btn svg, .pd-why__card header svg, .pd-ui svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-glass svg { width: 20px; height: 20px; }

.pd-thumbs { position: absolute; z-index: 3; left: 50%; bottom: 22px; display: flex; gap: 8px; transform: translateX(-50%); }
.pd-thumb { width: 66px; height: 66px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .85); cursor: pointer; transition: border-color .25s, transform .3s var(--ease-out); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:first-child img { object-fit: contain; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.is-active { border-color: var(--lime); }

/* Details column */
.pd-info .crumbs { margin-bottom: 18px; }
.pd-info .crumbs a { color: var(--lime-ink); }
.pd-title { font-family: var(--f-head); font-weight: 400; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.035em; color: var(--forest); }
.pd-rx { display: inline-block; margin-left: 8px; padding: 4px 9px; border-radius: 8px; background: var(--lime); color: var(--forest); font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .02em; vertical-align: 10px; }
.pd-summary { margin-top: 18px; font-size: 18px; line-height: 1.55; color: rgba(11, 11, 11, .78); }

.pd-points { margin-top: 26px; }
.pd-points li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--pd-line); font-size: 15.5px; color: var(--pd-muted); }
.pd-points svg { flex: none; width: 22px; height: 22px; color: var(--forest); }

.pd-box { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 18px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--pd-line); }
.pd-box ul { display: grid; gap: 4px; }
.pd-box li { position: relative; padding-left: 14px; font-size: 14px; color: rgba(11, 11, 11, .74); }
.pd-box li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--lime-deep); }
.pd-box__side { text-align: right; align-self: center; }
.pd-box__side small { display: block; font-size: 13px; color: var(--pd-muted); }
.pd-box__side b { display: block; margin-top: 2px; font-family: var(--f-head); font-weight: 400; font-size: 20px; letter-spacing: -.02em; color: var(--forest); }

.pd-cta { display: flex; align-items: center; justify-content: center; gap: 10px; height: 58px; margin-top: 22px; border-radius: 999px; background: var(--forest); color: var(--ivory); font-size: 16px; font-weight: 500; box-shadow: 0 10px 24px -16px rgba(24, 32, 18, .7); transition: background .25s, color .25s, transform .3s var(--ease-out); }
.pd-cta svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.pd-cta:hover { background: var(--lime); color: var(--ink); transform: translateY(-2px); }
.pd-cta:hover svg { transform: translateX(3px); }
.pd-cta--inline { display: inline-flex; padding: 0 32px; margin-top: 0; }

.pd-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 22px; }
.pd-checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(11, 11, 11, .72); }
.pd-checks svg { flex: none; width: 18px; height: 18px; padding: 2px; border-radius: 50%; border: 1.5px solid var(--forest); color: var(--forest); }

.pd-acc { margin-top: 26px; border-top: 1px solid var(--pd-line); }
.pd-acc__item { border-bottom: 1px solid var(--pd-line); }
.pd-acc__item > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; color: var(--forest); cursor: pointer; list-style: none; }
.pd-acc__item > summary::-webkit-details-marker { display: none; }
.pd-acc__item > summary i { position: relative; flex: none; width: 14px; height: 14px; }
.pd-acc__item > summary i::before, .pd-acc__item > summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .3s var(--ease-out); }
.pd-acc__item > summary i::after { transform: rotate(90deg); }
.pd-acc__item[open] > summary i::after { transform: rotate(0); }
.pd-acc__inner { padding: 0 0 20px; }
.pd-acc__inner p { font-size: 15px; line-height: 1.6; color: var(--pd-muted); }
.pd-acc__inner .pd-acc__item > summary { font-size: 15.5px; padding: 14px 0; color: var(--ink); }
.pd-acc__inner .pd-acc__item p { padding-bottom: 14px; }
.pd-acc__inner .pd-acc__item:last-child { border-bottom: 0; }

.pd-disclaimer { margin-top: 56px; padding: 26px 30px; border-radius: 20px; background: #fff; border: 1px solid var(--pd-line); }
.pd-disclaimer small { display: block; margin-bottom: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(11, 11, 11, .5); }
.pd-disclaimer p { font-size: 13px; line-height: 1.6; color: rgba(11, 11, 11, .62); }

/* ---------- What is it ---------- */
.pd-what { position: relative; isolation: isolate; overflow: hidden; padding: 120px 0; background: var(--forest); }
.pd-what__bg { position: absolute; inset: -40px; z-index: -1; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) saturate(1.2) brightness(.7); }
.pd-what::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(24, 32, 18, .2) 0%, rgba(11, 16, 8, .7) 100%); }
.pd-what__card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px; border-radius: 28px; background: rgba(24, 40, 16, .5); border: 1px solid rgba(246, 246, 240, .12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--ivory); }
.pd-what h2 { font-family: var(--f-head); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.03em; }
.pd-what__sub { margin-top: 8px; font-size: 14px; color: rgba(246, 246, 240, .6); }
.pd-what__copy > p:not(.pd-what__sub) { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: rgba(246, 246, 240, .85); }
.pd-what__btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; margin-top: 28px; padding: 0 24px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 500; transition: transform .3s var(--ease-out), background .25s; }
.pd-what__btn svg { width: 16px; height: 16px; }
.pd-what__btn:hover { transform: translateY(-2px); background: var(--ivory); }
.pd-facts { display: grid; gap: 10px; }
.pd-facts div { padding: 16px 20px; border-radius: 16px; background: rgba(246, 246, 240, .08); border: 1px solid rgba(246, 246, 240, .12); }
.pd-facts dt { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--lime); }
.pd-facts dd { margin-top: 4px; font-size: 16px; color: var(--ivory); }

/* ---------- Why MORYU ---------- */
.pd-why { padding: 110px 0 40px; }
.pd-h2 { text-align: center; font-family: var(--f-head); font-weight: 400; font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -.035em; color: var(--ink); }
.pd-h2 em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: var(--lime-ink); letter-spacing: -.01em; }
.pd-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.pd-why__card { display: flex; flex-direction: column; min-height: 460px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--pd-line); }
.pd-why__card header { display: flex; justify-content: space-between; align-items: center; }
.pd-why__card h3 { font-family: var(--f-head); font-weight: 400; font-size: 24px; letter-spacing: -.02em; }
.pd-why__card header svg { width: 22px; height: 22px; color: rgba(11, 11, 11, .35); }
.pd-why__ui { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 0; }
.pd-why__card > p { font-size: 15px; line-height: 1.55; color: var(--pd-muted); }
.pd-ui { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 330px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -24px rgba(11, 11, 11, .28), 0 0 0 1px rgba(11, 11, 11, .05); }
.pd-ui--doc img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; object-position: 52% 22%; }
.pd-ui span { flex: 1; min-width: 0; }
.pd-ui b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.pd-ui small { display: block; font-size: 12.5px; color: var(--pd-muted); }
.pd-ui--doc em { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.pd-ui--doc em svg { width: 15px; height: 15px; stroke-width: 2.4; }
.pd-ui--rx img { width: 64px; height: 76px; object-fit: contain; }
.pd-ui--rx b { margin-top: 2px; font-family: var(--f-head); font-weight: 400; font-size: 19px; letter-spacing: -.02em; }
.pd-ui__pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 11, 11, .07); font-size: 13.5px; color: var(--forest); }
.pd-ui__pill svg { width: 15px; height: 15px; fill: none; stroke: var(--lime-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pd-ui--chat { flex-direction: column; align-items: stretch; gap: 10px; }
.pd-ui--chat > span { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--pd-line); }
.pd-ui--chat > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep); }
.pd-ui--chat p { font-size: 15px; color: var(--ink); }
.pd-why__cta { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Related ---------- */
.pd-related { padding: 80px 0 120px; }
.pd-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 40px; }
.pd-rel { display: flex; flex-direction: column; padding: 16px 16px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--pd-line); }
.pd-rel__img { display: grid; place-items: center; height: 220px; border-radius: 16px; background: var(--pale); overflow: hidden; }
.pd-rel__img img { height: 230px; width: auto; }
.pd-rel__tag { align-self: flex-start; margin-top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 11, 11, .06); font-size: 12px; font-weight: 500; }
.pd-rel h3 { margin-top: 10px; font-family: var(--f-head); font-weight: 400; font-size: 21px; letter-spacing: -.02em; }
.pd-rel p { margin-top: 4px; font-size: 13.5px; color: var(--pd-muted); }
.pd-rel .pc-actions { margin-top: auto; padding-top: 16px; border-top-color: var(--pd-line); }
.pd-rel h3 + p { margin-bottom: 16px; }
.pd-rel .pc-more { color: var(--ink); border-color: rgba(11, 11, 11, .22); }
.pd-rel .pc-more:hover { background: rgba(11, 11, 11, .05); border-color: var(--ink); }
.pd-rel .pc-go:hover { background: var(--ink); color: var(--lime); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pd-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .pd-gallery { position: static; }
  .pd-what__card { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .pd-why__grid { grid-template-columns: 1fr; }
  .pd-why__card { min-height: 0; }
}
@media (max-width: 640px) {
  .pd-hero { padding: 12px 0 40px; }
  .pd-stage { aspect-ratio: 1 / 1.12; border-radius: 22px; }
  .pd-tags { top: 14px; left: 14px; }
  .pd-tags span { font-size: 12px; padding: 5px 10px; }
  .pd-glass { left: 12px; bottom: 92px; width: calc(100% - 24px); gap: 7px; }
  .pd-glass li { padding: 7px 12px 7px 7px; font-size: 14px; border-radius: 13px; gap: 10px; }
  .pd-glass i { width: 34px; height: 34px; border-radius: 10px; }
  .pd-glass svg { width: 17px; height: 17px; }
  .pd-thumbs { bottom: 14px; }
  .pd-thumb { width: 54px; height: 54px; }
  .pd-summary { font-size: 16.5px; }
  .pd-box { flex-direction: column; gap: 12px; }
  .pd-box__side { text-align: left; }
  .pd-checks { grid-template-columns: 1fr 1fr; }
  .pd-disclaimer { margin-top: 36px; padding: 20px; }
  .pd-what { padding: 64px 0; }
  .pd-what__card { padding: 26px 20px; border-radius: 22px; }
  .pd-why { padding: 72px 0 24px; }
  .pd-why__card { padding: 22px; }
  .pd-related { padding: 56px 0 80px; }
}

.pd-facts dd { margin-left: 0; }
.pd-related__grid { grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); justify-content: center; }

/* ---------- Gallery slides ---------- */
/* 1. Product only: soft sage card with a lime glow, like the home page care cards */
.pd-slide--product {
  background:
    radial-gradient(50% 42% at 50% 47%, rgba(217, 249, 157, .7) 0%, rgba(217, 249, 157, 0) 72%),
    linear-gradient(165deg, #F4F7EA 0%, #E3EBCD 100%);
}
.pd-slide--product::before, .pd-slide--product::after { display: none; }
.pd-slide__product { left: 50%; top: 47%; height: 66%; filter: drop-shadow(0 30px 28px rgba(60, 70, 20, .26)); }

/* 2. Lifestyle photo with centered glass chips */
.pd-slide--glass::after { background: linear-gradient(180deg, rgba(10, 16, 6, .3) 0%, rgba(10, 16, 6, .12) 40%, rgba(10, 16, 6, .2) 70%, rgba(10, 16, 6, .5) 100%); }
.pd-slide--glass .pd-glass { left: 50%; top: 50%; bottom: auto; width: min(80%, 380px); transform: translate(-50%, -50%); }

/* 3. Blurred photo with a vertical word line */
.pd-slide--words .pd-slide__bg { filter: blur(9px) saturate(.9); transform: scale(1.12); }
.pd-slide--words::after { background: rgba(10, 16, 6, .32); }
.pd-words { position: absolute; z-index: 2; inset: 64px 0 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; }
.pd-words span { font-family: var(--f-head); font-weight: 500; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.02em; line-height: 1; text-shadow: 0 2px 16px rgba(0, 0, 0, .18); }
.pd-words i { display: block; width: 1.5px; height: clamp(22px, 4.2vh, 44px); margin: 12px 0; background: rgba(255, 255, 255, .85); }
.pd-words b { font-family: var(--f-head); font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; line-height: 1; }
.pd-words em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: var(--lime); }
.pd-thumb--photo img { object-fit: cover !important; }

@media (max-width: 640px) {
  .pd-stage { aspect-ratio: 1 / 1.2; }
  .pd-slide__product { top: 45%; height: 60%; }
  .pd-slide--glass .pd-glass { width: calc(100% - 40px); gap: 8px; }
  .pd-glass li { padding: 7px 12px 7px 7px; font-size: 14px; border-radius: 13px; gap: 10px; }
  .pd-glass i { width: 34px; height: 34px; border-radius: 10px; }
  .pd-glass svg { width: 17px; height: 17px; }
  .pd-words { inset: 60px 0 92px; }
  .pd-words span { font-size: 19px; }
  .pd-words i { height: 15px; margin: 7px 0; }
  .pd-words b { font-size: 28px; }
}

/* ---------- FAQ ---------- */
.pd-faq { padding: 40px 0 96px; }
@media (max-width: 640px) { .pd-faq { padding: 24px 0 64px; } }

/* ---------- Slide 1 studio scene (matches the home page care photos) ---------- */
.pd-slide--scene { background: #ECEAE2; }
.pd-slide--scene::after { display: none; }
.pd-scene__wall { position: absolute; inset: 0 0 28% 0; background: linear-gradient(90deg, #A9C87E 0%, #9CBF6C 60%, #E7E5DD 60.3%, #F0EEE7 100%); }
.pd-scene__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(180deg, #E9E4DA 0%, #DCD5C7 100%); box-shadow: 0 -1px 0 rgba(60, 55, 40, .06); }
.pd-scene__sun { position: absolute; inset: -10%; background: repeating-linear-gradient(118deg, rgba(255, 255, 240, 0) 0 80px, rgba(255, 255, 240, .34) 80px 150px, rgba(255, 255, 240, 0) 150px 240px); filter: blur(16px); pointer-events: none; }
.pd-scene__shadow { position: absolute; z-index: 1; left: 50%; bottom: calc(20% - 12px); width: 36%; height: 26px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(60, 55, 40, .38) 0%, rgba(60, 55, 40, 0) 70%); filter: blur(3px); }
.pd-slide--scene .pd-slide__product { top: auto; bottom: 20%; height: 58%; transform: translateX(-50%); filter: drop-shadow(16px 12px 18px rgba(60, 55, 40, .2)); }

/* ---------- Stock photo slides ---------- */
.pd-slide--words .pd-slide__bg { filter: blur(2px) saturate(.95); transform: scale(1.04); }
.pd-slide--words::after { background: linear-gradient(180deg, rgba(10, 16, 6, .45) 0%, rgba(10, 16, 6, .3) 50%, rgba(10, 16, 6, .5) 100%); }
.pd-slide--glass::after { background: linear-gradient(180deg, rgba(10, 16, 6, .25) 0%, rgba(10, 16, 6, .1) 45%, rgba(10, 16, 6, .45) 100%); }

@media (max-width: 640px) {
  .pd-slide--scene .pd-slide__product { bottom: 21%; height: 52%; }
  .pd-scene__wall { bottom: 30%; }
  .pd-scene__floor { height: 30%; }
}

/* Not-FDA-approved statement directly under the main CTA on compounded products */
.pd-fda { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(217, 249, 157, .35); border: 1px solid rgba(24, 32, 18, .1); font-size: 13.5px; line-height: 1.5; color: rgba(11, 11, 11, .78); }
