/* ==========================================================================
   LuxBeautyV — Roja-pattern primitives
   Each block below is a port of a rojalondon.com pattern, restyled to LBV.
   ========================================================================== */

/* ---------- #1 Announcement bar ---------- */
.lbv-announce {
  background: var(--ink);
  color: var(--gold);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  position: relative;
  z-index: var(--z-announce);
}
.lbv-announce__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 1.6em;
}
.lbv-announce__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
  pointer-events: none;
}
.lbv-announce__item.is-active {
  position: relative;
  opacity: 1;
}

/* Stable bar height on narrow viewports: rotating lines wrap to different row counts
   — reserve ~2–3 lines so header/hero don’t jump (matches header mobile breakpoint). */
@media (max-width: 900px) {
  .lbv-announce {
    line-height: 1.45;
  }
  .lbv-announce__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    /* ~2–3 lines at 0.9rem × 1.45; safe for longest default line on 320px */
    min-height: 4.6em;
  }
  .lbv-announce__item {
    width: 100%;
    box-sizing: border-box;
    padding-inline: 4px;
  }
}

/* ---------- #2 Editorial hero ---------- */
.lbv-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.lbv-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lbv-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.lbv-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Decorative muted autoplay — no taps; hides WebKit’s inline “play” affordance overlay. */
.lbv-hero.has-hero-video .lbv-hero__video {
  pointer-events: none;
}
.lbv-hero.has-hero-video .lbv-hero__video::-webkit-media-controls,
.lbv-hero.has-hero-video .lbv-hero__video::-webkit-media-controls-enclosure {
  display: none !important;
}
.lbv-hero.has-hero-video .lbv-hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
}
/* Covers full `.lbv-hero__media` (direct child); stacked above centered `.lbv-hero__video-mount` until `.is-video-ready`. */
.lbv-hero.has-hero-video.has-hero-video-loading-still .lbv-hero__video-loading-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .lbv-hero.has-hero-video.is-video-ready .lbv-hero__video-loading-still {
    opacity: 0;
    visibility: hidden;
  }
}
/* Hidden until prefers-reduced-motion (see `.has-hero-video`) */
.lbv-hero__motion-reduce-only {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}
.lbv-hero__motion-reduce-only img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.lbv-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.55) 100%
  );
}
.lbv-hero.is-tone-light .lbv-hero__veil {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(246,243,236,0.65) 100%
  );
}
.lbv-hero__caption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(48px, 8vw, 120px);
  color: #fff;
}
.lbv-hero.is-tone-light .lbv-hero__caption { color: var(--ink); }
.lbv-hero.is-tone-dark .lbv-hero__caption .lbv-stack__eyebrow,
.lbv-hero.is-tone-dark .lbv-hero__caption .lbv-stack__sub { color: rgba(255,255,255,0.85); }
.lbv-hero.is-tone-dark .lbv-hero__caption .lbv-stack__display { color: #fff; }

.lbv-hero.is-center .lbv-hero__caption .lbv-stack { text-align: center; align-items: center; margin-inline: auto; }
.lbv-hero.is-right  .lbv-hero__caption .lbv-stack { text-align: right;  align-items: flex-end; margin-inline-start: auto; max-width: 56ch; }

.lbv-hero.is-tone-dark .lbv-hero__caption .lbv-stack__display,
.lbv-hero.is-tone-dark .lbv-hero__caption .lbv-stack__sub,
.lbv-hero.is-tone-dark .lbv-hero__caption .lbv-stack__eyebrow {
  text-shadow: 1px 1px 1px #111;
}

/* Optional CTA below the headline stack. */
.lbv-hero__cta { margin: 28px 0 0; }
.lbv-hero.is-center .lbv-hero__cta { text-align: center; }
.lbv-hero.is-right  .lbv-hero__cta { text-align: right; }

@media (max-width: 700px) {
  .lbv-hero { min-height: 78vh; }
}

@media (prefers-reduced-motion: reduce) {
  .lbv-hero.has-hero-video .lbv-hero__video {
    display: none !important;
  }
  .lbv-hero.has-hero-video .lbv-hero__motion-reduce-only {
    display: block;
  }
  .lbv-hero.has-hero-video.has-hero-video-loading-still .lbv-hero__video-loading-still {
    opacity: 1;
    visibility: visible;
  }
}

/* ---------- #4 Image-left / copy-right block ---------- */
.lbv-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.lbv-block--reverse .lbv-block__grid {
  grid-template-areas: "copy media";
}
.lbv-block--reverse .lbv-block__media { grid-area: media; }
.lbv-block--reverse .lbv-block__copy  { grid-area: copy; }

.lbv-block__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.lbv-block__media--placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 60%, #2a1c08 100%);
  position: relative;
  display: grid;
  place-items: center;
}
.lbv-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--gold);
  text-align: center;
  padding: 32px;
}
.lbv-placeholder__rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--rule-gold);
}
.lbv-placeholder__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.lbv-block__copy-inner {
  max-width: 52ch;
}
.lbv-block__copy-inner > .lbv-stack { margin-bottom: 24px; }

.lbv-block__display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  margin: 16px 0 18px;
  line-height: 1.05;
}
.lbv-block__sub {
  display: block;
  font-style: italic;
  font-size: var(--fs-h3);
  margin-top: 6px;
}

/* Editorial aside — “coming soon” / gentle availability note */
.lbv-soon {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding-top: clamp(22px, 3.5vw, 34px);
  /* border-top: 1px solid var(--rule-gold); */
}
.lbv-soon__text {
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.055em;
  color: var(--ink-soft);
}

.lbv-ink   { color: var(--ink); }
.lbv-gold  { color: var(--gold-warm); }

@media (max-width: 900px) {
  .lbv-block__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .lbv-block--reverse .lbv-block__grid {
    grid-template-areas: "media" "copy";
  }
}

/* ---------- #4b Copy stacked above image ---------- */
.lbv-block--stacked .lbv-block__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vw, 72px);
}
.lbv-block--stacked .lbv-block__media {
  margin-inline: auto;
  width: 100%;
  max-width: min(100%, 960px);
}
.lbv-block--stacked .lbv-block__media img {
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  object-fit: unset;
  display: block;
}

/* Optional: center-aligned copy column (headline stack + body) */
.lbv-block--align-center .lbv-block__copy-inner {
  margin-inline: auto;
  text-align: center;
}

/* ---------- #5 Spotlight tabs ---------- */
.lbv-spotlight {
  background: var(--ivory);
  border-block: 1px solid var(--rule);
}
.lbv-spotlight__tabs {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-block: 22px;
  justify-content: center;
}
.lbv-spotlight__tab {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.lbv-spotlight__tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.lbv-spotlight__tab.is-active,
.lbv-spotlight__tab:hover { color: var(--gold-warm); }
.lbv-spotlight__tab.is-active::after { transform: scaleX(1); }

[data-spotlight-target] { display: none; }
[data-spotlight-target].is-active { display: block; }

/* ---------- #6 Product row ---------- */
.lbv-product-row__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-h);
}
@media (max-width: 900px) {
  .lbv-product-row__list { grid-template-columns: 1fr; gap: 36px; }
}
.lbv-product-card { background: transparent; }
.lbv-product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.lbv-product-card__media {
  margin: 0 0 22px;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}
.lbv-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.lbv-product-card__link:hover .lbv-product-card__media img {
  transform: scale(1.02);
}
.lbv-product-card__pill {
  position: absolute;
  top: 18px; left: 18px;
}
.lbv-product-card.is-soon .lbv-product-card__media img { opacity: 0.85; }
.lbv-product-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 6px;
}
.lbv-product-card__tags,
.lbv-product-card__price {
  margin: 0 0 10px;
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.lbv-product-card__cta { display: inline-block; }

/* ---------- #7 Collections grid ---------- */
.lbv-collections__header { margin-bottom: 56px; }
.lbv-collections__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: var(--grid-h) var(--grid-h);
}
.lbv-collections__grid[data-cols="2"] { --cols: 2; }
.lbv-collections__grid[data-cols="4"] { --cols: 4; }
@media (max-width: 900px) {
  .lbv-collections__grid { grid-template-columns: 1fr; gap: 28px; }
}

.lbv-collection-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.lbv-collection-card__media {
  margin: 0 0 18px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}
.lbv-collection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.lbv-collection-card__link:hover .lbv-collection-card__media img { transform: scale(1.03); }
.lbv-collection-card__label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ---------- #8 Manifesto ---------- */
.lbv-manifesto { text-align: center; }
.lbv-manifesto__body {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink);
}
.lbv-manifesto__body p { margin: 0 0 22px; }
.lbv-manifesto__body em { color: var(--gold-warm); font-style: italic; }

/* ---------- #9 Services strip ---------- */
.lbv-services {
  background: var(--ivory);
  border-block: 1px solid var(--rule);
}
.lbv-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.lbv-services__item {
  text-align: center;
  border-inline-end: 1px solid var(--rule);
  display: flex;
  min-height: 0;
}
.lbv-services__item:last-child { border-inline-end: 0; }

.lbv-services__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 28px;
  padding-inline: 16px;
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: 0.85rem;
}
.lbv-services__link:hover { color: var(--gold-warm); }

@media (max-width: 700px) {
  .lbv-services__list { grid-template-columns: 1fr; }
  .lbv-services__item { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .lbv-services__item:last-child { border-bottom: 0; }
  .lbv-services__link { padding-block: 18px; }
}

/* ---------- #12 Cart drawer ---------- */
.lbv-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
  visibility: hidden;
}
.lbv-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.lbv-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.4);
  border: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.lbv-drawer.is-open .lbv-drawer__overlay { opacity: 1; }

.lbv-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(440px, 100%);
  height: 100%;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  box-shadow: -32px 0 64px rgba(17,17,17,0.12);
}
.lbv-drawer.is-open .lbv-drawer__panel { transform: translateX(0); }

.lbv-drawer__header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.lbv-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.lbv-drawer__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
}
.lbv-drawer__body {
  padding: 24px 28px;
  overflow: auto;
  flex: 1;
}
.lbv-drawer__footer {
  padding: 22px 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.lbv-drawer__footer .btn { width: 100%; }
.lbv-drawer__footer .btn--ghost { text-align: center; }

/* ---------- Discover Mother ---------- */
.lbv-discover { position: relative; }
.lbv-discover__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 56px;
}
.lbv-discover__body {
  display: grid;
  gap: var(--grid-v);
  max-height: 9999px;
  transition: max-height var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
}
.lbv-discover[data-collapsed="true"] .lbv-discover__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
.lbv-discover[data-collapsed="false"] .lbv-discover__body {
  max-height: 9999px;
  opacity: 1;
}
.lbv-discover__media { margin: 0; }
.lbv-discover__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.lbv-discover__media--bleed {
  margin-inline: calc(var(--page-margin) * -1);
}
.lbv-discover__copy {
  max-width: 750px;
  margin-inline: auto;
}
.lbv-discover__copy--narrow { max-width: 640px; }
.lbv-discover__heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 22px;
  text-align: center;
}
.lbv-notes {
  margin: 0;
  display: grid;
  gap: 14px;
}
.lbv-notes__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding-block: 16px;
}
.lbv-notes__row dt {
  font-family: var(--font-text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: var(--fs-eyebrow);
  color: var(--ink-soft);
}
.lbv-notes__row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}
.lbv-discover__experience {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-align: center;
  font-style: italic;
  color: var(--ink);
}
.lbv-discover__wearing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
}
.lbv-discover__wearing-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-warm);
}

/* ---------- Cabinet page-transition veil ---------- */
/* Full-viewport near-black overlay that fades in on the departing page
   before navigation to the Cabinet of Curiosities. */
.lbv-transition-veil {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #0b0906;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease-in;
}
.lbv-transition-veil.is-closing {
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .lbv-transition-veil { transition: none; }
}
