/* Melaaura Product Details — native Elementor widget styles.
   Ported from the template-180 inline block (.mela-details-swipe).
   Flat design: the gradient surfaces and gold accent were removed
   on purpose (2026-06-09). Scoped under .mela-pd. */

.mela-pd{
  --ink:#0f1011;
  --muted:#6a6f76;
  --hair2:rgba(15,16,17,.06);
  --radius:24px;
  position:relative;
}

/* Inner viewport handles horizontal clipping and height clamping.
   Height is set in JS to the active pane's height so the element
   doesn't grow to the tallest pane; falls back to auto without JS. */
.mela-pd .mela-viewport{
  position:relative;
  overflow:hidden;
  transition:height .55s cubic-bezier(.22,.9,.18,1);
}

/* swipe — 3 panes: details / samples-form / spec-form */
.mela-pd .mela-track{
  display:flex;
  align-items:flex-start;
  width:300%;
  transform:translateX(0);
  transition:transform .75s cubic-bezier(.22,.9,.18,1);
  will-change:transform;
}
.mela-pd.is-form-samples .mela-track{ transform:translateX(-33.3333%); }
.mela-pd.is-form-spec    .mela-track{ transform:translateX(-66.6666%); }
.mela-pd .mela-pane{
  width:33.3333%;
  min-width:33.3333%;
  box-sizing:border-box;
}

/* DETAILS card — flat white surface */
.mela-pd .details{
  border-radius:var(--radius);
  border:1px solid var(--hair2);
  background:#fff;
  padding:36px 40px 38px;
  position:relative;
  overflow:hidden;
}

.mela-pd h1{
  position:relative;
  margin:18px 0 16px;
  font-family:"Playfair Display", Georgia, serif;
  font-weight:500;
  letter-spacing:.02em;
  font-size:50px;
  line-height:1.04;
  color:var(--ink);
}

/* DESIGNED BY ... FOR ... */
.mela-pd .byline{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:baseline;
  margin:6px 0 26px;
}
.mela-pd .byline .by{
  color:rgba(106,111,118,.95);
  font-size:12px;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.mela-pd .maker{
  font-weight:600;
  font-size:12px;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:rgba(15,16,17,.92);
}

/* Underlined, clickable terms */
.mela-pd .mela-term{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid rgba(15,16,17,.22);
  padding-bottom:1px;
}
.mela-pd .mela-term:hover{ border-bottom-color:rgba(15,16,17,.45); }

/* Spec list */
.mela-pd .micro{
  position:relative;
  margin:26px 0 28px;
  padding:18px 0;
  border-top:1px solid rgba(15,16,17,.08);
  border-bottom:1px solid rgba(15,16,17,.06);
  display:grid;
  gap:14px;
}
.mela-pd .micro .row{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:20px;
  align-items:baseline;
  font-size:13px;
  color:rgba(106,111,118,.95);
}
.mela-pd .micro .row span{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(106,111,118,.92);
}
.mela-pd .micro .row strong{
  color:rgba(15,16,17,.92);
  font-weight:500;
  letter-spacing:.01em;
}

/* CTA — very slight gold tint, no shadow */
.mela-pd .ctaWrap{ position:relative; display:grid; gap:16px; margin:28px 0 10px; }
.mela-pd .cta{
  border-radius:20px;
  border:1px solid rgba(199,176,111,.40);
  background:rgba(199,176,111,.07);
  padding:18px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}
.mela-pd .cta:hover{
  transform:translateY(-1px);
  border-color:rgba(199,176,111,.60);
  background:rgba(199,176,111,.11);
}
.mela-pd .cta .label{
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
}
.mela-pd .cta .sub{
  color:rgba(106,111,118,.95);
  font-size:12px;
  margin-top:6px;
  letter-spacing:.02em;
}
.mela-pd .cta .arrow{
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(15,16,17,.10);
  display:grid;
  place-items:center;
  background:#fff;
}

/* Buttons */
.mela-pd .secondary{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:16px;
}
.mela-pd .btn{
  border:1px solid rgba(15,16,17,.10);
  background:#fff;
  padding:12px 16px;
  border-radius:18px;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(15,16,17,.90);
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.mela-pd .btn:hover{
  transform:translateY(-1px);
  background:#fafafa;
  border-color:rgba(15,16,17,.14);
}

.mela-pd .hint{
  color:rgba(106,111,118,.95);
  font-size:12px;
  line-height:1.8;
  margin-top:20px;
  letter-spacing:.01em;
}

/* Form pane card — flat white */
.mela-pd .formPane{ padding:36px 40px 38px; }
.mela-pd .formShell{
  border-radius:var(--radius);
  border:1px solid var(--hair2);
  background:#fff;
  padding:22px;
}
.mela-pd .backBtn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(15,16,17,.10);
  background:#fff;
  padding:12px 14px;
  border-radius:18px;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(15,16,17,.90);
  cursor:pointer;
  margin-bottom:14px;
}

@media (max-width: 980px){
  .mela-pd h1{ font-size:42px; }
  .mela-pd .micro .row{ grid-template-columns:120px 1fr; }
  .mela-pd .details, .mela-pd .formPane{ padding:28px; }
}
@media (max-width: 520px){
  .mela-pd h1{ font-size:36px; }
  .mela-pd .micro .row{ grid-template-columns:100px 1fr; }
}

/* Entrance fade */
.mela-pd .details > *{
  opacity:0;
  animation:melaPdFadeUp .7s cubic-bezier(.22,.9,.18,1) forwards;
}
.mela-pd .details > *:nth-child(1){ animation-delay:.05s; }
.mela-pd .details > *:nth-child(2){ animation-delay:.12s; }
.mela-pd .details > *:nth-child(3){ animation-delay:.18s; }
.mela-pd .details > *:nth-child(4){ animation-delay:.24s; }
.mela-pd .details > *:nth-child(5){ animation-delay:.30s; }
@keyframes melaPdFadeUp{
  from{ opacity:0; transform:translateY(20px); }
  to{ opacity:1; transform:translateY(0); }
}

/* Sticky-but-contained: applied to the Elementor widget wrapper so the
   parent container is the containing block — the widget follows the
   scroll but can never leave its section. Needs no overflow clipping
   on ancestors between the widget and the page scroller. */
.elementor-widget.mela-pd-sticky{
  position:sticky;
  top:var(--mela-pd-top, 32px);
  align-self:flex-start;
  height:fit-content;
}
/* Rey's #page wrapper uses overflow:hidden, which makes IT the sticky
   scroll container (it never scrolls, so sticky never engages).
   overflow-x:clip keeps the horizontal clipping without creating a
   scroll container. Scoped to single product pages. */
body.single-product .rey-siteWrapper{
  overflow-x:clip;
  overflow-y:visible;
}
@media (max-width:1024px){
  .elementor-widget.mela-pd-sticky.mela-pd-sticky-desktop{ position:static; }
}