/* Flower Core — style.css (elegant micro-interactions) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --burg:       #4C0D0D;
  --burg-mid:   #681212;
  --burg-dark:  #330808;
  --cream:      #F0EBE0;
  --cream-lt:   #F5F0E8;
  --gold:       #C9A84C;
  --gold-lt:    #D4AF37;
  --txt-dk:     #2C1810;
  --txt-mid:    #6B3A2A;
  --txt-cream:  #F5F0E8;
  --serif:      'Lora', Georgia, serif;
  --script:     'Dancing Script', cursive;
  --sans:       'Montserrat', sans-serif;
  --nav-h:      48px;
}

html { font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--txt-dk);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT ===== */
main {
  display: block;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--cream-lt);
  border-bottom: 1px solid rgba(92,10,10,0.1);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
}
.nav-tabs {
  display: flex; align-items: center;
  height: 100%; gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  display: flex; align-items: center;
  height: 100%; padding: 0 16px;
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.03em; color: var(--txt-dk);
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.nav-tab:first-child { font-weight: 700; font-style: italic; color: var(--burg); }
.nav-tab:hover,
.nav-tab.active {
  color: var(--burg);
  border-bottom-color: var(--burg);
}

/* Hamburger */
.hamburger {
  display: none;
  position: absolute; right: 14px;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--burg); border-radius: 2px; }
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--cream-lt);
  border-bottom: 1px solid rgba(92,10,10,0.08);
  z-index: 999; display: none; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 14px 24px; font-size: .82rem; font-weight: 500;
  color: var(--txt-dk); text-decoration: none;
  border-bottom: 1px solid rgba(92,10,10,0.06);
  cursor: pointer;
}
.mobile-link:hover, .mobile-link.active { background: rgba(92,10,10,0.04); color: var(--burg); }

/* ===== SOCIAL SIDEBAR ===== */
.social-sidebar {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 8px;
}
/* Chưa có tài khoản FB/IG/Messenger: ẩn sẵn bằng CSS để không nháy hiện rồi mới bị script.js ẩn */
.social-sidebar .social-btn:not(.phone-btn) { display: none; }
.social-btn {
  display: block; width: 36px; height: 36px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.social-btn svg { width: 36px; height: 36px; display: block; }

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: var(--burg);
}
.hero-bg { position: absolute; inset: 0; background: var(--burg); }
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 24px 20px;
  max-width: 780px; width: 100%;
}
.hero-logo { display: flex; justify-content: center; align-items: center; margin-bottom: 40px; }
.hero-logo-img {
  max-width: 520px; width: 90%;
  height: auto; display: block; margin: 0 auto;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at center, black 45%, transparent 92%);
          mask-image: radial-gradient(ellipse 72% 68% at center, black 45%, transparent 92%);
}
.hero-title {
  font-family: var(--script); font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 500; color: var(--cream-lt);
  line-height: 1.05; margin-bottom: 18px;
  letter-spacing: .01em;
}
.hero-sub {
  font-size: .72rem; font-weight: 400;
  letter-spacing: .22em; color: rgba(245, 240, 232, 0.65);
  text-transform: uppercase; margin-bottom: 90px;
}
.hero-btns { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 180px;
  padding: 12px 28px;
  font-family: var(--sans); font-size: .68rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid rgba(245, 240, 232, 0.55); color: rgba(245, 240, 232, 0.9);
  background: transparent; cursor: pointer;
  text-decoration: none;
}
.hero-btn:hover {
  border-color: var(--cream-lt); color: var(--cream-lt);
  background: rgba(245, 240, 232, 0.08);
}

/* ===== DARK PAGE (BST / Vật phẩm) ===== */
.page-dark { background: var(--burg); min-height: calc(100vh - var(--nav-h)); }
.page-inner { max-width: 660px; margin: 0 auto; padding: 24px 24px 72px; width: 100%; }
.page-inner.wide { max-width: 1040px; }
.page-inner.centered { text-align: center; }
.page-inner.vp-wrap { max-width: 1080px; }
.vp-wrap .vp-title,
.vp-wrap .quote-text { text-align: center; }
.vp-wrap .heading-line { margin: 14px auto 48px; }
.vp-title { margin-top: 24px; }

.sub-tabs { display: flex; gap: 0; justify-content: center; margin-bottom: 24px; }
.sub-tabs .nav-tab { background: transparent; border: none; color: rgba(245,240,232,0.6); border-bottom: 1px solid transparent; font-size: .65rem; }
.sub-tabs .nav-tab:hover, .sub-tabs .nav-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.heading-serif { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; letter-spacing: .04em; }
.heading-serif.light { color: var(--cream-lt); }
.heading-serif.extra-large { font-size: clamp(2.2rem, 6vw, 4rem); }
.heading-line { width: 60px; height: 1px; background: var(--gold); margin: 14px auto 48px; }
.quote-text { font-family: var(--serif); font-style: italic; font-size: .95rem; color: rgba(245,240,232,0.6); max-width: 520px; margin: 0 auto; text-align: center; }

/* ===== BST SIGNATURE ===== */
.bst-container { max-width: 1100px; margin: 0 auto; }
.bst-header-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 60px; gap: 16px; min-height: 96px;
}
.bst-nav-left, .bst-nav-right { display: flex; gap: 28px; flex: 1; align-items: center; }
.bst-nav-right { justify-content: flex-end; }
.bst-nav-link { font-size: .72rem; letter-spacing: .05em; color: rgba(245,240,232,0.8); text-decoration: none; }
.bst-nav-link:hover { color: var(--gold); }

.bst-title { text-align: center; font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 40px; }
.title-underline { border-bottom: 1.5px solid rgba(245,240,232,0.6); padding-bottom: 4px; }

.sig-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sig-card {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 18px;
  padding: 40px 24px 32px;
  text-align: center; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.sig-card:hover { border-color: rgba(201,168,76,0.5); background: rgba(201,168,76,0.06); }
.sig-icon { color: var(--gold); margin-bottom: 16px; display: flex; justify-content: center; }
.sig-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--cream-lt); margin-bottom: 8px; }
.sig-card p { font-size: .8rem; color: rgba(245,240,232,0.55); margin-bottom: 20px; line-height: 1.5; }
.sig-cta { font-size: .65rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }

/* ===== VẬT PHẨM ===== */
.vp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.vp-update-note {
  margin-top: 26px; text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: .85rem; color: rgba(245,240,232,0.55);
  padding: 0 40px;
}
.vp-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(201,168,76,0.18);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  display: flex; flex-direction: column;
}
.vp-card:hover { border-color: rgba(201,168,76,0.45); }
.vp-img { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.vp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.vp-info { padding: 12px 12px 16px; text-align: center; }
.vp-info h4 {
  font-family: var(--serif); font-size: .92rem; font-weight: 500;
  color: var(--gold-lt); margin-bottom: 4px;
  letter-spacing: .015em; line-height: 1.25; min-height: 2.4em;
}
.vp-info p { font-size: .68rem; color: rgba(245,240,232,0.6); line-height: 1.45; }

/* ===== CREAM PAGE ===== */
.page-cream { background: var(--cream); min-height: calc(100vh - var(--nav-h)); }
.cream-top-tab {
  position: absolute; top: var(--nav-h); right: 0;
  background: var(--cream); padding: 6px 18px;
  font-size: .68rem; font-weight: 500; letter-spacing: .04em; color: var(--txt-dk);
  border-left: 1px solid rgba(92,10,10,0.08);
  border-bottom: 1px solid rgba(92,10,10,0.08);
}

.coll-header { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-bottom: 40px; }
.coll-logo-wrap { width: 100px; flex-shrink: 0; }

.hl-icon { width: 88px; height: auto; display: block; flex-shrink: 0; object-fit: contain; }
.hl-icon.center { margin: 0 auto 10px; }
.hl-icon.sm { width: 60px; }
.hl-icon.light { filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(15deg) brightness(1.1); }

.section-logo-img { max-width: 280px; width: 75%; height: auto; display: block; margin: 0 auto; mix-blend-mode: lighten; }
.page-top-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.bst-header-nav .page-top-logo { margin-bottom: 0; flex-shrink: 0; }
.bst-header-nav .section-logo-img { max-width: 150px; width: 150px; }

.script-heading { font-family: var(--script); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: var(--burg); line-height: 1; margin-bottom: 10px; }
.script-heading.sm { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--burg); }
.coll-desc { font-family: var(--serif); font-size: .95rem; color: var(--txt-mid); margin-bottom: 4px; }
.coll-uses { font-family: var(--serif); font-size: .92rem; color: var(--txt-mid); line-height: 1.65; }
.coll-text.center { text-align: center; }

/* ===== SPECS ===== */
.specs { margin-bottom: 36px; }
.spec-row { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.spec-row.top { align-items: flex-start; }
.spec-lbl { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--burg); white-space: nowrap; }
.spec-lbl-col { min-width: 120px; display: flex; flex-direction: column; gap: 2px; }
.spec-sub { font-size: .65rem; color: var(--txt-mid); font-style: italic; }
.shapes { display: flex; gap: 10px; align-items: center; }
.sh { background: var(--burg); cursor: pointer; }
.sh-circle { width: 32px; height: 32px; border-radius: 50%; }
.sh-square { width: 32px; height: 32px; border-radius: 3px; }
.sh-rect   { width: 20px; height: 40px; border-radius: 3px; }
.sh-oval   { width: 42px; height: 32px; border-radius: 50%; }

/* Swatches */
.swatches { display: grid; grid-template-columns: repeat(4, 50px); gap: 6px 12px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.sw-dot { width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.16); }
.sw span { font-size: .5rem; color: var(--txt-mid); text-align: center; font-family: var(--sans); line-height: 1.15; max-width: 50px; }
.custom-note { font-family: var(--serif); font-style: italic; font-size: .82rem; color: var(--txt-mid); text-align: center; margin-top: 28px; }

/* ===== GALLERY ===== */
.gallery-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 36px 0;
  scroll-margin-top: 72px;
}
.gallery-row, .gallery-row.big, .gallery-row.dense {
  display: contents;
}
.g-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}
.g-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(76, 13, 13, 0.2);
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease);
}
.g-item:hover img {
  transform: scale(1.06);
}
.g-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
@media (max-width: 768px) {
  .gallery-rows {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ===== GALLERY NAV (Khám phá / Trở lại) ===== */
.gallery-nav-next, .gallery-nav-back {
  font-family: var(--serif);
  font-size: .95rem;
  font-style: italic;
  color: var(--txt-mid);
  margin: 32px 0 20px;
  scroll-margin-top: 72px;
}
.gallery-nav-next { text-align: right; }
.gallery-nav-back { text-align: left; margin-top: 40px; }
.gallery-nav-next a, .gallery-nav-back a {
  color: var(--txt-mid); text-decoration: none; padding: 6px 4px; display: inline-block;
}
.gallery-nav-next a:hover, .gallery-nav-back a:hover { color: var(--burg); }

#gift-section, #silk-gallery, #paper-gallery { scroll-margin-top: 68px; }

/* ===== GIFT SECTION ===== */
.gift-section { text-align: center; padding-top: 24px; }
.gift-tagline { font-family: var(--serif); font-size: .95rem; color: var(--txt-mid); line-height: 1.65; margin-bottom: 6px; }
.gift-note { font-family: var(--serif); font-style: italic; font-size: .78rem; color: var(--txt-mid); margin-bottom: 32px; }
.gift-list { text-align: left; }
.gift-item { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid rgba(92,10,10,0.1); }
.gift-item:last-child { border-bottom: none; }
.gift-item.no-img { grid-template-columns: 1fr; }
.gift-img { border-radius: 10px; overflow: hidden; }
.gift-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; border-radius: 10px; }
.gift-ph { width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; border-radius: 10px; }
.gift-label { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: var(--burg); margin-bottom: 6px; cursor: pointer; }
.radio-circle { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--burg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gift-price { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--burg-mid); margin-bottom: 8px; text-decoration: underline; text-underline-offset: 3px; }
.gift-info p { font-size: .78rem; color: var(--txt-mid); line-height: 1.55; }

/* ===== POLICY (two-card layout) ===== */
.policy-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.policy-card { border-radius: 6px; padding: 36px 30px 30px; text-align: center; }
.policy-card.cream-card { background: #F5EFE2; border: 1px solid rgba(92,10,10,0.08); }
.policy-card.burg-card { background: var(--burg); border: 1px solid rgba(201,168,76,0.2); color: var(--cream-lt); }
.policy-oval-wrap { display: flex; justify-content: center; margin-bottom: 10px; }

.policy-title { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .22em; color: var(--burg); margin-bottom: 2px; }
.policy-title.light { color: var(--gold-lt); }
.policy-sub { font-family: var(--serif); font-style: italic; font-size: .78rem; letter-spacing: .04em; color: var(--txt-mid); margin-bottom: 22px; }
.policy-sub.light { color: rgba(245,240,232,0.75); }

.tier { text-align: left; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(92,10,10,0.08); }
.tier:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tier.light { border-bottom-color: rgba(245,240,232,0.14); }
.tier-head { font-family: var(--sans); font-size: .74rem; font-weight: 700; color: var(--burg); margin-bottom: 4px; letter-spacing: .04em; }
.tier.light .tier-head { color: var(--gold-lt); }
.tier-type { font-family: var(--serif); font-style: italic; font-size: .8rem; color: var(--txt-mid); margin-bottom: 6px; }
.tier.light .tier-type { color: rgba(245,240,232,0.72); }
.tier ul { padding-left: 18px; }
.tier li { font-size: .75rem; color: var(--txt-mid); line-height: 1.6; margin-bottom: 4px; }
.tier.light li { color: rgba(245,240,232,0.7); }
.tier.light li strong { color: var(--gold-lt); }
.tier-note { font-family: var(--serif); font-style: italic; font-size: .7rem; color: var(--txt-mid); margin-top: 8px; text-align: center; }
.tier-note.light { color: rgba(245,240,232,0.55); }

/* ===== INVITE (2 large scene mockups) ===== */
.invite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.invite-grid.two { grid-template-columns: 1fr 1fr; gap: 26px; }

.invite-scene {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  gap: 8px;
  padding: 24px 22px;
  box-shadow: 0 6px 26px rgba(40,20,20,0.28);
}
.invite-scene.forest-scene {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%),
    linear-gradient(160deg, #1e3d10 0%, #2d5a1a 30%, #4a8228 65%, #78b545 100%);
}
.invite-scene.wine-scene {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,240,220,0.14), transparent 50%),
    linear-gradient(160deg, #1a0505 0%, #3a0808 35%, #5a1010 70%, #7a1a1a 100%);
}
.invite-scene.cream-scene {
  background:
    radial-gradient(circle at 40% 20%, rgba(255,255,255,0.55), transparent 50%),
    linear-gradient(160deg, #f6efdf 0%, #ecdec0 55%, #d5c093 100%);
}
.invite-scene.gold-scene {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,235,170,0.28), transparent 45%),
    linear-gradient(160deg, #2a1810 0%, #4b2f18 35%, #6b4a22 70%, #b78633 100%);
}
.invite-scene.rose-scene {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,230,240,0.25), transparent 45%),
    linear-gradient(160deg, #3d1421 0%, #631e36 35%, #8f2f51 70%, #bd4b73 100%);
}
.invite-scene.sapphire-scene {
  background:
    radial-gradient(circle at 30% 22%, rgba(180,235,255,0.25), transparent 45%),
    linear-gradient(160deg, #050e1f 0%, #0d1e3d 35%, #143161 70%, #1f4f96 100%);
}
.invite-scene.terracotta-scene {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,210,180,0.25), transparent 45%),
    linear-gradient(160deg, #33150d 0%, #592518 35%, #873e28 70%, #bf6243 100%);
}

.tpl-badge {
  position: absolute; top: 12px; left: 12px; z-index: 15;
  background: rgba(10, 5, 5, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .68rem; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
}

.invite-scene.cream-scene .invite-panel { background: #FAF4E7; }
.invite-scene.cream-scene .invite-panel.side { background: #FAF4E7; }
.invite-scene.gold-scene .ip-envelope { background: linear-gradient(135deg, #8a5f20, #503010); }
.invite-scene .scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%); }
.scene-overlay.dark { background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%); }

.invite-panel {
  position: relative; z-index: 2;
  flex: 1.2;
  background: #FAF4E7;
  border-radius: 3px;
  padding: 22px 14px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  min-height: 0;
}
.invite-panel.dark { background: #4A0F0F; color: var(--cream-lt); }
.invite-panel.side { flex: 0.8; padding: 24px 16px; align-items: stretch; justify-content: flex-start; gap: 6px; }

.invite-panel-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  border: 1px solid rgba(92,10,10,0.28);
  border-radius: 2px;
  padding: 14px 8px;
}
.invite-panel.dark .invite-panel-inner { border-color: rgba(212,175,55,0.35); }

.ip-label { font-family: var(--sans); font-size: .5rem; letter-spacing: .28em; color: var(--burg); }
.ip-label.light { color: var(--gold-lt); }
.ip-names { font-family: var(--script); font-size: 1.1rem; color: var(--burg); line-height: 1; }
.ip-names.light { color: var(--gold-lt); }
.ip-divider { width: 40px; height: 1px; background: var(--burg); opacity: .5; margin: 2px 0; }
.ip-divider.light { background: var(--gold-lt); opacity: .5; }
.ip-envelope {
  width: 44px; height: 30px;
  background: linear-gradient(135deg, #7a3020, #5a1a1a);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,240,232,0.7); font-size: .8rem;
  margin: 4px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ip-photos { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 4px 0; }
.ip-photo {
  width: 28px; height: 34px;
  background: linear-gradient(135deg, #d0c0a8, #a08870);
  border-radius: 1px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ip-photo.sm { width: 22px; height: 28px; }
.ip-photo.big { width: 60px; height: 70px; background: linear-gradient(135deg, #6a4030, #3a1010); margin: 6px 0; }
.invite-panel.dark .ip-photo { border-color: rgba(245,240,232,0.4); background: linear-gradient(135deg, #a08078, #5a3030); }
.ip-sign { font-family: var(--script); font-size: .7rem; color: var(--burg); margin-top: 4px; opacity: .7; }
.ip-sign.light { color: var(--gold-lt); opacity: .8; }

.side-title { font-family: var(--serif); font-size: .78rem; font-weight: 600; color: var(--burg); text-align: center; margin-bottom: 2px; }
.side-title.light { color: var(--gold-lt); }
.side-title.small { font-size: .68rem; margin-top: 6px; }
.side-line { height: 1px; background: rgba(92,10,10,0.3); margin: 4px 0; }
.side-line.light { background: rgba(212,175,55,0.4); }
.side-item {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif); font-size: .62rem;
  color: var(--txt-mid);
  padding: 2px 4px;
}
.side-item em { font-style: italic; color: var(--burg); font-weight: 600; }
.side-item.light { color: rgba(245,240,232,0.7); }
.side-item.light em { color: var(--gold-lt); }

.scene-caption {
  position: absolute; bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--script); font-size: 1rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  z-index: 3;
}
.scene-caption em { font-family: var(--script); font-style: normal; font-weight: 600; }
.scene-caption.light { color: rgba(255,235,200,0.95); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .vp-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-duo { grid-template-columns: 1fr; }
  .invite-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-tabs { display: none; }
  .hamburger { display: flex; }
  .navbar { justify-content: center; }
  .bst-header-nav { flex-direction: column; text-align: center; }
  .bst-nav-left, .bst-nav-right { display: none; }
  .sig-cards-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .coll-header { grid-template-columns: 1fr; }
  .coll-header .coll-logo-wrap { margin: 0 auto; }
  .coll-header .coll-text { text-align: center; }
  .swatches { grid-template-columns: repeat(4, 44px); gap: 4px 8px; }
  .sw-dot { width: 44px; height: 44px; }
  .gallery-row { grid-template-columns: repeat(3, 1fr); }
  .gallery-row.dense { grid-template-columns: repeat(4, 1fr); }
  .gift-item { grid-template-columns: 1fr; gap: 14px; }
  .invite-grid { grid-template-columns: 1fr; }
  .social-sidebar { display: none; }
  .cream-top-tab { display: none; }
}
@media (max-width: 560px) {
  .vp-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .swatches { grid-template-columns: repeat(4, 40px); }
  .sw-dot { width: 40px; height: 40px; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); }
  .hero-sub { margin-bottom: 60px; }
}

/* ================================================================
   EFFECTS & MICRO-INTERACTIONS — luxury / subtle / slow
   ================================================================ */
:root {
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:    cubic-bezier(0.65, 0, 0.35, 1);
  --dur-quick:  220ms;
  --dur:        400ms;
  --dur-slow:   700ms;
  --shadow-lux: 0 20px 40px -20px rgba(76, 13, 13, 0.35), 0 8px 16px -8px rgba(0, 0, 0, 0.15);
  --glow-gold:  0 0 0 1px rgba(201, 168, 76, 0.55), 0 14px 34px -14px rgba(201, 168, 76, 0.45);
}

html { scroll-behavior: smooth; }

::selection      { background: var(--burg); color: var(--cream-lt); }
::-moz-selection { background: var(--burg); color: var(--cream-lt); }

/* Scrollbar (Webkit) */
::-webkit-scrollbar        { width: 10px; height: 10px; }
::-webkit-scrollbar-track  { background: rgba(76, 13, 13, 0.04); }
::-webkit-scrollbar-thumb  {
  background: rgba(76, 13, 13, 0.28);
  border-radius: 10px; border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(76, 13, 13, 0.5); background-clip: padding-box; }

/* Focus rings — accessibility */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold-lt), var(--gold));
  z-index: 1100;
  transition: width 100ms linear;
  pointer-events: none;
}

/* ===== NAVBAR — glass on scroll ===== */
.navbar {
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}
.navbar.scrolled {
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 22px -12px rgba(76, 13, 13, 0.22);
}

/* Nav tabs — underline sweeps from center */
.nav-tab {
  position: relative;
  border-bottom-color: transparent !important;
  transition: color var(--dur-quick) var(--ease);
}
.nav-tab::after {
  content: '';
  position: absolute; left: 50%; right: 50%; bottom: 0;
  height: 2px; background: var(--burg);
  transition: left var(--dur) var(--ease), right var(--dur) var(--ease);
}
.nav-tab:hover::after,
.nav-tab.active::after { left: 14px; right: 14px; }

/* Mobile menu — slide + fade */
.mobile-menu {
  display: flex !important;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility 0s linear var(--dur);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1; visibility: visible;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility 0s linear 0s;
}
.mobile-link { transition: background var(--dur-quick) var(--ease), color var(--dur-quick) var(--ease), padding-left var(--dur-quick) var(--ease); }
.mobile-link:hover { padding-left: 32px; }
.hamburger span { transition: transform var(--dur-quick) var(--ease), opacity var(--dur-quick) var(--ease); }

/* ===== HERO — entrance stagger ===== */
@keyframes fc-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fc-fade {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes fc-slide-right {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fc-shimmer {
  0%   { transform: translateX(-105%); }
  100% { transform: translateX(105%); }
}

.hero-logo, .hero-title, .hero-sub, .hero-btns {
  opacity: 0;
  animation: fc-fade-up 900ms var(--ease) forwards;
}
.hero-logo  { animation-delay: 120ms; }
.hero-title { animation-delay: 340ms; }
.hero-sub   { animation-delay: 540ms; }
.hero-btns  { animation-delay: 740ms; }

/* Solid burgundy hero — vignette-only depth so #4C0D0D reads uniform */
.hero-bg {
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(51, 8, 8, 0.55) 100%),
    var(--burg);
  animation: fc-fade 1200ms var(--ease) both;
}

/* Hero button — cream sheen sweep on hover (burg bg → cream tint) */
.hero-btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              letter-spacing var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.hero-btn::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(201, 168, 76, 0.22) 45%, rgba(201, 168, 76, 0.4) 50%, rgba(201, 168, 76, 0.22) 55%, transparent 100%);
  transform: translateX(-105%);
  transition: transform 900ms var(--ease);
}
.hero-btn:hover {
  border-color: var(--cream-lt);
  color: var(--cream-lt);
  letter-spacing: .18em;
  background: rgba(245, 240, 232, 0.1);
}
.hero-btn:hover::before { transform: translateX(105%); }
.hero-btn:active { transform: translateY(1px); }

/* ===== SOCIAL SIDEBAR ===== */
.social-sidebar { animation: fc-slide-right 700ms var(--ease) 700ms both; }
.social-btn { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.social-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

/* ===== SIG CARDS (BST) ===== */
.sig-card {
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.sig-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.7);
  background: rgba(201, 168, 76, 0.08);
  box-shadow: var(--glow-gold);
}
.sig-icon { transition: transform var(--dur) var(--ease); }
.sig-card:hover .sig-icon { transform: scale(1.08) rotate(-3deg); }
.sig-cta { display: inline-block; transition: letter-spacing var(--dur) var(--ease); }
.sig-card:hover .sig-cta { letter-spacing: .2em; }

/* ===== VP CARDS ===== */
.vp-card {
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.vp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.4);
}
.vp-img { position: relative; }
.vp-img img { transition: transform var(--dur-slow) var(--ease); }
.vp-card:hover .vp-img img { transform: scale(1.06); }
.vp-info h4 { transition: color var(--dur) var(--ease); }
.vp-card:hover .vp-info h4 { color: var(--gold); }

/* ===== GALLERY ===== */
.g-item { position: relative; cursor: zoom-in; background: rgba(0, 0, 0, 0.02); }
.g-item img { transition: transform 800ms var(--ease); }
.g-item:hover img { transform: scale(1.08); }
.g-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0), rgba(76, 13, 13, 0));
  transition: background var(--dur) var(--ease);
  pointer-events: none;
}
.g-item:hover::after {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06), rgba(76, 13, 13, 0.18));
}

/* ===== SWATCHES ===== */
.sw { transition: transform var(--dur-quick) var(--ease); cursor: pointer; }
.sw:hover { transform: translateY(-2px); }
.sw-dot { transition: transform var(--dur-quick) var(--ease), box-shadow var(--dur-quick) var(--ease); }
.sw:hover .sw-dot {
  transform: scale(1.12);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(201, 168, 76, 0.4);
}
.sw span { transition: color var(--dur-quick) var(--ease); }
.sw:hover span { color: var(--burg); }

/* ===== SHAPES (dáng hộp) ===== */
.sh { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.sh:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(76, 13, 13, 0.28); }

/* ===== POLICY CARDS ===== */
.policy-card { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.policy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lux); }

/* ===== INVITE SCENES ===== */
.invite-scene { transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease); }
.invite-scene:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(40, 20, 20, 0.42);
}

/* ===== TEMPLATE GALLERY ===== */
.template-gallery-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  color: var(--burg);
  text-align: center;
  margin-top: 40px;
  letter-spacing: .02em;
}
.template-gallery-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: .9rem;
  color: var(--txt-mid);
  text-align: center;
  margin-top: 6px; margin-bottom: 26px;
}
.invite-grid.template-gallery {
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.tpl-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.tpl-card .tpl-cta {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 8px 22px;
  background: var(--cream-lt);
  color: var(--burg);
  font-family: var(--sans);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
}
.tpl-card .tpl-cta.light { background: var(--gold-lt); color: var(--burg-dark); }
.tpl-card:hover .tpl-cta,
.tpl-card:focus-visible .tpl-cta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 640px) {
  .invite-grid.template-gallery { grid-template-columns: 1fr; }
  .tpl-card .tpl-cta { opacity: 1; transform: translateX(-50%) translateY(0); bottom: 40px; }
}

/* ===== GIFT ITEMS ===== */
.gift-item { transition: background var(--dur) var(--ease); }
.gift-item:hover { background: rgba(76, 13, 13, 0.025); }
.gift-img img { transition: transform var(--dur-slow) var(--ease); }
.gift-item:hover .gift-img img { transform: scale(1.05); }

/* ===== GALLERY NAV LINKS ===== */
.gallery-nav-next a, .gallery-nav-back a {
  transition: color var(--dur) var(--ease), letter-spacing var(--dur) var(--ease);
}
.gallery-nav-next a:hover, .gallery-nav-back a:hover { letter-spacing: .03em; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 90ms; }
.reveal.delay-2 { transition-delay: 180ms; }
.reveal.delay-3 { transition-delay: 270ms; }

/* Card-level stagger inside grids (lighter, no big translate) */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.reveal-item.in { opacity: 1; transform: none; }

/* ===== HEADING LINE — draw from center ===== */
.heading-line.reveal {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1000ms var(--ease), opacity 1000ms var(--ease);
}
.heading-line.reveal.in { transform: scaleX(1); }

/* ===== WORD-BY-WORD REVEAL for headings ===== */
.has-words { opacity: 1 !important; transform: none !important; }
.has-words .word {
  display: inline-block;
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 800ms var(--ease),
              transform 800ms var(--ease),
              filter 800ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.in .word, .has-words.in .word, .has-words .word { opacity: 1; transform: none; filter: none; }

/* ===== PAGE ENTRANCE — main fade-in (non-home) ===== */
@keyframes fc-page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
main { animation: fc-page-in 600ms var(--ease) both; }
main:has(.hero) { animation: none; }

/* ===== HERO SPOTLIGHT (disabled) ===== */
.hero-bg::after { display: none; }

/* ===== PAGE TRANSITION — burgundy circle bloom from click point ===== */
.page-cover {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; overflow: hidden;
  contain: strict;
}
.pc-circle {
  position: absolute; inset: -2px;
  background:
    radial-gradient(circle at 30% 25%, rgba(201, 168, 76, 0.18), transparent 55%),
    linear-gradient(135deg, var(--burg-dark) 0%, var(--burg) 55%, var(--burg-mid) 100%);
  clip-path: circle(0% at var(--px, 50%) var(--py, 50%));
  transition: clip-path 620ms cubic-bezier(0.83, 0, 0.17, 1);
  will-change: clip-path;
}
.pc-brand {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  letter-spacing: .4em;
  color: rgba(212, 175, 55, 0.85);
  text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 260ms var(--ease) 200ms, transform 400ms var(--ease) 200ms;
  pointer-events: none;
}
.pc-brand::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: rgba(212, 175, 55, 0.6);
  margin: 12px auto 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 500ms var(--ease) 320ms;
}
.page-cover.cover-in .pc-circle {
  clip-path: circle(160% at var(--px, 50%) var(--py, 50%));
}
.page-cover.cover-in .pc-brand {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}
.page-cover.cover-in .pc-brand::after { transform: scaleX(1); }

/* Pre-covered on inbound page (before reveal-out kicks off) */
.page-cover.covered .pc-circle {
  clip-path: circle(160% at var(--px, 50%) var(--py, 50%));
  transition: none;
}
.page-cover.covered .pc-brand {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
  transition: none;
}
.page-cover.covered .pc-brand::after { transform: scaleX(1); transition: none; }

/* Phủ sẵn từ <head> khi vừa chuyển trang — script.js thay bằng .page-cover rồi rút ra.
   Chốt an toàn: lỡ script lỗi, sau 3 giây tự ẩn để không kẹt màn hình đỏ. */
html.fc-arriving::before, html.fc-arriving::after { position: fixed; z-index: 9998; pointer-events: none; animation: fc-arrive-safety 0s 3s forwards; }
html.fc-arriving::before {
  content: ""; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(201, 168, 76, 0.18), transparent 55%),
    linear-gradient(135deg, var(--burg-dark) 0%, var(--burg) 55%, var(--burg-mid) 100%);
}
html.fc-arriving::after {
  content: "Flower Core"; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.6rem); letter-spacing: .4em;
  color: rgba(212, 175, 55, 0.85); text-transform: uppercase; white-space: nowrap;
  /* gạch nhỏ dưới chữ, cùng vị trí với .pc-brand::after để lúc nối 2 lớp phủ không nhích */
  padding-bottom: 13px; background: linear-gradient(rgba(212, 175, 55, 0.6), rgba(212, 175, 55, 0.6)) no-repeat center bottom / 40px 1px;
}
@keyframes fc-arrive-safety { to { visibility: hidden; } }

/* Reveal-out — circle shrinks + brand fades */
.page-cover.reveal-out .pc-circle {
  clip-path: circle(0% at var(--px, 50%) var(--py, 50%));
  transition: clip-path 780ms cubic-bezier(0.83, 0, 0.17, 1);
}
.page-cover.reveal-out .pc-brand {
  opacity: 0; transform: translate(-50%, -50%) scale(1.05);
  transition: opacity 300ms var(--ease), transform 500ms var(--ease);
}

/* ===== 3D MOUSE TILT — sig cards + invite scenes ===== */
.sig-cards-grid { perspective: 1200px; }
.sig-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.sig-card .sig-icon,
.sig-card h3,
.sig-card p,
.sig-card .sig-cta {
  transform: translateZ(20px);
}
.sig-card .sig-icon { transform: translateZ(40px); }

/* ===== GALLERY & CARD REVEAL ===== */
.g-item.reveal-item, .g-item {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0) !important;
}
.vp-card.reveal-item, .vp-card {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0) !important;
}

/* ===== BACK-TO-TOP ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--burg); color: var(--cream-lt);
  border: 1px solid rgba(201, 168, 76, 0.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 950;
  box-shadow: 0 12px 26px -10px rgba(76, 13, 13, 0.55);
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.back-to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--burg-mid); transform: translateY(-3px) scale(1.06); }
.back-to-top svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(20, 8, 8, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream-lt);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-quick) var(--ease), transform var(--dur-quick) var(--ease);
}
.lightbox-close {
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  font-size: 1.2rem; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); transform: rotate(90deg); }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 0; right: 0;
  text-align: center;
  font-family: var(--serif); font-style: italic;
  color: rgba(245, 240, 232, 0.75); font-size: .85rem;
  letter-spacing: .04em;
}
@media (max-width: 640px) {
  .lightbox { padding: 20px; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ===== BST NAV LINK — subtle underline ===== */
.bst-nav-link {
  position: relative;
  transition: color var(--dur-quick) var(--ease);
}
.bst-nav-link::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 1px; background: var(--gold);
  transition: right var(--dur) var(--ease);
}
.bst-nav-link:hover::after { right: 0; }

/* ===== SUB TABS (silk / paper collections) ===== */
.sub-tabs .nav-tab::after { background: var(--gold); }

/* ===== AMBIENT PARTICLE CANVAS ===== */
#ambientParticles {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* ===== HERO LOGO BREATHING & SHINE ===== */
@keyframes heroLogoBreathing {
  0%, 100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.15)); }
  50% { transform: scale(1.025) translateY(-6px); filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.35)); }
}
.hero-logo-img {
  animation: heroLogoBreathing 7s ease-in-out infinite;
  transition: transform 0.5s ease;
}
.hero-logo-img:hover {
  transform: scale(1.03);
}

/* ===== HERO BUTTON SHIMMER SWEEP ===== */
.hero-btn {
  position: relative;
  overflow: hidden;
  transition: border-color 400ms var(--ease), color 400ms var(--ease), background 400ms var(--ease), transform 300ms var(--ease), box-shadow 400ms var(--ease);
}
.hero-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(25deg);
  transition: none;
}
.hero-btn:hover::after {
  left: 125%;
  transition: left 750ms cubic-bezier(0.19, 1, 0.22, 1);
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ===== HEADING HOVER GLOW ===== */
.script-heading, .heading-serif {
  transition: color 400ms var(--ease), text-shadow 400ms var(--ease);
}
.script-heading:hover, .heading-serif:hover {
  text-shadow: 0 0 16px rgba(201, 168, 76, 0.4);
}

/* ===== HEADING LINE GLOW ENDPOINTS ===== */
.heading-line {
  position: relative;
  overflow: visible;
}
.heading-line::before, .heading-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-lt);
  transform: translateY(-50%) scale(0);
  transition: transform 600ms var(--ease) 800ms;
}
.heading-line::before { left: -3px; }
.heading-line::after { right: -3px; }
.heading-line.reveal.in::before, .heading-line.reveal.in::after {
  transform: translateY(-50%) scale(1);
}

/* ===== SIGNATURE CARD GOLD SHIMMER BORDER & HOVER ===== */
.sig-card {
  position: relative;
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color 500ms var(--ease);
}
.sig-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.45), transparent 60%, rgba(212, 175, 55, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 500ms var(--ease);
  pointer-events: none;
}
.sig-card:hover::before { opacity: 1; }
.sig-card:hover {
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 168, 76, 0.22);
}

/* ===== PRODUCT & GIFT CARD IMAGE SHEEN ===== */
.vp-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.vp-card .vp-img {
  position: relative;
  overflow: hidden;
}
.vp-card .vp-img img {
  transition: transform 700ms cubic-bezier(0.25, 1, 0.5, 1), filter 500ms var(--ease);
}
.vp-card:hover .vp-img img {
  transform: scale(1.08);
  filter: brightness(1.05);
}
.vp-card .vp-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 850ms cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}
.vp-card:hover .vp-img::after {
  transform: translateX(100%);
}

/* ===== WEDDING INVITATION SCENE HOVER ===== */
.invite-scene {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease), border-color 600ms var(--ease);
}
.invite-scene:hover {
  border-color: rgba(201, 168, 76, 0.6);
  box-shadow: 0 25px 55px rgba(76, 13, 13, 0.35), 0 0 30px rgba(201, 168, 76, 0.25);
}

/* ===== FLOATING SOCIAL SIDEBAR ===== */
@keyframes floatingSocial {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 6px)); }
}
.social-sidebar {
  animation: floatingSocial 4s ease-in-out infinite;
}
.social-btn {
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.social-btn:hover {
  transform: scale(1.15) rotate(3deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(201, 168, 76, 0.4);
}

/* ===== BACK TO TOP BEACON PULSE ===== */
@keyframes bttPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(201, 168, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}
.back-to-top.show {
  animation: bttPulseRing 2.8s infinite;
}

/* ===== RIPPLE ANIMATION ON CLICK ===== */
.fc-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: fcRippleAnim 600ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
  pointer-events: none;
}
@keyframes fcRippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Ensure animations always display smoothly */




/* ===== Bảng màu vải trên điện thoại: chấm to hơn, tên màu đọc được ===== */
@media (max-width: 560px) {
  .swatches { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px 6px; width: 100%; }
  .sw-dot { width: 44px; height: 44px; }
  .sw span { font-size: .64rem; max-width: 62px; line-height: 1.2; }
}

/* ===== Logo thương hiệu trên thanh menu — chỉ hiện ở màn hẹp (màn rộng đã có tab "Flower Core") ===== */
.nav-brand { display: none; align-items: center; gap: 9px; text-decoration: none; color: var(--burg); }
.nav-brand .nb-icon { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; transform: scale(1.25); }
.nb-text { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.15rem; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.nb-text small { display: block; margin-top: 2px; font-family: "Great Vibes", cursive; font-size: .92rem; font-weight: 400; letter-spacing: 0; color: #A8862F; }
@media (max-width: 820px) {
  .navbar { justify-content: flex-start !important; padding-left: 16px; }
  .nav-brand { display: flex; }
}
