/* ==========================================================================
   Wici Flower — "Bàn gói hoa" (trang chủ, layouts/wici-brand). Thiết kế: docs/design/flower.DESIGN.md
   Prefix wxh- để CSS còn sót sau soft-nav không đè nhánh khác. Token màu ở wx/shell.css [data-brand-theme="flower"].
   ========================================================================== */

.wx-body[data-brand-theme="flower"] .wx-logo-mark { font-weight: 600; letter-spacing: -0.03em; }
.wx-body[data-brand-theme="flower"] .wx-logo-sub { font-family: var(--wx-font-body); }

.wxh-home { overflow-x: clip; }
.wxh-home :where(h1, h2, h3) { font-variation-settings: 'SOFT' 50; }
.wxh-home em { font-style: italic; }

.wxh-sec { padding-block: clamp(56px, 7vw, 104px); }
.wxh-recipients { padding-top: 0; }
.wxh-h2 {
  margin: 0; max-width: 18ch;
  font: 400 clamp(2rem, 3.6vw, 3.1rem)/1.04 var(--wx-font-display);
  letter-spacing: -0.025em; color: var(--wx-ink); text-wrap: balance;
}
.wxh-h2 em { color: var(--wx-primary); }
.wxh-lede { margin: 0; max-width: 52ch; color: var(--wx-ink-2); font-size: 17px; line-height: 1.65; }
.wxh-eyebrow {
  margin: 0; color: var(--wx-ink-2); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.wxh-eyebrow::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%;
  background: var(--wx-accent); vertical-align: 1px;
}
.wxh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.wxh-head--stack { flex-direction: column; align-items: flex-start; gap: 16px; }
.wxh-head .wx-link { flex-shrink: 0; }
.wx-link .wx-arrow { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   1. Hero — chữ trái, panel mận + xấp ảnh phải
   -------------------------------------------------------------------------- */
.wxh-hero { padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.wxh-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: min(760px, calc(100svh - var(--wx-topbar-h) - 48px));
}
.wxh-hero-title {
  margin: 0; max-width: 11ch;
  font: 400 clamp(2.7rem, 5.6vw, 5rem)/1.02 var(--wx-font-display);
  letter-spacing: -0.03em; color: var(--wx-ink); text-wrap: balance;
}
.wxh-hero-title em { color: var(--wx-primary); }
.wxh-hero-lede { margin: 28px 0 0; max-width: 40ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--wx-ink-2); }
.wxh-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.wxh-hero-panel {
  position: relative; display: block; aspect-ratio: 1 / 1.02; border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 10%, rgba(236, 91, 127, .22), transparent 60%),
    var(--wx-primary);
  color: var(--wx-on-primary); text-decoration: none; isolation: isolate;
  perspective: 1400px;
}
.wxh-fan { position: absolute; inset: 0; transform-style: preserve-3d; }
.wxh-fan-card {
  position: absolute; left: 24%; top: 8%; width: 52%; aspect-ratio: 4 / 5; margin: 0;
  padding: 8px; border-radius: 20px; background: var(--wx-surface);
  box-shadow: 0 30px 50px -24px rgba(20, 4, 10, .7);
}
.wxh-fan-card::after { content: ''; position: absolute; inset: 8px; border-radius: 13px; box-shadow: inset 0 0 0 1px rgba(43, 21, 25, .08); pointer-events: none; }
.wxh-fan-card img {
  position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px);
  object-fit: cover; border-radius: 13px; background: var(--wx-surface-2);
}
.wxh-fan-card.is-left { transform: translateX(-46%) rotate(-11deg); }
.wxh-fan-card.is-right { transform: translateX(46%) rotate(9deg); }
.wxh-fan-card.is-left, .wxh-fan-card.is-right { width: 44%; left: 28%; top: 13%; }
.wxh-fan-card.is-front { z-index: 2; }
.wxh-layer { opacity: 0; transition: opacity 1.1s ease, scale 6s linear; scale: 1.06; }
.wxh-layer.is-on { opacity: 1; scale: 1; }
.wxh-hero-caption {
  position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 3; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.wxh-hero-caption small { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.wxh-hero-caption span {
  font: italic 400 clamp(1.15rem, 1.8vw, 1.5rem)/1.2 var(--wx-font-display);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wxh-hero-caption small::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
  background: var(--wx-accent); vertical-align: 1px;
}

@media (max-width: 900px) {
  .wxh-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .wxh-hero-panel { order: -1; aspect-ratio: 5 / 4; max-height: 50svh; width: 100%; }
  .wxh-fan-card { left: 33%; top: 8%; width: 34%; }
  .wxh-fan-card.is-left, .wxh-fan-card.is-right { width: 29%; left: 35.5%; top: 13%; }
  .wxh-hero-caption { left: 20px; bottom: 16px; }
  .wxh-hero-title { max-width: none; }
  .wxh-hero-lede { margin-top: 18px; }
  .wxh-hero-cta { margin-top: 26px; }
}
@media (max-width: 480px) {
  .wxh-hero-panel { aspect-ratio: 1 / 1; border-radius: 24px; }
  .wxh-fan-card { left: 26%; top: 9%; width: 48%; padding: 6px; }
  .wxh-fan-card img, .wxh-fan-card::after { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
  .wxh-fan-card.is-left, .wxh-fan-card.is-right { width: 40%; left: 30%; top: 14%; }
  .wxh-hero-cta .wx-btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   2. Tặng ai — bento 1 lớn + 3 nhỏ
   -------------------------------------------------------------------------- */
.wxh-bento {
  display: grid; gap: 16px;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(260px, 1fr));
}
.wxh-bento > :first-child { grid-row: 1 / 3; }
.wxh-bento > :nth-child(4) { grid-column: 2 / 4; }
/* GSAP (data-m="stagger") ghi transform lên thẻ → hover dùng thuộc tính riêng, không transition transform */
.wxh-recipient {
  position: relative; display: flex; align-items: flex-end; min-height: 260px; padding: 24px;
  border-radius: var(--wx-radius-card); overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none; background: var(--wx-surface-2);
}
.wxh-recipient img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: scale .9s var(--wx-ease);
}
.wxh-recipient::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 38%, rgba(32, 8, 16, .78));
}
.wxh-recipient:hover img { scale: 1.05; }
.wxh-recipient-body { display: grid; gap: 4px; max-width: 30ch; }
.wxh-recipient-body small { font-size: 13px; font-weight: 500; opacity: .82; }
.wxh-recipient-body strong { font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.08 var(--wx-font-display); letter-spacing: -0.02em; }
.wxh-recipient:first-child .wxh-recipient-body strong { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.wxh-recipient-body q { margin-top: 6px; font: italic 400 1.02rem/1.4 var(--wx-font-display); opacity: .9; quotes: '“' '”'; }
.wxh-recipient-go {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(253, 249, 248, .92); color: var(--wx-ink);
  transition: background .25s, color .25s, rotate .35s var(--wx-ease);
}
.wxh-recipient-go svg { width: 18px; height: 18px; }
.wxh-recipient:hover .wxh-recipient-go { background: var(--wx-accent); rotate: -45deg; }

@media (max-width: 768px) {
  .wxh-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .wxh-bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 12px; }
  .wxh-bento > :first-child { grid-row: auto; grid-column: 1 / -1; min-height: 340px; }
  .wxh-bento > :nth-child(4) { grid-column: 1 / -1; }
  .wxh-recipient { min-height: 230px; padding: 16px; }
  .wxh-recipient-go { width: 36px; height: 36px; top: 12px; right: 12px; }
  .wxh-recipient-body q { font-size: .92rem; }
}

/* --------------------------------------------------------------------------
   3. Lookbook — hàng ảnh chạy + lưới tone + hộp xem nhanh
   -------------------------------------------------------------------------- */
.wxh-look { padding-bottom: clamp(56px, 7vw, 96px); }
.wxh-reel { display: grid; gap: 14px; margin-bottom: clamp(56px, 7vw, 96px); }
.wxh-reel-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wxh-reel-track {
  display: flex; gap: 14px; width: max-content;
  animation: wxh-reel calc(var(--n, 12) * 4.5s) linear infinite;
}
.wxh-reel-row.is-reverse .wxh-reel-track { animation-direction: reverse; }
.wxh-reel-row:hover .wxh-reel-track, .wxh-reel-row:focus-within .wxh-reel-track { animation-play-state: paused; }
@keyframes wxh-reel { to { transform: translateX(calc(-50% - 7px)); } }
.wxh-reel-card {
  position: relative; flex: 0 0 auto; width: 200px; aspect-ratio: 4 / 5; padding: 0; border: 0;
  border-radius: 18px; overflow: hidden; background: var(--wx-surface-2); cursor: zoom-in;
}
.wxh-reel-card img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--wx-ease); }
.wxh-reel-card:hover img { scale: 1.05; }
.wxh-reel-cap {
  position: absolute; inset: auto 0 0; padding: 28px 12px 10px; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(32, 8, 16, .72));
  color: #fff; font: 500 13px/1.3 var(--wx-font-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transition: opacity .3s;
}
.wxh-reel-card:hover .wxh-reel-cap, .wxh-reel-card:focus-visible .wxh-reel-cap { opacity: 1; }
@media (hover: none) { .wxh-reel-cap { opacity: 1; } }
@media (max-width: 640px) { .wxh-reel-card { width: 150px; } .wxh-reel { gap: 10px; } .wxh-reel-track { gap: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .wxh-reel-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .wxh-reel-track { animation: none; }
}

.wxh-tone-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.wxh-tone-head h3 { margin: 0; font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.1 var(--wx-font-display); letter-spacing: -0.02em; }
.wxh-tone-head h3 em { color: var(--wx-primary); }
.wxh-tone-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.wxh-tone-tabs button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--wx-line); border-radius: 999px; background: transparent; color: var(--wx-ink);
  font: 500 14px/1 var(--wx-font-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.wxh-tone-tabs button:hover { border-color: color-mix(in srgb, var(--wx-ink) 35%, transparent); }
.wxh-tone-tabs button.is-on { background: var(--wx-ink); border-color: var(--wx-ink); color: var(--wx-bg); }
.wxh-swatch { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43, 21, 25, .18); }
.wxh-swatch.is-hong { background: #f2a7ba; }
.wxh-swatch.is-do { background: #c3233f; }
.wxh-swatch.is-trang { background: #f6f0e6; }
.wxh-swatch.is-xanh { background: #8592d6; }
.wxh-swatch.is-vang { background: #f1c24f; }

.wxh-tone-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 16px; }
.wxh-tile {
  position: relative; display: grid; gap: 10px; padding: 0; border: 0; background: none; text-align: left;
  color: var(--wx-ink); cursor: zoom-in; transition: opacity .22s, translate .22s;
}
.wxh-tile[hidden] { display: none; }
.wxh-tile.is-out { opacity: 0; translate: 0 8px; }
.wxh-tile.is-in { animation: wxh-tile-in .55s var(--wx-ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes wxh-tile-in { from { opacity: 0; translate: 0 14px; } }
.wxh-tile-media { display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--wx-surface-2); }
.wxh-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--wx-ease); }
.wxh-tile:hover .wxh-tile-media img { scale: 1.04; }
.wxh-tile-cap { font-size: 14.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wxh-tile-zoom {
  position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(253, 249, 248, .92); font-size: 12.5px; font-weight: 600;
  opacity: 0; translate: 0 -4px; transition: opacity .25s, translate .25s;
}
.wxh-tile:hover .wxh-tile-zoom, .wxh-tile:focus-visible .wxh-tile-zoom { opacity: 1; translate: 0 0; }
.wxh-tone-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }
.wxh-tone-more [hidden] { display: none; }
.wxh-searches { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 18px; margin-top: 36px; font-size: 14px; }
.wxh-searches span { color: var(--wx-ink-2); }
.wxh-searches a { color: var(--wx-ink); text-decoration: underline; text-decoration-color: var(--wx-line); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.wxh-searches a:hover { text-decoration-color: var(--wx-accent); }
@media (max-width: 1100px) { .wxh-tone-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .wxh-tone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .wxh-tone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .wxh-tone-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--wx-gutter) * -1); padding-inline: var(--wx-gutter); scrollbar-width: none; }
  .wxh-tone-tabs button { flex-shrink: 0; }
  .wxh-tile-cap { font-size: 14px; }
}

/* Hộp xem nhanh (được chuyển ra <body> khi mở) */
html.wxh-lock { overflow: hidden; }
.wxh-viewer {
  position: fixed; inset: 0; z-index: 10010; display: grid; place-items: center; padding: 24px;
  font-family: var(--wx-font-body); color: var(--wx-ink);
}
.wxh-viewer[hidden] { display: none; }
.wxh-viewer-backdrop {
  position: absolute; inset: 0; background: rgba(32, 8, 16, .58);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .26s;
}
.wxh-viewer-box {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: min(1000px, 100%); height: min(680px, calc(100dvh - 48px));
  border-radius: 28px; overflow: hidden; background: var(--wx-surface); box-shadow: var(--wx-shadow);
  opacity: 0; translate: 0 16px; scale: .98; transition: opacity .26s, translate .35s var(--wx-ease), scale .35s var(--wx-ease);
}
.wxh-viewer.is-open .wxh-viewer-backdrop { opacity: 1; }
.wxh-viewer.is-open .wxh-viewer-box { opacity: 1; translate: 0 0; scale: 1; }
.wxh-viewer-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(253, 249, 248, .92); color: var(--wx-ink); cursor: pointer;
}
.wxh-viewer-media { position: relative; min-height: 0; background: var(--wx-surface-2); }
.wxh-viewer-stage { height: 100%; overflow: hidden; touch-action: pan-y; }
.wxh-viewer-track { display: flex; height: 100%; transition: transform .45s var(--wx-ease); }
.wxh-viewer-track figure { flex: 0 0 100%; margin: 0; }
.wxh-viewer-track img { width: 100%; height: 100%; object-fit: cover; }
.wxh-viewer-nav {
  position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(253, 249, 248, .9); color: var(--wx-ink);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.wxh-viewer-nav.is-prev { left: 14px; }
.wxh-viewer-nav.is-next { right: 14px; }
.wxh-viewer-nav[hidden], .wxh-viewer-dots[hidden] { display: none; }
.wxh-viewer-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.wxh-viewer-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.wxh-viewer-dots i.is-on { width: 18px; border-radius: 3px; background: #fff; }
.wxh-viewer-info { display: flex; flex-direction: column; gap: 16px; min-height: 0; padding: 36px 32px 24px; overflow-y: auto; }
.wxh-viewer-box.is-swap .wxh-viewer-info > * { animation: wxh-tile-in .45s var(--wx-ease) both; }
.wxh-viewer-info > small { color: var(--wx-ink-2); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.wxh-viewer-info h3 { margin: -8px 0 0; padding-right: 40px; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--wx-font-display); letter-spacing: -0.02em; }
.wxh-viewer-promise { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--wx-ink-2); font-size: 15px; }
.wxh-viewer-promise li { display: flex; align-items: baseline; gap: 10px; }
.wxh-viewer-promise li::before { content: ''; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--wx-accent); translate: 0 -1px; }
.wxh-viewer-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.wxh-viewer-thumbs:empty { display: none; }
.wxh-viewer-thumbs button {
  width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 12px; cursor: pointer;
  background: var(--wx-surface-2) center / cover no-repeat; opacity: .65; transition: opacity .2s, border-color .2s;
}
.wxh-viewer-thumbs button.is-on { opacity: 1; border-color: var(--wx-primary); }
.wxh-viewer-actions { display: grid; gap: 10px; margin-top: auto; }
.wxh-viewer-contact { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--wx-bg); }
.wxh-viewer-contact > p { margin: 0; font-weight: 600; font-size: 14.5px; }
.wxh-viewer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.wxh-viewer-socials a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--wx-line); border-radius: 999px; background: var(--wx-surface);
  color: var(--wx-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s;
}
.wxh-viewer-socials a:hover { border-color: var(--wx-primary); }
.wxh-viewer-hint { margin: 0; color: var(--wx-ink-2); font-size: 13px; line-height: 1.5; }
.wxh-viewer-step { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--wx-line); }
.wxh-viewer-step button { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--wx-ink-2); font: 500 14px var(--wx-font-body); cursor: pointer; }
.wxh-viewer-step button:hover { color: var(--wx-ink); }
@media (max-width: 760px) {
  .wxh-viewer { padding: 0; place-items: end stretch; }
  .wxh-viewer-box { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: auto; max-height: 92dvh; border-radius: 24px 24px 0 0; }
  /* Ảnh thấp lại để phần đặt hàng vừa màn hình đầu; hàng "Bó trước / Bó tiếp" ghim đáy hộp (không phải cuộn mới thấy). */
  .wxh-viewer-media { height: clamp(220px, 40dvh, 360px); }
  .wxh-viewer-info { padding: 18px 20px 0; gap: 12px; }
  .wxh-viewer-info h3 { font-size: 1.5rem; }
  .wxh-viewer-promise { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
  .wxh-viewer-contact { gap: 8px; padding: 12px; }
  .wxh-viewer-socials { flex-wrap: nowrap; gap: 6px; }
  .wxh-viewer-socials a { flex: 1 1 0; justify-content: center; min-height: 38px; padding: 0 8px; font-size: 13.5px; }
  .wxh-viewer-hint { font-size: 12.5px; }
  .wxh-viewer-actions .wx-btn { min-height: 44px; }
  .wxh-viewer-step {
    position: sticky; bottom: 0; z-index: 1; margin: 0 -20px; padding: 6px 20px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--wx-surface);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wxh-viewer-box, .wxh-viewer-backdrop, .wxh-viewer-track { transition: none; }
  .wxh-viewer-box.is-swap .wxh-viewer-info > *, .wxh-tile.is-in { animation: none; }
}

/* --------------------------------------------------------------------------
   4. Dải mận — 3 bước
   -------------------------------------------------------------------------- */
.wxh-plan {
  margin-inline: clamp(8px, 1.4vw, 20px); padding-block: clamp(72px, 9vw, 128px);
  border-radius: clamp(28px, 3vw, 40px); background: var(--wx-primary); color: var(--wx-on-primary);
}
.wxh-plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.wxh-plan .wxh-h2 { color: var(--wx-on-primary); }
.wxh-plan .wxh-h2 em { color: var(--wx-accent); }
.wxh-plan .wxh-lede { margin-top: 22px; color: rgba(248, 234, 237, .74); }
.wxh-plan-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.wxh-btn-ribbon { background: var(--wx-accent); color: var(--wx-on-accent); }
.wxh-btn-ribbon:hover { background: #f27896; }
.wxh-btn-line { border-color: rgba(248, 234, 237, .3); color: var(--wx-on-primary); background: transparent; }
.wxh-btn-line:hover { border-color: rgba(248, 234, 237, .7); }
.wxh-steps { margin: 0; padding: 0; list-style: none; }
.wxh-steps li {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 20px; padding: 28px 0;
  border-top: 1px solid rgba(248, 234, 237, .16);
}
.wxh-steps li:last-child { border-bottom: 1px solid rgba(248, 234, 237, .16); }
.wxh-step-num {
  grid-row: 1 / 3; font: italic 400 clamp(3.2rem, 5vw, 4.4rem)/.9 var(--wx-font-display);
  color: var(--wx-accent); font-variant-numeric: tabular-nums;
}
.wxh-steps h3 { margin: 4px 0 8px; font: 400 clamp(1.35rem, 2vw, 1.7rem)/1.15 var(--wx-font-display); letter-spacing: -0.015em; }
.wxh-steps p { margin: 0; max-width: 46ch; color: rgba(248, 234, 237, .74); line-height: 1.6; }
@media (max-width: 860px) {
  .wxh-plan-grid { grid-template-columns: 1fr; }
  .wxh-steps li { grid-template-columns: 56px minmax(0, 1fr); padding: 22px 0; }
}

/* --------------------------------------------------------------------------
   5. Stylist AI — lời mời + phiếu
   -------------------------------------------------------------------------- */
.wxh-stylist { scroll-margin-top: calc(var(--wx-topbar-h) + 12px); }
.wxh-stylist-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.wxh-stylist-intro .wxh-lede { margin-top: 22px; }
.wxh-ask { margin-top: 36px; }
.wxh-ask > p { margin: 0 0 12px; color: var(--wx-ink-2); font-size: 14px; font-weight: 600; }
.wxh-ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wxh-chip {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--wx-line); border-radius: 999px;
  background: transparent; color: var(--wx-ink); font: 500 14px/1 var(--wx-font-body); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.wxh-chip:hover { background: var(--wx-surface); border-color: color-mix(in srgb, var(--wx-ink) 35%, transparent); }

.wxh-note {
  position: relative; padding: 48px clamp(20px, 3vw, 40px) clamp(24px, 3vw, 36px);
  border: 1px solid var(--wx-line); border-radius: 28px; background: var(--wx-surface); box-shadow: var(--wx-shadow);
}
.wxh-note-hole {
  position: absolute; top: 18px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--wx-bg); box-shadow: inset 0 1px 2px rgba(43, 21, 25, .25), 0 0 0 4px var(--wx-surface), 0 0 0 5px var(--wx-line);
}
.wxh-note-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.wxh-note-title { grid-column: 1 / -1; margin: 0 0 4px; text-align: center; font: italic 400 1.6rem/1.2 var(--wx-font-display); }
.wxh-field { display: grid; gap: 6px; min-width: 0; }
.wxh-field--wide { grid-column: 1 / -1; }
.wxh-field > span { color: var(--wx-ink-2); font-size: 13px; font-weight: 600; }
.wxh-field input, .wxh-field select {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--wx-line); border-radius: 14px;
  background: var(--wx-bg); color: var(--wx-ink); font: 400 15px var(--wx-font-body);
  transition: border-color .2s, background .2s;
}
.wxh-field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--wx-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e565b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.wxh-field input::placeholder { color: color-mix(in srgb, var(--wx-ink-2) 70%, transparent); }
.wxh-field input:hover, .wxh-field select:hover { border-color: color-mix(in srgb, var(--wx-ink) 30%, transparent); }
.wxh-field input:focus-visible, .wxh-field select:focus-visible { outline: 2px solid var(--wx-focus); outline-offset: 1px; background-color: var(--wx-surface); }
.wxh-note-form .wx-btn { margin-top: 8px; width: 100%; }
.wxh-note-form .wx-btn[disabled] { opacity: .65; cursor: progress; }

.wxh-mood-output { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--wx-line); }
.wxh-mood-output h3 { margin: 0 0 6px; font: 400 1.6rem/1.15 var(--wx-font-display); }
.wxh-mood-output > p { margin: 0; color: var(--wx-ink-2); }
.wxh-mood-output .mood-palette { display: flex; gap: 6px; margin: 16px 0; }
.wxh-mood-output .mood-palette span { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43, 21, 25, .15); }
.wxh-mood-output .product-detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wxh-mood-output .product-detail-item { padding: 14px; border-radius: 14px; background: var(--wx-bg); }
.wxh-mood-output .product-detail-item strong { display: block; margin-bottom: 4px; color: var(--wx-ink-2); font-size: 12.5px; font-weight: 600; }
.wxh-mood-output .product-detail-item p, .wxh-mood-output .product-detail-item ul { margin: 0; font-size: 14.5px; line-height: 1.55; }
.wxh-mood-output .product-detail-item ul { padding-left: 1.1em; }
.wxh-mood-output .wj-btn {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; padding: 0 20px;
  border: 1px solid var(--wx-line); border-radius: 999px; color: var(--wx-ink); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.wxh-mood-output .wj-btn:hover { border-color: var(--wx-primary); }
.wxh-mood-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #fbe4e6; color: #8f1d2c; font-size: 14px; }
@media (max-width: 900px) { .wxh-stylist-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .wxh-note-form { grid-template-columns: 1fr; }
  .wxh-mood-output .product-detail-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   6. Nhật ký — 1 bài lớn + danh sách
   -------------------------------------------------------------------------- */
.wxh-journal { padding-top: 0; }
.wxh-journal-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); }
.wxh-story { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: start; padding: 24px 0; border-top: 1px solid var(--wx-line); }
.wxh-story:last-child { border-bottom: 1px solid var(--wx-line); }
.wxh-story.is-lead { grid-row: span 3; grid-template-columns: 1fr; gap: 22px; padding: 0; border: 0; align-content: start; }
.wxh-story-media { display: block; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--wx-surface-2); }
.wxh-story.is-lead .wxh-story-media { aspect-ratio: 16 / 10; border-radius: var(--wx-radius-card); }
.wxh-story-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--wx-ease); }
.wxh-story:hover .wxh-story-media img { scale: 1.04; }
.wxh-story-body small { color: var(--wx-ink-2); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.wxh-story-body h3 { margin: 6px 0 8px; font: 400 1.3rem/1.2 var(--wx-font-display); letter-spacing: -0.015em; }
.wxh-story.is-lead h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; }
.wxh-story-body h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--wx-ease); }
.wxh-story-body h3 a::after { content: ''; position: absolute; inset: 0; }
.wxh-story { position: relative; }
.wxh-story:hover h3 a { background-size: 100% 1px; }
.wxh-story-body p { margin: 0; color: var(--wx-ink-2); font-size: 15px; line-height: 1.6; }
.wxh-story:not(.is-lead) .wxh-story-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) {
  .wxh-journal-grid { grid-template-columns: 1fr; }
  .wxh-story.is-lead { grid-row: auto; padding-bottom: 28px; }
  .wxh-story { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
}

/* --------------------------------------------------------------------------
   7. Kết — câu lớn + 3 nhánh Wici
   -------------------------------------------------------------------------- */
.wxh-final { padding-top: clamp(40px, 6vw, 80px); text-align: center; }
.wxh-final-title {
  margin: 0 auto; max-width: 14ch;
  font: 400 clamp(2.6rem, 6.4vw, 5.6rem)/1 var(--wx-font-display); letter-spacing: -0.035em; text-wrap: balance;
}
.wxh-final-title em { color: var(--wx-primary); }
.wxh-final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.wxh-branches {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-top: clamp(64px, 8vw, 112px); text-align: left;
}
.wxh-branches > p { grid-column: 1 / -1; margin: 0 0 4px; color: var(--wx-ink-2); font-size: 14px; font-weight: 600; }
.wxh-branch {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 22px;
  background: #15151a; color: #f1eee8; text-decoration: none; font-size: 14px; line-height: 1.45;
}
.wxh-branch img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; transition: rotate .4s var(--wx-ease); }
.wxh-branch:hover img { rotate: -6deg; }
.wxh-branch span { display: grid; gap: 2px; min-width: 0; opacity: .86; }
.wxh-branch small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.wxh-branch strong { font-size: 16px; opacity: 1; }
/* Mỗi thẻ mang màu "thế giới" của nhánh đó (docs/design/*.DESIGN.md) */
.wxh-branch.is-coffee { background: #1e3b2d; color: #e9efe8; }
.wxh-branch.is-coffee small { color: #e3a33b; }
.wxh-branch.is-fuji { background: #0e0d0c; color: #f1eee8; }
.wxh-branch.is-fuji small { color: #ff4a3d; }
.wxh-branch.is-music { background: #0b0b0e; color: #f5f5f7; }
.wxh-branch.is-music small { color: #d4f74a; }
@media (max-width: 860px) { .wxh-branches { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Thanh đặt hoa nổi (≤ 1024px)
   -------------------------------------------------------------------------- */
.wxh-sticky { display: none; }
@media (max-width: 1024px) {
  .wxh-sticky {
    position: fixed; left: 12px; right: 84px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 60px; padding: 8px 8px 8px 16px; border-radius: 20px;
    background: color-mix(in srgb, var(--wx-primary) 95%, transparent); color: var(--wx-on-primary);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--wx-shadow);
    translate: 0 140%; opacity: 0; pointer-events: none; transition: translate .5s var(--wx-ease), opacity .3s;
  }
  .wxh-sticky.is-on { translate: 0 0; opacity: 1; pointer-events: auto; }
  .wxh-sticky-copy { display: grid; min-width: 0; line-height: 1.25; }
  .wxh-sticky-copy strong { font: 400 1.1rem var(--wx-font-display); }
  .wxh-sticky-copy small { overflow: hidden; font-size: 12px; opacity: .72; white-space: nowrap; text-overflow: ellipsis; }
  .wxh-sticky-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
    background: var(--wx-accent); color: var(--wx-on-accent); font: 600 14px var(--wx-font-body); text-decoration: none; cursor: pointer;
  }
  html.wici-chat-open .wxh-sticky { display: none; }
}
  .wxh-sticky-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .wxh-sticky-copy small { display: none; } .wxh-sticky-copy strong { font-size: 1rem; } }

/* Footer chung (partials/site-footer, site-footer.css): trang chủ đã có phần kết ngay trên → bớt khoảng cách */
.wx-body[data-brand-theme="flower"] .wf-foot { margin-top: clamp(3rem, 6vw, 5rem); }
