/* ==========================================================================
   Lace & Allure — Page compositions
   Hero, product detail, gallery lightbox, about, contact.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}

/* Layered wash stands in for photography and still reads as intentional. */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(176,141,87,.34), transparent 62%),
    radial-gradient(80% 60% at 12% 100%, rgba(201,162,39,.20), transparent 70%),
    radial-gradient(70% 60% at 92% 84%, rgba(176,141,87,.16), transparent 72%),
    linear-gradient(180deg, #17150F 0%, #0E0D0B 58%, #080706 100%);
}
/* Fine vertical threads — a nod to woven pina, drawn in pure CSS. */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(244,241,236,.055) 0px,
    rgba(244,241,236,.055) 1px,
    transparent 1px,
    transparent 7px
  );
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 12%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 42%, #000 12%, transparent 72%);
  opacity: .75;
}

.hero-inner { position: relative; z-index: 1; padding-block: clamp(96px, 16vh, 168px); }
.hero-logo {
  width: clamp(230px, 36vw, 440px);
  height: auto;
  margin: 0 auto clamp(30px, 4.5vw, 46px);
}
/* Two classes so this beats the plain .logo-on-dark invert. */
.hero-logo.logo-on-dark { filter: invert(1) drop-shadow(0 10px 40px rgba(0,0,0,.6)); }
.hero h1 { color: #fff; }
.hero .hero-tagline {
  margin-top: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.125rem, 2.4vw, 1.6rem);
  color: var(--gold-bright);
  letter-spacing: 0;
}
.hero .hero-sub {
  margin: 22px auto 0;
  max-width: 54ch;
  font-size: var(--fs-lead);
  color: rgba(244,241,236,.72);
  line-height: 1.5;
}
.hero .cta-row { margin-top: clamp(30px, 4.5vw, 44px); }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: grid; place-items: center; gap: 7px;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,236,.44);
}
.hero-scroll svg { width: 15px; height: 15px; animation: nudge 2.3s var(--ease) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0);   opacity: .5; }
  50%      { transform: translateY(5px); opacity: 1;  }
}

/* Compact hero for interior pages */
.page-hero {
  padding-block: clamp(72px, 12vw, 132px) clamp(34px, 5vw, 56px);
  border-bottom: 1px solid var(--hairline);
}
.page-hero .eyebrow { display: block; margin-bottom: 14px; }
.page-hero h1 { font-size: var(--fs-display); }
.page-hero .lead { margin-top: 18px; max-width: 58ch; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: var(--fs-micro); color: var(--text-tertiary); }
.crumbs a { color: var(--text-tertiary); }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current="page"] { color: var(--text-secondary); }

/* ---------- Product detail ---------- */
.pdp {
  display: grid;
  gap: clamp(28px, 4.5vw, 64px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  padding-block: clamp(28px, 4vw, 48px) var(--section-y);
}
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }

.pdp-gallery { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 12px; }
@media (max-width: 900px) { .pdp-gallery { position: static; } }

.pdp-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--hairline);
}
.pdp-stage img { width: 100%; height: 100%; object-fit: cover; }
.pdp-zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--hairline-strong);
  color: var(--text-secondary);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pdp-zoom:hover { color: var(--text); }
.pdp-zoom svg { width: 16px; height: 16px; }

.pdp-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(62px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.pdp-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--hairline);
  background: var(--bg-alt);
  transition: border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  opacity: .7;
  padding: 0;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb[aria-current="true"] { border-color: var(--gold); opacity: 1; }

.pdp-info > * + * { margin-top: 18px; }
.pdp-info h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.12; }

.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price .now { font-size: clamp(1.6rem, 3vw, 2.125rem); font-weight: 600; letter-spacing: -0.04em; }
.pdp-price .was { font-size: var(--fs-body); color: var(--text-tertiary); text-decoration: line-through; }
.pdp-price .off {
  padding: 4px 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--shopee) 14%, transparent);
  color: var(--shopee); font-size: var(--fs-micro); font-weight: 600;
}

.pdp-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-small); color: var(--text-secondary); }
.pdp-meta .dot { color: var(--text-tertiary); }

.pdp-buy { padding: 20px; border-radius: var(--r-lg); background: var(--bg-alt); border: 1px solid var(--hairline); }
.pdp-buy h3 { font-size: var(--fs-body); margin-bottom: 4px; }
.pdp-buy .buy-note { font-size: var(--fs-micro); color: var(--text-tertiary); margin-bottom: 14px; }

.pdp-variants { display: grid; gap: 14px; }
.variant-group .vg-label {
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 9px;
}

.pdp-desc { font-size: var(--fs-small); line-height: 1.65; color: var(--text-secondary); }
.pdp-desc p + p { margin-top: 12px; }

/* ---------- Reviews (real marketplace reviews only) ---------- */
.review-grid {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
}
.review-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 22px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.review-head { display: flex; align-items: center; gap: 11px; }
.review-avatar {
  width: 36px; height: 36px; border-radius: var(--r-pill);
  background: var(--gold-wash); color: var(--gold);
  display: grid; place-items: center;
  font-weight: 600; font-size: var(--fs-small);
  flex-shrink: 0; overflow: hidden;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-who { min-width: 0; }
.review-who b { display: block; font-size: var(--fs-small); font-weight: 600; }
.review-who span { font-size: var(--fs-micro); color: var(--text-tertiary); }
.review-text { font-size: var(--fs-small); line-height: 1.6; color: var(--text-secondary); }
.review-variant {
  font-size: var(--fs-micro); color: var(--text-tertiary);
  padding-top: 11px; border-top: 1px solid var(--hairline); margin-top: auto;
}
.review-source { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-micro); color: var(--text-tertiary); }
.review-source .plogo { width: 14px; height: 14px; }

.rating-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 4vw, 44px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  border: 1px solid var(--hairline);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.rating-big { display: flex; align-items: baseline; gap: 6px; }
.rating-big .num { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.rating-big .of { font-size: var(--fs-body); color: var(--text-tertiary); }
.rating-side .star-row { margin-bottom: 6px; }
.rating-side p { font-size: var(--fs-micro); color: var(--text-tertiary); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8,7,6,.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 82vh;
  border-radius: var(--r-md);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  transform: scale(.97);
  transition: transform var(--dur) var(--ease-out);
}
.lightbox.is-open img { transform: none; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: rgba(244,241,236,.12);
  border: 1px solid rgba(244,241,236,.2);
  color: #fff;
  transition: background var(--dur-fast) var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(244,241,236,.24); }
.lb-close { top: clamp(14px, 3vw, 26px); right: clamp(14px, 3vw, 26px); }
.lb-prev  { left: clamp(10px, 2.5vw, 26px);  top: 50%; transform: translateY(-50%); }
.lb-next  { right: clamp(10px, 2.5vw, 26px); top: 50%; transform: translateY(-50%); }
.lb-close svg, .lb-prev svg, .lb-next svg { width: 19px; height: 19px; }
.lb-count {
  position: absolute; bottom: clamp(14px, 3vw, 26px); left: 50%; transform: translateX(-50%);
  font-size: var(--fs-micro); color: rgba(244,241,236,.6); font-variant-numeric: tabular-nums;
}

/* ---------- Split editorial block ---------- */
.split {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}
.split-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(90% 70% at 30% 10%, rgba(176,141,87,.30), transparent 65%),
    linear-gradient(160deg, #1C1A15, #0E0D0B);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  position: relative;
}
.split-media > img:not(.split-mark) { width: 100%; height: 100%; object-fit: cover; }
.split-media .split-mark {
  width: 66%;
  height: auto;
  object-fit: contain;
  opacity: .82;
}
.split-media .split-mark.logo-on-dark { filter: invert(1) drop-shadow(0 8px 28px rgba(0,0,0,.55)); }
.split-body h2 { margin-bottom: 18px; }
.split-body > * + * { margin-top: 16px; }
.split.reverse .split-media { order: 2; }
@media (max-width: 760px) { .split.reverse .split-media { order: 0; } }

/* ---------- Timeline (about / process) ---------- */
.timeline { display: grid; gap: 0; counter-reset: step; }
.tl-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  counter-increment: step;
  content: counter(step);
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--gold-wash); color: var(--gold);
  font-size: var(--fs-micro); font-weight: 600;
  z-index: 1;
}
:root[data-theme="dark"] .tl-item::before { background: rgba(176,141,87,.2); }
.tl-item::after {
  content: "";
  position: absolute; left: 17px; top: 38px; bottom: -4px;
  width: 1px; background: var(--hairline);
}
.tl-item:last-child::after { display: none; }
.tl-body h3 { margin-bottom: 7px; }
.tl-body p { font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.contact-card {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.contact-card .ficon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--gold-wash); color: var(--gold);
  display: grid; place-items: center; margin-bottom: 15px;
}
:root[data-theme="dark"] .contact-card .ficon { background: rgba(176,141,87,.18); }
.contact-card .ficon svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: var(--fs-body); margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.6; }
.contact-card a:hover { color: var(--gold); }
.contact-card address { font-style: normal; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 72vh;
  display: grid; place-items: center; text-align: center;
  padding-block: clamp(64px, 12vw, 120px);
}
.notfound .code {
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  color: var(--text);
  opacity: .12;
}
.notfound h1 { font-size: var(--fs-h2); margin-top: -0.3em; }
.notfound p { margin-top: 14px; color: var(--text-secondary); }
.notfound .cta-row { margin-top: 28px; justify-content: center; }

/* ---------- Per-product size guide ---------- */
.size-guide {
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.sg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sg-head h2 { font-size: var(--fs-h3); margin: 0; }
.sg-kind {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--gold-wash);
  color: var(--gold);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
}
:root[data-theme="dark"] .sg-kind { background: rgba(176,141,87,.2); }
.sg-sizes { margin-bottom: 14px; }
.sg-note { font-size: var(--fs-small); color: var(--text-secondary); margin-bottom: 14px; }
.sg-chart { margin: 0 0 14px; }
.sg-chart img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: #fff;
  cursor: zoom-in;
}
.sg-chart figcaption { margin-top: 8px; font-size: var(--fs-micro); color: var(--text-tertiary); }

/* ---------- BIR compliance block ----------
   Trust-first, so it reads as a document rather than marketing chrome. The
   seal keeps a white field in both themes because that is what the issued
   artifact looks like; the surrounding card carries the theme instead. */
.compliance {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 820px) {
  .compliance { grid-template-columns: 1fr; gap: 28px; }
}

.compliance-seal {
  display: block;
  padding: clamp(14px, 2vw, 22px);
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.compliance-seal:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.compliance-seal img { width: 100%; height: auto; }

.compliance-body > * + * { margin-top: 16px; }
.compliance-body h2 { font-size: var(--fs-h3); }
.compliance-body p { font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.6; max-width: 46ch; }

.compliance-facts { display: grid; gap: 0; margin: 0; }
.compliance-facts > div {
  display: grid;
  grid-template-columns: minmax(130px, 38%) 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-small);
}
.compliance-facts > div:last-child { border-bottom: 0; }
.compliance-facts dt { color: var(--text-tertiary); }
.compliance-facts dd { margin: 0; color: var(--text); font-weight: 500; }
@media (max-width: 520px) {
  .compliance-facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Footer compliance line */
.footer-compliance {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
}
.footer-compliance img {
  width: 104px;
  height: auto;
  background: #fff;
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
}
.footer-compliance a { color: var(--text-tertiary); }
.footer-compliance a:hover { color: var(--text); }
