/* ============================================================
   TEIMOOR JAAFAR — watch.css
   Product detail page (?id=). PDP hero, certificate spec sheet,
   floating cutout story, related pieces, mobile enquire bar.
   ============================================================ */

/* ---------- 1. COMPACT PAGE-HERO (breadcrumb only) ---------- */
.page-hero--pdp {
  padding-top: clamp(112px, 14vh, 164px);
  padding-bottom: 0;
}
.page-hero--pdp .crumbs { margin-bottom: 0; }

/* ---------- 2. PDP HERO ---------- */
.pdp {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 52px) var(--gutter) clamp(76px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 6vw, 104px);
  align-items: start;
}

/* media frame — white ground, clip-wipe revealed (JS-only initial state) */
.pdp__media { margin: 0; }
.pdp__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 30px 70px -46px rgba(18, 30, 28, 0.5);
}
.pdp__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(22px, 3.6vw, 52px);
  will-change: transform;
}
.pdp__cap {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
  max-width: 44ch;
}

/* info column */
.pdp__info { padding-top: clamp(2px, 1vw, 16px); }
.pdp__info .eyebrow { margin-bottom: 18px; }
.pdp__title {
  font-size: clamp(38px, 4.8vw, 74px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 12ch;
}
.pdp__metaline {
  margin-top: clamp(14px, 1.8vw, 20px);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* price with champagne rule beneath */
.pdp__pricing { margin-top: clamp(20px, 2.6vw, 32px); }
.pdp__price {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.pdp__price-rule {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin-top: clamp(14px, 1.8vw, 20px);
}

/* assurance hairline rows */
.pdp__assure {
  list-style: none;
  padding: 0;
  margin: clamp(26px, 3.2vw, 38px) 0 0;
}
.pdp__assure li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 2px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.pdp__assure li:last-child { border-bottom: 1px solid var(--line); }
.pdp__assure li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* CTAs */
.pdp__actions {
  margin-top: clamp(28px, 3.4vw, 42px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.pdp__alt {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 4px 0;
}
.pdp__alt::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.pdp__alt:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 3. CERTIFICATE SPEC SHEET ---------- */
.cert {
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(84px, 11vw, 170px) var(--gutter);
}
.cert__inner { max-width: 880px; margin: 0 auto; }
.cert__head { text-align: center; margin-bottom: clamp(40px, 5vw, 68px); }
.cert__head .eyebrow { margin-bottom: 20px; }
.cert__head h2 { font-size: clamp(30px, 4.4vw, 58px); }
.cert__note {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 48ch;
}

/* letterpress paper */
.cert__paper {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(30px, 5vw, 64px) clamp(22px, 6vw, 76px) clamp(26px, 4vw, 48px);
  box-shadow: 0 34px 80px -56px rgba(18, 30, 28, 0.55);
}
.cert__paper::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  pointer-events: none;
}
.cert__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-bottom: clamp(24px, 3.4vw, 38px);
}
.cert__seal {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--bone);
  width: 46px; height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
}
.cert__title {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.cert__model {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--bone);
  letter-spacing: -0.01em;
}

/* rows: small-caps label left, value right, drawn hairline beneath */
.cert__row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(13px, 1.8vw, 17px) 2px;
}
.cert__k {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 0 0 auto;
}
.cert__v {
  font-size: clamp(14px, 1.15vw, 16px);
  color: var(--bone);
  text-align: right;
  line-height: 1.5;
}
.cert__rule {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  will-change: transform;
}
/* the price line closes the sheet on a champagne rule */
.cert__row--price { padding-top: clamp(17px, 2.2vw, 22px); }
.cert__row--price .cert__v {
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 25px);
  font-variant-numeric: tabular-nums;
}
.cert__row--price .cert__rule { background: var(--gold); }

.cert__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: clamp(18px, 2.6vw, 28px);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- 4. STORY / WHY THIS ONE ---------- */
.story {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 180px) var(--gutter);
}
.story__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}
.story__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.story__float {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  aspect-ratio: 600 / 920;
  animation: watchFloat 6.5s ease-in-out infinite;
  will-change: transform;
}
.story__float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 36px 40px rgba(26, 20, 10, 0.26));
}
.story__shadow {
  position: absolute;
  z-index: 1;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26, 20, 10, 0.28), transparent 70%);
  filter: blur(7px);
  animation: watchShadow 6.5s ease-in-out infinite;
}
@keyframes watchFloat {
  0%, 100% { transform: translateY(-9px); }
  50%      { transform: translateY(9px); }
}
@keyframes watchShadow {
  0%, 100% { transform: translateX(-50%) scale(0.92); opacity: 0.7; }
  50%      { transform: translateX(-50%) scale(1.06); opacity: 0.95; }
}

.story__body .eyebrow { margin-bottom: 20px; }
.story__body h2 {
  font-size: clamp(30px, 4.4vw, 58px);
  margin-bottom: clamp(26px, 3.4vw, 40px);
}
.story__list {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(26px, 3.4vw, 40px);
}
.story__list li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--bone-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 54ch;
}
.story__list li:last-child { border-bottom: 1px solid var(--line); }
.story__list li::before {
  content: "";
  margin-top: 10px;
  width: 16px; height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}
.story__note {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 16.5px);
  line-height: 1.75;
  max-width: 54ch;
}

/* ---------- 5. RELATED PIECES ---------- */
.related {
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  padding: clamp(80px, 10vw, 150px) 0 clamp(70px, 9vw, 120px);
}
.related__intro {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(36px, 5vw, 64px);
}
.related__intro .eyebrow { margin-bottom: 18px; }
.related__intro h2 { font-size: clamp(30px, 4.6vw, 60px); }
@media (min-width: 700px) {
  .related .shop { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 6. MOBILE STICKY ENQUIRE BAR ---------- */
.buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50; /* above nav (40), below menu overlay (60) */
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(245, 241, 233, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0s linear 0.55s;
}
.buybar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.55s var(--ease);
}
.buybar__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.buybar__model {
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buybar__price {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.buybar__btn { flex: 0 0 auto; padding: 13px 24px; }
@media (max-width: 860px) {
  .buybar { display: flex; }
}
/* the bar is a JS shortcut that duplicates on-page content; without JS it stays away */
html.no-js .buybar { display: none; }

/* ---------- 7. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .pdp { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .pdp {
    grid-template-columns: 1fr;
    gap: clamp(30px, 6vw, 44px);
    padding-bottom: clamp(64px, 12vw, 90px);
  }
  .pdp__title { max-width: none; }
  .story__grid { grid-template-columns: 1fr; gap: clamp(44px, 10vw, 64px); }
  .story__visual { order: 2; }
  .story__float { width: min(58vw, 300px); }
}
@media (max-width: 480px) {
  .cert__row { flex-direction: column; align-items: flex-start; gap: 5px; }
  .cert__v { text-align: left; }
  .pdp__actions .btn { width: 100%; }
}

/* ---------- 8. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .story__float, .story__shadow { animation: none; }
  .buybar, .buybar.is-visible { transition: none; }
  .pdp__frame img { will-change: auto; }
}

/* ---- certificate status row (Tiffany dot at permitted accent scale) ---- */
.cert__v--status { display: inline-flex; align-items: center; gap: 8px; }

/* ============================================================
   PRINT — the certificate leaves the boutique as a spec sheet
   ============================================================ */
@media print {
  .nav, .menu, .wipe, .footer, .buybar, .related, .hero__cue,
  .skip-link, .sparkle, body::after { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  /* force every JS-managed reveal state visible on paper */
  [data-split] .line__inner, [data-split] .word, .fade, [data-reveal],
  [data-step], .cert__row, .cert__rule, .pdp__frame, .pdp__frame img {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .cert { break-inside: avoid; }
  .cert__paper::after {
    content: "Teimoor Jaafar Watches · Dubai · wa.me/971500000000";
    display: block; margin-top: 24pt;
    font-size: 9pt; letter-spacing: 0.08em; color: #555;
  }
  .status-dot { animation: none; }
}

/* ============================================================
   SANDS RETHEME — details mini-grid, estimate, ship rows
   ============================================================ */
.pdp__details { margin-top: clamp(20px, 2.6vw, 30px); }
.pdp__details-h { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.pdp__specgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px) clamp(12px, 1.6vw, 20px);
  margin: 0;
}
.pdp__specgrid dt {
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.pdp__specgrid dd { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--bone); }
@media (max-width: 480px) { .pdp__specgrid { grid-template-columns: repeat(2, 1fr); } }

.btn--wide { width: 100%; justify-content: center; }
.btn--wide span { display: inline-flex; align-items: center; gap: 10px; }
.btn--wide svg { width: 16px; height: 16px; }

.pdp__estimate {
  margin-top: 12px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.pdp__actions .pdp__alt { margin-top: 10px; display: inline-block; }

.pdp__ship {
  margin-top: clamp(22px, 3vw, 32px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px);
  border-top: 1px solid var(--line-soft); padding-top: clamp(18px, 2.4vw, 26px);
}
.pdp__ship h3 { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.pdp__ship p { font-size: 12px; line-height: 1.6; color: var(--muted); }
@media (max-width: 480px) { .pdp__ship { grid-template-columns: 1fr; } }

/* SANDS media panel: grey, generous, image blended in */
.pdp__frame { background: var(--ink-card) !important; }
.pdp__frame img { mix-blend-mode: multiply; }
