/* FlowCoffee - CSS nền (Option B - Agency Studio).
   Quy ước: giá trị PC viết trước; mobile trong @media (max-width: 860px). Header đổi sang menu mobile ở 1024px.
   Lớp dùng chung: .fc-wrap, .fc-sec, .fc-h2, .fc-lead, .fc-muted, .fc-pill, .fc-chip(s), .fc-grid-products, .fc-band, .fc-only-d / .fc-only-m. */

/* ---------- Token ---------- */
:root {
  --bg: #faf7f6; --bg-raised: #ffffff; --bg-sunken: #e0dddb; --bg-inverse: #161616;
  --accent: #9f8be7; --accent-alt: #ddf160; --on-accent: #161616;
  --text-strong: #161616; --text: #303030; --text-muted: #585858; --text-subtle: #b2aead; --text-inverse: #ffffff;
  --line-strong: #161616; --line: #7c7c7c; --line-subtle: #e0dddb;
  --ok: #60b358; --ok-strong: #2f7a36; --warn: #d75852;
  --font-display: "Funnel Display", "Be Vietnam Pro", system-ui, sans-serif;
  --font-sans: "Funnel Sans", "Be Vietnam Pro", system-ui, sans-serif;
  --space-xs: 10px; --space-s: 15px; --space-m: 22px; --space-l: 36px; --space-xl: 40px;
  --radius-s: 10px; --radius-m: 16px; --radius-l: 38px; --radius-xl: 60px; --radius-pill: 99px;
  --as-ease: cubic-bezier(0.23, 0.65, 0.74, 1.09); --as-fast: .1s; --as-medium: .3s; --as-slow: .6s;
  --gutter: 40px; --sec: 120px; --wrap: 1280px;
}
[data-theme="dark"] {
  --bg: #161616; --bg-raised: #1c1c1c; --bg-sunken: #0a0a0a; --bg-inverse: #faf7f6;
  --accent: #ddf160; --accent-alt: #9f8be7; --on-accent: #161616;
  --text-strong: #ffffff; --text: #acacac; --text-muted: #838383; --text-subtle: #535151; --text-inverse: #161616;
  --line-strong: #ffffff; --line: #646464; --line-subtle: #252525;
}
@media (max-width: 860px) { :root { --gutter: 20px; --sec: 72px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font-family: var(--font-display); background: var(--bg); color: var(--text); font-size: 18px; line-height: 28.8px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.fc-lock { overflow: hidden; }
img, video, svg { max-width: 100%; }
img, video { display: block; height: auto; }
a { color: var(--text-strong); text-underline-offset: 4px; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 3px; }
.fc-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bg-inverse); color: var(--text-inverse); padding: 8px 16px; border-radius: 99px; }
.fc-skip:focus { left: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Bố cục ---------- */
.fc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.fc-wrap--narrow { max-width: 880px; }
.fc-sec { padding-top: var(--sec); }
.fc-sec--sm { padding-top: 96px; }
.fc-h2 { font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -0.6px; color: var(--text-strong); }
.fc-lead { font-size: 36px; line-height: 1.2; font-weight: 600; color: var(--text-strong); }
.fc-h3 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.6px; color: var(--text-strong); }
.fc-title { font-size: 22px; line-height: 30.8px; font-weight: 600; color: var(--text-strong); }
.fc-light { font-size: 18px; line-height: 28.8px; font-weight: 300; }
.fc-muted { color: var(--text-muted); }
.fc-strong { color: var(--text-strong); font-weight: 600; }
.fc-cap { font-size: 13px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--text-muted); }
.fc-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.fc-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.fc-only-m { display: none !important; }
@media (max-width: 860px) {
  .fc-sec--sm { padding-top: 48px; }
  .fc-h2 { font-size: 32px; }
  .fc-lead { font-size: 28px; }
  .fc-h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.4px; }
}

/* ---------- Nút (chữ lăn từng ký tự + mũi tên lăn theo) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 22px; border-radius: 28px; border: 2px solid var(--line-strong); background: transparent; color: var(--text-strong);
  font: 600 22px/1.5 var(--font-display); white-space: nowrap; user-select: none; cursor: pointer; text-decoration: none; -webkit-appearance: none; appearance: none; margin: 0; max-width: 100%; }
.btn-label { display: block; height: 33px; line-height: 33px; overflow: hidden; }
.btn-row { display: block; white-space: pre; }
.btn-ch { display: inline-block; transition: transform .5s cubic-bezier(0.76, 0, 0.024, 1); }
.btn:hover .btn-ch, .btn:focus-visible .btn-ch { transform: translateY(-100%); }
.btn-icon { position: relative; display: inline-block; width: 1em; height: 1em; overflow: hidden; font-size: 26px; flex: none; }
.btn-icon svg { position: absolute; left: 0; top: 0; width: 1em; height: 1em; display: block; transition: transform .5s cubic-bezier(0.76, 0, 0.024, 1) .12s; }
.btn-icon svg + svg { transform: translate(-100%, 100%); }
.btn:hover .btn-icon svg, .btn:focus-visible .btn-icon svg { transform: translate(100%, -100%); }
.btn:hover .btn-icon svg + svg, .btn:focus-visible .btn-icon svg + svg { transform: translate(0, 0); }
.btn:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 3px; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text-strong); }
.btn-solid { background: var(--accent-alt); border-color: var(--accent-alt); color: var(--on-accent); }
.btn-inverse { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--text-inverse); }
.btn-full { width: 100%; }
.btn-sm { height: 44px; font-size: 16px; font-weight: 400; border-width: 1px; gap: 8px; padding: 0 15px; border-radius: 22px; }
.btn-sm .btn-label { height: 24px; line-height: 24px; }
.btn-sm .btn-icon { font-size: 18px; }
.btn-lg { height: 84px; font-size: 30px; gap: 16px; padding: 0 32px; border-radius: 42px; }
.btn-lg .btn-label { height: 45px; line-height: 45px; }
.btn-lg .btn-icon { font-size: 36px; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
@media (max-width: 860px) {
  .btn-lg { height: 64px; font-size: 22px; padding: 0 24px; border-radius: 32px; }
  .btn-lg .btn-label { height: 33px; line-height: 33px; }
  .btn-lg .btn-icon { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-ch, .btn-icon svg { transition: none; }
  .btn:hover .btn-ch, .btn:focus-visible .btn-ch, .btn:hover .btn-icon svg, .btn:focus-visible .btn-icon svg { transform: none; }
  .btn:hover .btn-icon svg + svg, .btn:focus-visible .btn-icon svg + svg { transform: translate(-100%, 100%); }
}

/* ---------- Thành phần Agency Studio ---------- */
.as-tag { display: inline-flex; align-items: center; padding: 0 var(--space-s); border-radius: var(--radius-pill); background: var(--bg-raised); color: var(--text); font: 400 16px/28px var(--font-display); border: 0; }
.as-tag-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.as-tag-accent { background: var(--accent); color: var(--on-accent); }
.as-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.fc-pill { display: inline-flex; align-self: flex-start; padding: 0 14px; border-radius: 99px; font-size: 14px; line-height: 28px; background: var(--bg-raised); color: var(--text); }
.fc-pill--accent { background: var(--accent); color: var(--on-accent); }
.fc-pill--alt { background: var(--accent-alt); color: var(--on-accent); }
.fc-pill--sunken { background: var(--bg-sunken); color: var(--on-accent); }

.as-hero { margin: 0; font: 600 60px/1 var(--font-display); letter-spacing: -0.6px; color: var(--text-strong); }
.as-hero-hl { display: inline-block; padding: 0 .28em .06em; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); line-height: 1.05; }
.as-spark { display: inline-block; width: .55em; height: .55em; vertical-align: .05em; margin-right: .18em; color: currentColor; }

/* Khối lựa chọn lớn (trang chủ "Bạn cần gì?"): cả khối là link, nút mũi tên đổi màu khi rê chuột. */
.as-svc-card { display: flex; flex-direction: column; min-height: 340px; padding: 36px 40px 40px; border: 1.5px solid var(--line-strong); border-radius: 40px; background: var(--bg-raised); color: inherit; text-decoration: none; transition: background var(--as-medium) var(--as-ease); }
.as-svc-card:hover { background: var(--bg-sunken); }
.as-svc-card:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 3px; }
.as-svc-num { font: 400 18px/36px var(--font-display); color: var(--text-muted); margin-bottom: 20px; }
.as-svc-title { margin: 0 0 var(--space-xs); font: 600 40px/1.1 var(--font-display); letter-spacing: -0.8px; color: var(--text-strong); }
.as-svc-desc { margin: 0 0 var(--space-s); font: 300 18px/28.8px var(--font-display); color: var(--text-muted); max-width: 46ch; }
.as-svc-foot { margin-top: auto; padding-top: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.as-svc-card .as-icon-btn { width: 72px; height: 72px; }
.as-svc-card .as-icon-btn svg { width: 28px; height: 28px; }
.as-svc-card:hover .as-icon-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.as-icon-btn { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--text-strong); background: transparent; cursor: pointer; transition: background var(--as-medium) var(--as-ease), color var(--as-medium) var(--as-ease), border-color var(--as-medium) var(--as-ease); }
.as-icon-btn:hover, a:hover > .as-icon-btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.as-icon-btn svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .as-svc-card { min-height: 0; padding: 24px 24px 28px; border-radius: 28px; }
  .as-svc-num { margin-bottom: 8px; }
  .as-svc-title { font-size: 28px; line-height: 34px; }
  .as-svc-card .as-icon-btn { width: 56px; height: 56px; }
  .as-icon-btn { width: 48px; height: 48px; }
}

.as-marquee { overflow: hidden; padding: var(--space-xs) 0; }
.as-marquee-track { display: flex; gap: var(--space-xs); width: max-content; animation: as-scroll 24s linear infinite; }
.as-marquee:hover .as-marquee-track, .as-marquee:focus-within .as-marquee-track, .as-marquee.is-paused .as-marquee-track { animation-play-state: paused; }
.as-marquee-tile { padding: var(--space-l) var(--space-xl); border-radius: var(--radius-m); background: var(--accent); color: var(--on-accent); font: 600 30px/36px var(--font-display); white-space: nowrap; display: flex; align-items: center; gap: var(--space-s); }
.as-marquee-tile.alt { background: var(--accent-alt); }
.as-marquee-text { font: 600 44px/1.1 var(--font-display); color: var(--text-strong); white-space: nowrap; display: flex; align-items: center; gap: var(--space-m); padding: 0 var(--space-m); }
@keyframes as-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .as-marquee-track { animation: none; } .as-marquee { overflow-x: auto; } }

.as-proj { display: grid; gap: var(--space-s); color: inherit; text-decoration: none; }
.as-proj-media { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-l); background: var(--bg-sunken); overflow: hidden; }
.as-proj-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--as-slow) var(--as-ease), opacity var(--as-medium) ease; }
.as-proj:hover .as-proj-media img { transform: scale(1.04); }
.as-proj-media .as-tags { position: absolute; left: var(--space-m); top: var(--space-m); right: var(--space-m); }
.as-proj-title { margin: 0; font: 600 30px/36px var(--font-display); letter-spacing: -0.6px; color: var(--text-strong); }
.as-proj-meta { font: 300 18px/28.8px var(--font-display); color: var(--text-muted); }

.as-quote { background: var(--bg-raised); border-radius: var(--radius-m); padding: var(--space-l) var(--space-xl); display: grid; gap: var(--space-m); max-width: 520px; margin: 0; }
.as-quote-text { margin: 0; font: 400 22px/1.45 var(--font-display); color: var(--text-strong); }
.as-quote-who { display: flex; align-items: center; gap: var(--space-s); }
.as-quote-av { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-alt); color: var(--on-accent); display: grid; place-items: center; font: 600 18px/1 var(--font-display); flex: none; }
.as-quote-name { font: 600 18px/1.3 var(--font-display); color: var(--text-strong); }
.as-quote-role { font: 300 16px/1.4 var(--font-display); color: var(--text-muted); }

/* ---------- Ô nhập (gạch chân) + form ---------- */
.fc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fc-field > label, .fc-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-strong); }
.fc-field .fc-req { color: var(--warn); }
.fc-input, .fc-select, .fc-textarea { width: 100%; min-height: 52px; padding: 10px 2px; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; background: transparent; color: var(--text-strong); font: 400 18px/28px var(--font-display); transition: border-color var(--as-medium) var(--as-ease); }
.fc-textarea { min-height: 96px; resize: vertical; }
.fc-select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 20px; padding-right: 28px; }
.fc-input::placeholder, .fc-textarea::placeholder { color: var(--text-muted); opacity: 1; }
.fc-input:focus, .fc-select:focus, .fc-textarea:focus { outline: none; border-bottom-color: var(--line-strong); box-shadow: 0 1.5px 0 0 var(--line-strong); }
.fc-field.is-invalid .fc-input, .fc-field.is-invalid .fc-select, .fc-field.is-invalid .fc-textarea { border-bottom-color: var(--warn); }
.fc-field__err { font-size: 14px; line-height: 20px; color: #b3372f; }
.fc-check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 24px; color: var(--text); cursor: pointer; }
.fc-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--bg-inverse); }
.fc-form-msg { font-size: 16px; line-height: 24px; padding: 12px 16px; border-radius: 16px; background: #fbe9e7; color: #8f2a23; }
.fc-form-msg.is-ok { background: #e6f3e4; color: #23602a; }

/* ---------- Nút lọc dạng viên ---------- */
.fc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-chip { flex: 0 0 auto; height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line-subtle); background: transparent; color: var(--text-strong); font-size: 16px; font-weight: 600; white-space: nowrap; transition: background var(--as-medium) var(--as-ease), color var(--as-medium) var(--as-ease), border-color var(--as-medium) var(--as-ease); }
.fc-chip:hover { border-color: var(--line-strong); }
.fc-chip[aria-pressed="true"], .fc-chip.is-on { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--line-strong); }
@media (max-width: 860px) {
  .fc-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fc-chips::-webkit-scrollbar { display: none; }
  .fc-chips--wrap { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
}

/* ---------- Khung ảnh chờ ---------- */
.fc-media { position: relative; display: block; width: 100%; height: 100%; background: var(--bg-sunken); overflow: hidden; }
.fc-media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-media--empty { display: flex; align-items: flex-end; padding: 14px; }
.fc-media__label { font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* ---------- Header ---------- */
.fc-header { position: sticky; top: 0; z-index: 30; width: 100%; background: var(--bg); color: var(--text-strong); }
.fc-announce { background: var(--bg-inverse); color: var(--text-inverse); min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 16px; font-size: 15px; line-height: 20px; text-align: center; }
.fc-announce--link { text-decoration: none; }
.fc-announce--link span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--as-medium) var(--as-ease); }
.fc-announce--link:hover span, .fc-announce--link:focus-visible span { text-decoration-color: currentColor; }
.fc-announce--link:focus-visible { outline: 2px solid var(--accent-alt); outline-offset: -4px; }
.fc-header__row { max-width: var(--wrap); margin: 0 auto; padding: 18px 40px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line-subtle); }
.fc-logo { display: flex; flex-direction: column; font-size: 22px; line-height: 22px; font-weight: 600; letter-spacing: -0.4px; color: var(--text-strong); text-decoration: none; }
.fc-nav { flex: 1 1 auto; display: flex; justify-content: center; gap: 28px; }
.fc-nav a { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--text-strong); text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.fc-nav a:hover, .fc-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.fc-header--minimal .fc-header__row { justify-content: flex-start; }
.fc-langs { display: flex; gap: 4px; font-size: 16px; }
.fc-lang { height: 44px; min-width: 44px; padding: 0 6px; border-radius: 99px; display: flex; align-items: center; justify-content: center; color: var(--text-strong); font-size: 16px; text-decoration: none; }
.fc-lang.is-on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.fc-lang.is-off { color: var(--text-muted); cursor: default; }
a.fc-lang:hover { background: var(--bg-sunken); }
.fc-langs--sm .fc-lang { height: 40px; min-width: 40px; font-size: 15px; }
.fc-cartbtn { position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--text-strong); }
.fc-cartbtn__n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent-alt); color: var(--on-accent); font-size: 12px; line-height: 20px; font-weight: 700; text-align: center; }
.fc-burger { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--bg-inverse); color: var(--text-inverse); display: flex; align-items: center; justify-content: center; }
.fc-header__gap { flex: 1 1 auto; }
.fc-mnav { padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); border-bottom: 1px solid var(--line-subtle); max-height: calc(100vh - 110px); overflow-y: auto; }
.fc-mnav > a { display: flex; align-items: center; min-height: 56px; font-size: 32px; line-height: 40px; font-weight: 500; color: var(--text-strong); text-decoration: none; border-bottom: 1px solid var(--line-subtle); }
.fc-mnav__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; gap: 12px; }
.fc-mnav__foot > a { font-size: 18px; color: var(--text-strong); }
@media (min-width: 1025px) { .fc-mnav { display: none !important; } }
@media (max-width: 1024px) {
  .fc-header__row { padding: 8px 20px; gap: 12px; }
  .fc-announce { min-height: 30px; padding: 3px 16px; font-size: 13px; line-height: 18px; }
  .fc-logo { flex-direction: row; font-size: 21px; line-height: 40px; } /* 1 dòng liền "flowcoffee" cho header thấp lại */
  .fc-logo__img { height: 36px; }
  .fc-cartbtn, .fc-burger { width: 40px; height: 40px; }
  .fc-cartbtn svg, .fc-burger svg { width: 20px; height: 20px; }
  .fc-header .fc-nav, .fc-header .fc-only-d { display: none !important; }
  .fc-header .fc-only-m { display: flex !important; }
  html { scroll-padding-top: 92px; }
}
@media (max-width: 860px) {
  .fc-only-d { display: none !important; }
  .fc-only-m { display: revert !important; }
}

/* ---------- Thẻ sản phẩm ---------- */
.fc-grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.fc-grid-products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fc-card { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.fc-card[hidden] { display: none; }
.fc-card .as-proj-media { aspect-ratio: 1 / 1; } /* Ảnh sản phẩm vuông (cỡ fc-square 800x800) ở mọi lưới sản phẩm. */
.fc-card .fc-card__hover { opacity: 0; }
.fc-card .as-proj:hover .fc-card__hover { opacity: 1; }
.fc-card__stock { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--text-strong); }
.fc-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.fc-dot--low { background: var(--warn); }
.fc-dot--out { background: var(--text-subtle); }
.fc-card__sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-size { height: 44px; min-width: 64px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-subtle); background: transparent; color: var(--text-strong); font-size: 16px; font-weight: 600; transition: background var(--as-medium) var(--as-ease), color var(--as-medium) var(--as-ease), border-color var(--as-medium) var(--as-ease); }
.fc-size:hover { border-color: var(--line-strong); }
.fc-size[aria-pressed="true"] { border-color: var(--line-strong); background: var(--bg-inverse); color: var(--text-inverse); }
.fc-size:disabled { opacity: .35; text-decoration: line-through; border-color: var(--line-subtle); }
.fc-card__cta { display: flex; margin-top: auto; }
.fc-grid-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--text-muted); }
@media (max-width: 1100px) { .fc-grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .fc-grid-products, .fc-grid-products--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .fc-card .as-proj-title { font-size: 24px; line-height: 28px; letter-spacing: -0.4px; overflow-wrap: anywhere; }
  .fc-card .as-proj-meta { font-size: 16px; line-height: 24px; }
  .fc-card .as-proj-media { border-radius: 24px; }
  .fc-card .as-proj-media .as-tags { left: 10px; top: 10px; right: 10px; gap: 6px; }
  .fc-card .as-tag { font-size: 13px; line-height: 24px; padding: 0 10px; }
  .fc-card__stock { font-size: 14px; }
  .fc-size { min-width: 44px; padding: 0 12px; font-size: 15px; }
}

/* ---------- Dải tối bo tròn (banner quiz, CTA) ---------- */
.fc-band { background: var(--bg); color: var(--text); border-radius: 60px; padding: 56px 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.fc-band__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) { .fc-band { border-radius: 38px; padding: 36px 24px; } .fc-band__text { flex-basis: 100%; } }

/* ---------- Wall of love ---------- */
.fc-wall { width: 100%; background: var(--bg-sunken); color: var(--text); margin-top: var(--sec); padding: 96px 0; overflow: hidden; display: flex; flex-direction: column; gap: 36px; }
.fc-wall__head { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.fc-wall__intro { display: flex; flex-direction: column; gap: 10px; }
.fc-wall__sub { font-size: 18px; font-weight: 300; color: var(--text-muted); }
.fc-wall__side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fc-wall__badge { display: inline-block; margin-top: 4px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; line-height: 20px; color: var(--text-muted); }
.fc-wall__badge.is-ok { border-color: transparent; background: var(--accent); color: var(--on-accent); }
/* BReviewCTA: mời gửi đánh giá, ngay trên khối Brewed with Love */
.fc-rcta { padding-top: 72px; font-family: var(--font-display); }
.fc-rcta + div > .fc-wall, .fc-rcta + .fc-wall { margin-top: 72px; }
.fc-rcta__in { background: var(--bg); color: var(--text); border-radius: 38px; padding: 44px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.fc-rcta__tx { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fc-rcta__tag { align-self: flex-start; padding: 0 14px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 14px; line-height: 28px; }
.fc-rcta__h { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 600; letter-spacing: -0.5px; color: var(--text-strong); }
.fc-rcta__tx p { margin: 0; font-size: 17px; line-height: 26px; font-weight: 300; }
.fc-rcta__act { display: flex; flex-wrap: wrap; gap: 10px; }
.fc-wall .as-marquee { padding: 0; }
.fc-wall__track { gap: 24px; padding-right: 24px; align-items: stretch; animation-duration: 48s; }
/* Dải đánh giá do JS chạy (fc.js): là vùng cuộn ngang thật nên khách vuốt, kéo chuột qua lại được; buông ra thì tự chạy tiếp. */
.fc-wall .as-marquee.is-js { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.fc-wall .as-marquee.is-js::-webkit-scrollbar { display: none; }
.fc-wall .as-marquee.is-js .fc-wall__track { animation: none; }
.fc-wall .as-marquee.is-js.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
/* Thẻ đánh giá: cao bằng nhau, rộng và bố cục theo nội dung (chỉ chữ / chỉ ảnh, video / cả hai; ảnh dọc hay ngang). */
.fc-wall__card { flex: 0 0 auto; width: 400px; height: 460px; display: flex; flex-direction: column; border-radius: var(--radius-m); background: var(--bg-raised); overflow: hidden; --lines: 4; --lines-c: 3; }
.fc-wall__media { position: relative; flex: 0 0 220px; min-height: 0; display: block; width: 100%; padding: 0; border: 0; background: var(--bg-sunken); cursor: pointer; overflow: hidden; }
.fc-wall__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fc-wall__media:hover img { transform: scale(1.03); }
.fc-wall__media:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.fc-wall__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--accent-alt); color: var(--on-accent); display: grid; place-items: center; }
.fc-wall__n { position: absolute; right: 12px; top: 12px; padding: 0 10px; border-radius: 99px; background: rgba(22, 22, 22, .72); color: #fff; font-size: 13px; line-height: 24px; font-variant-numeric: tabular-nums; }
.fc-wall__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 28px; }
.fc-wall__text { margin: 0; font: 400 18px/1.5 var(--font-display); color: var(--text-strong); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines); line-clamp: var(--lines); overflow: hidden; }
.fc-wall__card.is-clamped .fc-wall__text { -webkit-line-clamp: var(--lines-c); line-clamp: var(--lines-c); }
.fc-wall__more { padding: 0; border: 0; background: none; font: 600 15px/22px var(--font-display); color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fc-wall__who { margin-top: auto; display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.fc-wall__who .as-quote-av { width: 44px; height: 44px; font-size: 16px; }
.fc-wall__id { display: flex; flex-direction: column; min-width: 0; }
.fc-wall__name { font: 600 17px/1.3 var(--font-display); color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-wall__role { font: 300 15px/1.4 var(--font-display); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-wall__id .fc-wall__badge { align-self: flex-start; }
/* Chỉ có chữ: chữ to hơn, nhiều dòng hơn. */
.fc-wall__card--text { --lines: 9; --lines-c: 8; }
.fc-wall__card--text .fc-wall__body { padding: 32px; gap: 14px; }
.fc-wall__card--text .fc-wall__text { font-size: 22px; line-height: 1.45; }
/* Chỉ có ảnh / video: ảnh phủ gần hết thẻ, tên khách ở dưới. Dọc thì thẻ hẹp, ngang thì thẻ rộng. */
.fc-wall__card--media .fc-wall__media { flex: 1 1 auto; }
.fc-wall__card--media .fc-wall__body { flex: none; padding: 16px 20px; }
.fc-wall__card--media.is-tall { width: 300px; }
.fc-wall__card--media.is-wide { width: 520px; }
/* Ảnh / video dọc + chữ: ảnh bên trái cao hết thẻ, chữ bên phải. */
.fc-wall__card--mix.is-tall { flex-direction: row; width: 640px; --lines: 11; --lines-c: 10; }
.fc-wall__card--mix.is-tall .fc-wall__media { flex: 0 0 270px; width: 270px; height: 100%; }
.fc-wall__card--mix.is-tall .fc-wall__body { flex: 1 1 0; min-width: 0; }

/* Hộp xem đầy đủ 1 đánh giá: ảnh / video hiện trọn (không cắt) bên trái, lời đánh giá bên phải. */
.fc-rvv { padding: 0; border: 0; border-radius: var(--radius-m); background: var(--bg-raised); color: var(--text); width: min(1040px, calc(100vw - 32px)); max-width: none; height: min(680px, calc(100dvh - 32px)); max-height: none; overflow: hidden; }
.fc-rvv::backdrop { background: rgba(10, 10, 10, .72); }
.fc-rvv[open] { display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.fc-rvv__stage { position: relative; min-height: 0; background: #111; display: grid; place-items: center; overflow: hidden; }
.fc-rvv__stage img, .fc-rvv__stage video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; object-fit: contain; grid-area: 1 / 1; }
.fc-rvv__stage video { width: 100%; height: 100%; background: #111; }
.fc-rvv__go { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #161616; display: grid; place-items: center; cursor: pointer; z-index: 1; }
.fc-rvv__go[data-rvv-go="-1"] { left: 12px; }
.fc-rvv__go[data-rvv-go="1"] { right: 12px; }
.fc-rvv__n { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); padding: 0 10px; border-radius: 99px; background: rgba(22, 22, 22, .72); color: #fff; font-size: 13px; line-height: 24px; font-variant-numeric: tabular-nums; z-index: 1; }
.fc-rvv__side { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding: 64px 28px 28px; }
.fc-rvv__text { margin: 0; font: 400 18px/1.55 var(--font-display); color: var(--text-strong); white-space: pre-line; overflow-wrap: anywhere; }
.fc-rvv__side .fc-wall__who { margin-top: 0; }
.fc-rvv__x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 1px solid var(--line-subtle); border-radius: 50%; background: var(--bg-raised); color: var(--text-strong); font-size: 24px; line-height: 1; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.fc-rvv__x:focus-visible, .fc-rvv__go:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fc-rvv--text { width: min(600px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 32px); }
.fc-rvv--text[open] { grid-template-columns: minmax(0, 1fr); }
.fc-rvv--text .fc-rvv__stage { display: none; }
.fc-rvv--text .fc-rvv__side { max-height: calc(100dvh - 32px); }
.fc-rvv--text .fc-rvv__text { font-size: 20px; }
@media (max-width: 860px) {
  .fc-rvv { height: fit-content; max-height: calc(100dvh - 24px); width: calc(100vw - 24px); overflow-y: auto; }
  .fc-rvv[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .fc-rvv__stage { height: min(62dvh, 125vw); }
  .fc-rvv__side { overflow: visible; padding: 20px; gap: 16px; }
  .fc-rvv--text .fc-rvv__side { padding-top: 60px; max-height: none; }
  .fc-rvv__text, .fc-rvv--text .fc-rvv__text { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .fc-wall__media img { transition: none; } .fc-wall__media:hover img { transform: none; } }
@media (max-width: 860px) {
  .fc-wall { padding: 56px 0; }
  .fc-rcta { padding-top: 48px; }
  .fc-rcta + div > .fc-wall, .fc-rcta + .fc-wall { margin-top: 48px; }
  .fc-rcta__in { border-radius: 28px; padding: 28px 22px; }
  .fc-rcta__h { font-size: 28px; }
  .fc-wall__track { animation-duration: 36s; }
  .fc-wall__track { gap: 16px; padding-right: 16px; }
  .fc-wall__card { width: 300px; height: 420px; --lines: 4; --lines-c: 3; }
  .fc-wall__media { flex-basis: 200px; }
  .fc-wall__body, .fc-wall__card--text .fc-wall__body { padding: 20px; }
  .fc-wall__text { font-size: 17px; }
  .fc-wall__card--text { --lines: 10; --lines-c: 9; }
  .fc-wall__card--text .fc-wall__text { font-size: 18px; line-height: 1.5; }
  .fc-wall__card--media .fc-wall__body { padding: 14px 16px; }
  .fc-wall__card--media.is-tall { width: 260px; }
  .fc-wall__card--media.is-wide { width: 320px; }
  /* Điện thoại: ảnh dọc + chữ cũng xếp ảnh trên, chữ dưới; ảnh cao hơn 1 chút và lấy phần trên của ảnh. */
  .fc-wall__card--mix.is-tall { flex-direction: column; width: 300px; --lines: 3; --lines-c: 2; }
  .fc-wall__card--mix.is-tall .fc-wall__media { flex: 0 0 230px; width: 100%; height: auto; }
  .fc-wall__card--mix.is-tall .fc-wall__media img { object-position: center 25%; }
}

/* ---------- FAQ ---------- */
.fc-faq { border-top: 1px solid var(--line-subtle); }
.fc-faq details { border-bottom: 1px solid var(--line-subtle); }
.fc-faq summary { min-height: 72px; padding: 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 22px; line-height: 30px; font-weight: 600; color: var(--text-strong); list-style: none; }
.fc-faq summary::-webkit-details-marker { display: none; }
.fc-faq summary > span { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 400; transition: transform var(--as-medium) ease, background var(--as-medium) ease, color var(--as-medium) ease; }
.fc-faq details[open] summary > span { transform: rotate(45deg); background: var(--bg-inverse); color: var(--text-inverse); }
.fc-faq p { margin: 0 0 22px; font-size: 18px; line-height: 28.8px; font-weight: 300; color: var(--text-muted); max-width: 70ch; }


/* ---------- Quy trình ---------- */
.fc-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fc-steps__pill { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px; border-radius: 99px; border: 1.5px solid var(--line-strong); font-size: 20px; font-weight: 600; color: var(--text-strong); }
.fc-steps__pill span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
/* Màn hẹp: xếp lưới đều cột (3 cột, điện thoại 2 cột) để 6 bước thành các hàng bằng nhau, không còn hàng dài hàng ngắn. */
@media (max-width: 860px) {
  .fc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fc-steps__pill { display: flex; height: 48px; padding: 0 16px; font-size: 17px; white-space: nowrap; }
}
@media (max-width: 560px) { .fc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .fc-steps__pill { padding: 0 12px; gap: 8px; font-size: 16px; } }
.fc-process { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 12px; }
.fc-process li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.fc-process__icon { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-subtle); background: var(--bg-sunken); display: flex; align-items: center; justify-content: center; color: var(--text-strong); }
.fc-process__n { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.fc-process__t { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text-strong); }
@media (max-width: 860px) { .fc-process { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Breadcrumb ---------- */
.fc-crumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.fc-crumb li + li::before { content: "/"; margin-right: 8px; color: var(--text-subtle); }
.fc-crumb a { color: var(--text-muted); text-decoration: none; }
.fc-crumb a:hover { color: var(--text-strong); text-decoration: underline; }

/* ---------- Bộ ảnh + video ---------- */
.fc-gal { display: flex; flex-direction: column; gap: 12px; color: var(--text); min-width: 0; }
.fc-gal__stage { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; background: var(--bg-sunken); overflow: hidden; touch-action: pan-y; }
.fc-gal--tour .fc-gal__stage { aspect-ratio: 16 / 10; }
.fc-gal__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .3s ease; background: var(--bg-sunken); }
.fc-gal__slide.is-on { opacity: 1; visibility: visible; }
.fc-gal__slide.is-video { background: #2b2826; }
.fc-gal__slide img, .fc-gal__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-gal__zoom { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: zoom-in; z-index: 1; }
.fc-gal__stage, .fc-lb__stage { -webkit-user-select: none; user-select: none; }
.fc-gal__stage.is-dragging, .fc-gal__stage.is-dragging .fc-gal__zoom, .fc-lb__stage.is-dragging { cursor: grabbing; }
.fc-gal__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--accent-alt); color: var(--on-accent); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fc-gal__slide.is-playing .fc-gal__play { display: none; }
.fc-gal__slide.is-sound .fc-gal__vnote, .fc-gal__slide:not(.is-playing) .fc-gal__vnote { display: none; } /* Đã bật tiếng hoặc video chưa chạy thì không cần nhắc. */
.fc-gal__vnote { position: absolute; left: 16px; top: 16px; font-size: 13px; line-height: 20px; color: #fff; background: rgba(22, 22, 22, 0.7); padding: 4px 12px; border-radius: 99px; pointer-events: none; max-width: calc(100% - 92px); }
.fc-gal__label { position: absolute; left: 16px; bottom: 16px; font-size: 13px; line-height: 20px; color: #161616; background: rgba(255, 255, 255, 0.9); padding: 4px 12px; border-radius: 99px; pointer-events: none; max-width: calc(100% - 110px); }
.fc-gal__label:empty { display: none; }
.fc-gal__pos { position: absolute; right: 16px; bottom: 16px; font-size: 12px; line-height: 24px; font-weight: 600; color: #fff; background: rgba(22, 22, 22, 0.8); padding: 0 12px; border-radius: 99px; pointer-events: none; z-index: 2; }
.fc-gal__pos b { font-weight: 600; }
.fc-gal__expand { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #161616; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2; }
.fc-gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: #161616; display: flex; align-items: center; justify-content: center; z-index: 2; }
.fc-gal__nav--prev { left: 12px; }
.fc-gal__nav--next { right: 12px; }
.fc-gal__thumbs { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 8px; }
.fc-gal__thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; border: 1px solid var(--line-subtle); background: var(--bg-sunken); padding: 0; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.fc-gal__thumb.is-video { background: #2b2826; }
.fc-gal__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-gal__thumb svg { position: relative; }
.fc-gal__thumb[aria-pressed="true"] { border: 2px solid var(--line-strong); }
.fc-gal__dots { display: none; justify-content: center; gap: 6px; }
.fc-gal__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-subtle); }
.fc-gal__dots span.is-on { background: var(--bg-inverse); }
@media (max-width: 860px) {
  .fc-gal__stage { border-radius: 0; margin: 0 calc(var(--gutter) * -1); }
  .fc-gal--tour .fc-gal__stage { aspect-ratio: 4 / 3; }
  .fc-gal__thumbs { display: none; }
  .fc-gal__dots { display: flex; }
}

.fc-lb { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 10, 0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px 40px; }
.fc-lb__top { width: 100%; max-width: 1100px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 15px; }
.fc-lb__close { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1.5px solid #fff; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; }
.fc-lb__stage { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16 / 10; max-height: calc(100vh - 230px); border-radius: 28px; background: #4a4643; overflow: hidden; touch-action: pan-y pinch-zoom; }
.fc-lb__stage.is-video { background: #2b2826; }
.fc-lb__stage img, .fc-lb__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fc-lb__stage .fc-gal__play { width: 96px; height: 96px; }
.fc-lb__stage .fc-gal__nav { width: 52px; height: 52px; }
.fc-lb__thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 2px; }
.fc-lb__thumbs button { position: relative; flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; border: 1px solid #535151; background: #4a4643; padding: 0; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.fc-lb__thumbs button.is-video { background: #2b2826; }
.fc-lb__thumbs button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-lb__thumbs button[aria-pressed="true"] { border: 2px solid #fff; }
@media (max-width: 860px) {
  .fc-lb { padding: 16px; }
  .fc-lb__stage { aspect-ratio: 1 / 1; border-radius: 16px; }
  .fc-lb__thumbs button { width: 52px; height: 52px; }
}

/* ---------- Ngăn kéo giỏ hàng ---------- */
.fc-drawer { position: fixed; inset: 0; z-index: 50; }
.fc-drawer__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.5); opacity: 0; transition: opacity .25s ease; }
.fc-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: var(--bg-raised); display: flex; flex-direction: column; font-size: 16px; line-height: 24px; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); outline: none; }
.fc-drawer.is-open .fc-drawer__backdrop { opacity: 1; }
.fc-drawer.is-open .fc-drawer__panel { transform: none; }
.fc-drawer.is-busy .fc-drawer__body { opacity: .5; pointer-events: none; }
.fc-drawer__head { flex: none; height: 64px; padding: 0 12px 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-subtle); }
.fc-drawer__head .fc-drawer__title { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-strong); }
.fc-drawer__close { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--text-strong); }
.fc-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 0 20px; transition: opacity .2s; }
.fc-drawer__empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 20px; text-align: center; color: var(--text-muted); }
.fc-drawer__foot { flex: none; padding: 16px 20px 20px; border-top: 1px solid var(--line-subtle); display: flex; flex-direction: column; gap: 10px; }
.fc-freeship { flex: none; padding: 14px 20px; background: var(--bg-sunken); display: flex; flex-direction: column; gap: 8px; }
.fc-freeship__ok { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-strong); }
.fc-freeship__ok i { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--accent-alt); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-style: normal; }
.fc-freeship__bar { height: 6px; border-radius: 99px; background: var(--bg-raised); overflow: hidden; }
.fc-freeship__bar span { display: block; height: 100%; border-radius: 99px; background: var(--bg-inverse); }
.fc-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-subtle); }
.fc-line__img { position: relative; flex: 0 0 auto; width: 76px; height: 76px; border-radius: 20px; background: var(--bg-sunken); overflow: hidden; }
.fc-line__img img { width: 100%; height: 100%; object-fit: cover; }
.fc-line__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fc-line__top { display: flex; justify-content: space-between; gap: 8px; }
.fc-line__name { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text-strong); text-decoration: none; }
.fc-line__remove { flex: 0 0 auto; width: 32px; height: 32px; margin: -6px -6px 0 0; border: 0; background: transparent; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.fc-line__remove:hover { color: var(--warn); }
.fc-line__size { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.fc-line__bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fc-line__price { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.fc-qty { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line-subtle); border-radius: 99px; }
.fc-qty button { width: 40px; height: 38px; border: 0; background: transparent; font-size: 18px; color: var(--text-strong); border-radius: 99px; }
.fc-qty button:disabled { opacity: .3; }
.fc-qty span { min-width: 24px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-strong); }
.fc-offers { padding: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.fc-offers__title { font-size: 13px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--text); }
.fc-offers__row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-strong); }
.fc-offers__row svg { color: var(--ok-strong); flex: none; }
.fc-offers__row span { flex: 1 1 auto; }
.fc-offers__note { font-size: 12px; color: var(--text-muted); }
.fc-sum { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.fc-sum span:last-child { color: var(--text-strong); }
.fc-sum--off span:last-child { color: var(--ok-strong); font-weight: 600; }
.fc-sum--total { align-items: baseline; }
.fc-sum--total span:first-child { font-size: 16px; font-weight: 600; color: var(--text-strong); }
.fc-sum--total span:last-child { font-size: 20px; font-weight: 700; }

/* ---------- Nút nhắn tin nổi ---------- */
.fc-chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transition: transform .25s ease; }
body.fc-has-cookie .fc-chat { transform: translateY(-104px); }
.fc-chat__panel { background: var(--bg-raised); border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 260px; }
.fc-chat__head { display: flex; align-items: center; gap: 8px; }
.fc-chat__title { font-size: 14px; line-height: 20px; color: var(--text-muted); padding: 4px 8px; }
.fc-chat__row { display: flex; align-items: center; gap: 8px; }
.fc-chat__row .btn { flex: 1 1 auto; min-width: 0; }
.fc-chat__logo { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-sunken); color: var(--text-strong); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; overflow: hidden; }
.fc-chat__logo img { width: 100%; height: 100%; object-fit: cover; }
.fc-chat__btn { height: 60px; min-width: 60px; padding: 0 24px; border-radius: 30px; gap: 10px; font-size: 18px; font-weight: 600; }
.fc-chat__btn .btn-label { height: 27px; line-height: 27px; }
/* Mở hay đóng nút giữ nguyên cỡ: 2 chữ "Nhắn tin" / "Đóng" chồng lên nhau, nút rộng theo chữ dài hơn. */
.fc-chat__lbs { display: grid; justify-items: start; }
.fc-chat__lbs > .btn-label { grid-area: 1 / 1; }
.fc-chat__lbs > .btn-label + .btn-label,
.fc-chat.is-open .fc-chat__lbs > .btn-label:first-child { visibility: hidden; }
.fc-chat.is-open .fc-chat__lbs > .btn-label + .btn-label { visibility: visible; }
.fc-chat__ic-close { display: none; }
.fc-chat.is-open .fc-chat__ic-chat { display: none; }
.fc-chat.is-open .fc-chat__ic-close { display: inline; }
.fc-chat.is-open .fc-chat__btn svg { stroke-width: 2.2; }
@media (max-width: 860px) {
  .fc-chat__btn { padding: 0; }
  .fc-chat__lbs { display: none; }
  /* Trang có thanh mua dính đáy (sản phẩm, tour): nút nhắn tin nằm ngay trong thanh, bên phải nút mua, không nổi phía trên nữa. */
  body.fc-has-bar .fc-chat { right: 12px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  body.fc-has-bar .fc-chat__btn { height: 48px; min-width: 48px; }
  body.fc-has-bar .pd-bar, body.fc-has-bar .exp-bar { padding-right: 72px; }
  body.fc-has-cookie .fc-chat { transform: translateY(-180px); }
}

/* ---------- Thanh cookie ---------- */
.fc-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 14px 20px; background: var(--bg); }
.fc-cookie__in { max-width: 1200px; margin: 0 auto; padding: 12px 12px 12px 28px; border: 1.5px solid var(--line-strong); border-radius: 99px; background: var(--bg-raised); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.fc-cookie p { flex: 1 1 420px; margin: 0; font-size: 16px; line-height: 24px; font-weight: 300; color: var(--text); }
.fc-cookie p a { color: var(--text-strong); font-weight: 600; }
.fc-cookie__btns { display: flex; gap: 8px; }
@media (max-width: 860px) { .fc-cookie__in { border-radius: 16px; padding: 16px; } .fc-cookie p { flex-basis: 100%; } }

/* ---------- Thông báo nhanh ---------- */
.fc-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70; max-width: calc(100vw - 32px); background: var(--bg-inverse); color: var(--text-inverse); padding: 12px 22px; border-radius: 99px; font-size: 16px; line-height: 24px; text-align: center; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
.fc-toast.is-error { background: #b3372f; color: #fff; }

/* ---------- Footer ---------- */
.fc-footer { width: 100%; background: var(--bg); color: var(--text); font-size: 16px; line-height: 26px; margin-top: var(--sec); }
.fc-footer__in { max-width: var(--wrap); margin: 0 auto; padding: 80px 40px 32px; display: flex; flex-direction: column; gap: 48px; }
.fc-follow { display: flex; flex-direction: column; gap: 18px; max-width: 860px; }
.fc-follow__h { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.4px; color: var(--text-strong); }
.fc-follow__row { display: flex; flex-wrap: wrap; gap: 10px; }
.fc-footer__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 36px; border-top: 1px solid var(--line-subtle); }
.fc-footer__biz { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.fc-footer__cap { font-size: 13px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--text-muted); }
.fc-footer__contact { margin-top: 8px; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--text-strong); text-decoration: none; align-self: flex-start; }
.fc-footer__contact--2 { margin-top: 0; }
.fc-footer__bct { margin-top: 10px; width: 150px; height: 56px; border: 1.5px dashed var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; line-height: 14px; color: var(--text-muted); text-decoration: none; padding: 0 8px; }
.fc-footer__bct.has-img { border: 0; padding: 0; justify-content: flex-start; }
.fc-footer__bct img { max-height: 56px; width: auto; }
.fc-footer__cols nav { display: flex; flex-direction: column; gap: 2px; }
.fc-footer__cols nav .fc-footer__cap { margin-bottom: 6px; }
.fc-footer__cols nav a { min-height: 36px; display: flex; align-items: center; font-size: 18px; color: var(--text-strong); text-decoration: none; }
.fc-footer__cols nav a:hover, .fc-footer__contact:hover { text-decoration: underline; }
.fc-footer__word { font-size: 220px; line-height: 0.9; font-weight: 600; letter-spacing: -0.04em; color: var(--text-subtle); white-space: nowrap; overflow: hidden; }
.fc-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.fc-footer--minimal { margin-top: 48px; }
.fc-footer--minimal .fc-footer__in { padding: 28px 40px; }
@media (max-width: 1100px) { .fc-footer__word { font-size: 17vw; } }
@media (max-width: 860px) {
  .fc-footer__in { padding: 48px 20px 28px; }
  .fc-follow__h { font-size: 24px; }
  .fc-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-footer__word { font-size: 84px; }
  .fc-footer--minimal .fc-footer__in { padding: 24px 20px; }
}
@media (max-width: 380px) { .fc-footer__word { font-size: 21vw; } }

/* ---------- Trang nội dung thường ---------- */
.fc-prose { font-size: 18px; line-height: 28.8px; color: var(--text); }
.fc-prose > * + * { margin-top: 16px; }
.fc-prose h2 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.6px; color: var(--text-strong); margin-top: 40px; }
.fc-prose h3 { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--text-strong); margin-top: 28px; }
.fc-prose ul, .fc-prose ol { padding-left: 22px; }
.fc-prose li + li { margin-top: 6px; }
.fc-prose a { font-weight: 600; }
.fc-page-head { padding-top: 64px; display: flex; flex-direction: column; gap: 16px; }
.fc-page-head h1 { font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -0.6px; color: var(--text-strong); }
@media (max-width: 860px) { .fc-page-head { padding-top: 36px; } .fc-page-head h1 { font-size: 42px; line-height: 46px; } }

/* ---------- Khối QR chuyển khoản ---------- */
.fc-qr { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; }
.fc-qr__img { width: 240px; height: 240px; border-radius: 16px; background: #fff; border: 1px solid var(--line-subtle); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fc-qr__img img { width: 100%; height: 100%; object-fit: contain; }
.fc-qr__info { margin: 0; display: flex; flex-direction: column; }
.fc-qr__info > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-subtle); font-size: 16px; line-height: 24px; }
.fc-qr__info > div:last-child { border-bottom: 0; }
.fc-qr__info dt { color: var(--text-muted); flex: none; }
.fc-qr__info dd { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-strong); text-align: right; min-width: 0; word-break: break-word; }
.fc-copy { flex: none; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.fc-copy.is-done { background: var(--accent-alt); border-color: var(--accent-alt); color: var(--on-accent); }
@media (max-width: 860px) { .fc-qr { grid-template-columns: minmax(0, 1fr); justify-items: center; } .fc-qr__info { width: 100%; } }

/* Nút nhắn tin vẫn nổi rõ khi nằm trên nền tối (footer). */
.fc-chat__btn { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.28); }

.fc-logo__img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }

/* Ô mã giảm giá: ngăn kéo giỏ, trang giỏ hàng, trang thanh toán (inc/features/coupon.php). */
.fc-cpn { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fc-cpn.is-busy { opacity: .55; pointer-events: none; }
.fc-cpn__toggle { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fc-cpn__form { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fc-cpn__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-strong); }
.fc-cpn__row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.fc-cpn__input { flex: 1 1 auto; min-width: 0; width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; background: var(--bg-raised); color: var(--text-strong); font: inherit; font-size: 15px; line-height: 22px; text-transform: uppercase; }
.fc-cpn__input::placeholder { color: var(--text-muted); opacity: 1; text-transform: none; }
.fc-cpn__input:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 1px var(--line-strong); }
.fc-cpn__btn { flex: none; font-weight: 600; }
.fc-cpn__on { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 2px 2px 2px 14px; border-radius: 14px; background: var(--bg-sunken); color: var(--text-strong); }
.fc-cpn__on > svg { flex: none; }
.fc-cpn__code { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14px; line-height: 20px; }
.fc-cpn__code b { font-weight: 700; letter-spacing: 0.3px; overflow-wrap: anywhere; }
.fc-cpn__code small { font-size: 13px; font-weight: 600; color: var(--ok-strong); }
.fc-cpn__remove { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
.fc-cpn__remove:hover { background: var(--bg-raised); color: var(--text-strong); }
.fc-cpn__msg { margin: 0; font-size: 13px; line-height: 18px; color: #b3372f; }
.fc-cpn--drawer { padding-bottom: 2px; }
@media (max-width: 860px) {
  .fc-cpn__input { font-size: 16px; }
}
