/* =========================================================
   MYAN — CSS chính. Mọi màu/khoảng cách lấy từ biến bên dưới.
   Nguồn: bộ thiết kế MYAN (canvas "MYAN Homepage Mockup").
   Thang chữ: docs/design/tokens.md · Hiệu ứng: docs/design/motion.md
   ========================================================= */

:root {
    /* Màu */
    --myan-bg: #f2eee7; /* nền ivory toàn trang */
    --myan-surface: #fffefc; /* thẻ, ô nổi */
    --myan-subtle: #e4ded6; /* nền phụ, section muted */
    --myan-ink: #202020; /* tiêu đề, chữ đậm */
    --myan-text: #4a403a; /* chữ thân bài */
    --myan-muted: #6b5749; /* chú thích */
    --myan-brand: #7a6455; /* cocoa — nền nút chính, accent-color; chữ dùng --myan-link (#7A6455 trên nền muted chỉ 4.16:1) */
    --myan-brand-hover: #625044; /* hover nút chính */
    --myan-accent: #2f0b11; /* burgundy — section CTA lớn, chữ ivory */
    --myan-link: #6b5749;
    --myan-link-hover: var(--myan-brand-hover);
    --myan-line: #d6cec4; /* viền */
    --myan-tone-1: #e9e3db; /* tông ảnh placeholder */
    --myan-tone-2: #e4dcd2;
    --myan-tone-3: #d9cec2;
    --myan-tone-4: #cdbfb1;

    /* Form (Contact Dock, /booking/ — footer.md 3.2) */
    --myan-input-border: var(--myan-line-strong); /* viền ô nhập; trên nền muted đặt lại = --myan-muted (line-strong chỉ 2.96:1) */
    --myan-error: #9b3f38; /* chữ + viền lỗi */
    --myan-error-bg: #f8ecea; /* nền hộp lỗi */
    --myan-success: #365b49; /* dấu ✓ màn đã gửi */
    --myan-success-bg: #e3ebe6; /* vòng tròn màn đã gửi */

    /* Trang chi tiết sản phẩm (product.md mục 12) */
    --myan-chip-bg: #ddd3c7; /* nền chip */
    --myan-chip-bg-hover: var(--myan-tone-4); /* #CDBFB1 — chip là link, hover (đậm hơn 1 bậc) */
    --myan-line-strong: #8a7e73; /* viền ô nhập, viền cần nhìn thấy */
    --myan-line-out: #ad9d90; /* taupe — CHỈ viền trang trí / nét đứt (cỡ hết hàng, ô upload), không dùng cho chữ (2.27:1) */
    --myan-error-line: #d9afa9; /* viền hộp lỗi (nền dùng --myan-error-bg) */
    --myan-warn: #785a2f; /* chữ cảnh báo */
    --myan-warn-bg: #f6efe4; /* nền hộp cảnh báo */
    --myan-warn-line: #d9c6a5; /* viền hộp cảnh báo */
    --myan-pdp-count-bg: rgba(32, 32, 32, 0.75); /* viên bộ đếm "1 / 8" trên dải ảnh ≤1099 (product.md mục 2) */
    --myan-lb-backdrop: rgba(32, 32, 32, 0.92); /* nền lightbox ảnh sản phẩm (product.md mục 3) */
    --myan-pdp-sheet-backdrop: rgba(32, 32, 32, 0.4); /* màn tối bottom sheet "Added to your bag" (product.md 4.11) */
    --myan-pdp-sheet-shadow: 0 -8px 24px rgba(32, 32, 32, 0.12); /* bóng bottom sheet (4.11) */
    --myan-pdp-drawer-backdrop: rgba(32, 32, 32, 0.45); /* màn tối ngăn thông tin sản phẩm (product.md mục 6) */
    --myan-pdp-drawer-shadow: -10px 0 30px rgba(32, 32, 32, 0.18); /* bóng ngăn thông tin (mục 6) */

    /* Thẻ sản phẩm (category.md mục 5) */
    --myan-status: var(--myan-muted); /* dòng trạng thái "Made to Measure" */
    --myan-card-label-bg: rgba(255, 254, 252, 0.9); /* nhãn ảnh khi hover */
    --myan-card-glass: rgba(255, 254, 252, 0.82); /* nút kính mờ trên ảnh: vòng tròn ‹ › + tim, viên thuốc bộ đếm "1 / 4" (11/11) */
    --myan-card-glass-hover: rgba(255, 254, 252, 0.95); /* hover nút kính mờ (máy có chuột) */
    --myan-card-glass-shadow: 0 1px 3px rgba(32, 32, 32, 0.15); /* bóng nút kính mờ — tách khỏi nền ảnh trắng */
    --myan-card-arrow-glow: rgba(255, 254, 252, 0.9); /* vòng sáng focus của nút Quick view trên ảnh */
    --myan-swatch-ring: #c9c0b5; /* viền 1px quanh chấm màu (swatch) */

    /* Màu trên nền brand — tương phản: chữ 5.5:1, chữ phụ 4.8:1 */
    --myan-on-brand: var(--myan-surface);
    --myan-on-brand-muted: var(--myan-bg);
    --myan-on-brand-line: rgba(255, 254, 252, 0.4);

    /* Lớp phủ trên video/ảnh (Hero film) */
    --myan-scrim: rgba(32, 32, 32, 0.62); /* gradient tối 20° dưới chữ trắng */
    --myan-glass: rgba(255, 254, 252, 0.92); /* chip + nút tròn trên video (trắng 92%) */
    --myan-label-bg: rgba(255, 254, 252, 0.9); /* nhãn chú thích trên ảnh (trắng 90%) */

    /* Studio video (myan_video) */
    --myan-video-bg: var(--myan-link-hover); /* nền khung khi poster chưa tải */
    --myan-video-scrim: linear-gradient(
        180deg,
        rgba(32, 32, 32, 0) 55%,
        rgba(32, 32, 32, 0.45) 100%
    ); /* gradient dưới, chỉ desktop */
    --myan-video-on: var(--myan-bg); /* icon + chú thích trên video */
    --myan-video-btn-line: rgba(242, 238, 231, 0.8);
    --myan-video-btn-bg: rgba(242, 238, 231, 0.12);

    /* Font */
    --myan-serif: 'Aboreto', 'Ysabeau Infant', Georgia, serif;
    --myan-sans: 'Ysabeau Infant', Arial, Helvetica, sans-serif;

    /* Cỡ chữ (desktop; bản mobile ở media bên dưới).
       H1/H2 Aboreto = cỡ cũ (trước 2026) ×0.72 / ×0.8 (brand-2026). H3 trong thiết kế là Ysabeau 500 → giữ cỡ. */
    --myan-fs-h1: 43px;
    --myan-fs-h2: 30px;
    --myan-fs-h3: 26px;
    --myan-fs-eyebrow: 16px;
    --myan-fs-body: 17px;
    --myan-fs-link: 17px;
    --myan-fs-btn: 17px;
    --myan-fs-caption: 13px;
    --myan-lh-h1: 1.04;
    --myan-lh-h2: 1.08;
    --myan-ls-display: 0.02em; /* letter-spacing mọi tiêu đề Aboreto */
    --myan-lh-body: 1.65;

    /* Bo góc (thiết kế mới 11/11, tokens.md "Bo góc"): nút chữ, link dạng nút, ô nhập, chip, badge, nút icon vuông,
       bảng thả xuống, hộp. Ngoại lệ giữ nguyên: nút tròn 50%, viên thuốc (launcher Dock desktop, Play film), chấm số giỏ,
       tim + ‹ › kính mờ, chip hero "The gown in the film", bảng mega, ảnh. */
    --myan-radius: 4px;

    /* Bố cục */
    --myan-container: 1360px; /* bề rộng NỘI DUNG tối đa (không gồm lề) */
    --myan-container-max: calc(
        var(--myan-container) + 2 * var(--myan-gutter)
    ); /* khung border-box = 1360 + 2×40 = 1440 */
    --myan-gutter: 40px;
    --myan-space-s: 64px; /* khoảng cách section: S / M / L / XL */
    --myan-space-m: 112px;
    --myan-space-l: 120px;
    --myan-space-xl: 128px;
    --myan-section: var(--myan-space-l); /* mặc định */
    --myan-btn-h: 52px;

    /* Hiệu ứng (motion.md) */
    --myan-ease: cubic-bezier(0.2, 0.7, 0.2, 1); /* ra nhanh, dừng êm */
    --myan-dur-reveal: 700ms; /* xuất hiện khi cuộn */
    --myan-dur-hover: 350ms; /* hover ảnh, link */
    --myan-dur-ui: 200ms; /* nút, màu */
    --myan-reveal-distance: 20px;
    --myan-stagger: 80ms; /* độ trễ giữa các phần tử con */
    --myan-dur-poster: 600ms; /* poster → video mờ chéo (hero) */
    --myan-dur-swap: 400ms; /* đổi sang ảnh 2 sản phẩm khi hover */

    /* Header dính (quyết định team 06/11 — header.md "Header dính"): chỉ hàng chính, không thu nhỏ.
       --myan-sticky-top = header dính + viền dưới 1px → top cho mọi thanh/cột dính, scroll-padding cho link #… */
    --myan-header-sticky-h: 74px;
    --myan-sticky-top: calc(var(--myan-header-sticky-h) + 1px);

    /* Thứ tự lớp (tokens.md "Thứ tự lớp"): nội dung (auto / 1–3 cục bộ) < thanh dính trang < header < mega
       < thanh dưới < drawer + lớp phủ < Contact Dock < bảng nhỏ (tiền tệ, live search) */
    --myan-z-sticky-bar: 20;
    --myan-z-filter-panel: 25; /* bảng lựa chọn lọc desktop: trên lưới, dưới header dính (30) */
    --myan-z-pdp-bar: 28; /* thanh CTA dính trang sản phẩm ≤1099: dưới header (30) + mega (31, trong header), drawer, Dock, toast */
    --myan-z-custom-bar: 28; /* thanh CTA dính trang Custom Designs ≤849 (trên bottom nav): như PDP bar — không cùng trang */
    --myan-z-header: 30; /* = .header-wrapper của Flatsome */
    --myan-z-mega: 31; /* nằm TRONG header (lớp của header) → trên mọi thứ trong header */
    --myan-z-bottom-nav: 40; /* drawer đóng: thanh dưới trong <body>, dưới drawer */
    --myan-z-bnav-in-drawer: 2; /* drawer mở: JS chuyển thanh vào #myan-drawer → nằm trên panel (z-index cục bộ) */
    --myan-z-drawer: 1050; /* trên popup Flatsome (1043) */
    --myan-z-toast: 1055; /* toast Wishlist: trên thanh dưới + drawer, dưới Contact Dock (cả nút Wishlist nổi) */
    --myan-z-dock: 1060;
    --myan-z-popover: 1070;
}
@media (max-width: 1285px) {
    :root {
        --myan-header-sticky-h: 60px; /* header kiểu mobile ("Mốc chuyển header") */
    }
}
/* Link #… và focus bàn phím không bị header dính che */
html {
    scroll-padding-top: var(--myan-sticky-top);
}
@media (max-width: 849px) {
    :root {
        --myan-gutter: 20px;
        --myan-fs-h1: 27px;
        --myan-fs-h2: 26px;
        --myan-fs-h3: 24px;
        --myan-fs-eyebrow: 15px;
        --myan-fs-link: 16px;
        --myan-fs-btn: 16px;
        --myan-space-s: 40px;
        --myan-space-m: 56px;
        --myan-space-l: 56px;
        --myan-space-xl: 56px;
        --myan-reveal-distance: 12px;
    }
}

/* ---------- Ghi đè font của Flatsome ----------
   Flatsome in CSS font nội tuyến trong <head> (sau file này) theo Theme Options,
   kể cả khi đã tắt Google Fonts → thêm tiền tố "html" để thắng độ ưu tiên.
   Không sửa Theme Options. */
html body {
    font-family: var(--myan-sans);
}
html body :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--myan-serif);
    font-weight: 400;
    letter-spacing: var(--myan-ls-display);
}
html .heading-font,
html .off-canvas-center .nav-sidebar.nav-vertical > li > a {
    font-family: var(--myan-serif);
}
html .heading-font,
html body .banner :where(h1, h2) {
    font-weight: 400;
}
html .alt-font,
html .is-alt-font {
    font-family: var(--myan-serif);
}
html .nav > li > a,
html .mobile-sidebar-levels-2 .nav > li > ul > li > a {
    font-family: var(--myan-sans);
    font-weight: 500;
}
html :is(.button, button, input[type='submit'], input[type='reset'], input[type='button']) {
    font-family: var(--myan-sans);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
html .cart-icon strong {
    font-family: var(--myan-sans);
}

/* ---------- Nền & chữ chung ---------- */
body {
    background: var(--myan-bg);
    color: var(--myan-text);
}
a {
    color: var(--myan-link);
}
a:hover {
    color: var(--myan-link-hover);
}
:where(a, button, summary, input, select, textarea):focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 3px;
}
/* Link có class myan-*: Flatsome a:focus { outline: none } (0,1,1) chặn rule trên → khai báo lại cùng độ ưu tiên, nạp sau nên thắng.
   a:focus của link không có class MYAN: nhánh fix/a11y-basics. */
a:where([class*='myan-']):focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 3px;
}

/* ---------- Màu Flatsome / Woo ở trang chưa có style MYAN (brand-2026 Bước 2) ----------
   Độ ưu tiên vừa đủ thắng Flatsome, thấp hơn rule "html .myan-…" của element MYAN. */
html :is(label, legend) {
    color: var(--myan-ink);
}
html :is(h6, .h6, dl) {
    opacity: 1; /* Flatsome .8 (h6, dl) làm chữ nhỏ rớt AA */
}
html span.amount {
    color: var(--myan-ink);
}
html :is(
    input[type='text'], input[type='email'], input[type='password'], input[type='search'],
    input[type='tel'], input[type='url'], input[type='number'], input[type='date'], textarea, select
) {
    border-color: var(--myan-input-border);
    background-color: var(--myan-surface);
    color: var(--myan-ink);
}
html :is(
    input[type='text'], input[type='email'], input[type='password'], input[type='search'],
    input[type='tel'], input[type='url'], input[type='number'], input[type='date'], textarea, select
):focus {
    background-color: var(--myan-surface);
    color: var(--myan-ink);
    box-shadow: none;
}
html .checkout-breadcrumbs {
    color: var(--myan-ink);
}
html .checkout-breadcrumbs a {
    color: var(--myan-muted);
}
html .checkout-breadcrumbs a:is(.current, :hover) {
    color: var(--myan-ink);
}
html .breadcrumb-step {
    background-color: var(--myan-muted);
    color: var(--myan-surface);
}
html #comments .comment-respond {
    --myan-input-border: var(--myan-muted);
    background-color: var(--myan-subtle);
}
html :is(footer.entry-meta, .next-prev-nav, .my-account-header.page-title) {
    border-color: var(--myan-line);
}
html .is-divider {
    background-color: var(--myan-line);
}
html .entry-image .badge-inner {
    background-color: var(--myan-surface);
}
html .share-icons .button.icon:not(:hover) {
    border-color: var(--myan-line-strong);
}
html .my-account-header.page-title {
    background-color: var(--myan-subtle);
}
html .wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background-color: var(--myan-brand);
    color: var(--myan-surface);
}
html .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: var(--myan-brand-hover);
    color: var(--myan-surface);
}

/* ---------- Tiêu đề Flatsome / WP / Woo ở trang chưa có style MYAN (brand-2026 Bước 3) ----------
   Aboreto rộng hơn font cũ: H1 ×0.72, còn lại ×0.8, sàn 16px (cỡ cũ đo bằng probe 19/11).
   Nhãn nhỏ đang dùng font tiêu đề → sans, giữ cỡ. */
html body :is(h1.entry-title, h1.page-title, .my-account-header h1) {
    font-size: 20px; /* 27,2 × 0.72 */
    line-height: 1.1;
}
html body :is(h2.entry-title, h2.entry-title a.plain) {
    font-size: 20px; /* 25,6 × 0.8 — danh sách bài / cô dâu */
    line-height: 1.12;
}
html body .checkout-breadcrumbs {
    font-size: 20px; /* 25,6 × 0.8 */
}
/* Woo ghi .wc-block-components-title ×2, Flatsome ghi #comments … → cần độ ưu tiên tương ứng */
html body :is(h3.uppercase, h5.author-name),
html body .wc-block-components-title.wc-block-components-checkout-step__title,
html body #comments .comment-respond .comment-reply-title {
    font-size: 16px; /* 20 / 20 / 19,2 / 16 × 0.8 → sàn 16 */
    font-weight: 400;
}
html body :is(h1, h2, h3, h4, h5, h6).uppercase,
html body .checkout-breadcrumbs {
    letter-spacing: var(--myan-ls-display); /* Flatsome .uppercase = .05em */
}
html body :is(h6.entry-category, #cancel-comment-reply-link, .wc-block-components-product-name) {
    font-family: var(--myan-sans);
    letter-spacing: normal;
}
@media (max-width: 849px) {
    html body :is(h1.entry-title, h1.page-title, .my-account-header h1) {
        font-size: 16px; /* 22,4 × 0.72 */
    }
    html body :is(h2.entry-title, h2.entry-title a.plain) {
        font-size: 16px; /* 19,2 × 0.8 = 15 → sàn 16 */
    }
}

/* Nội dung tối đa 1360px + lề 40px mỗi bên (mobile 20px) → max-width khung = 1440px (border-box) */
.myan-container {
    max-width: var(--myan-container-max);
    margin-inline: auto;
    padding-inline: var(--myan-gutter);
    box-sizing: border-box;
}

.myan-eyebrow {
    margin: 0;
    font-family: var(--myan-sans);
    font-size: var(--myan-fs-eyebrow);
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--myan-ink);
}
.myan-h1 {
    margin: 0;
    font-family: var(--myan-serif);
    font-weight: 400;
    font-size: var(--myan-fs-h1);
    line-height: var(--myan-lh-h1);
    letter-spacing: var(--myan-ls-display);
    color: var(--myan-ink);
}
.myan-h2 {
    margin: 0;
    font-family: var(--myan-serif);
    font-weight: 400;
    font-size: var(--myan-fs-h2);
    line-height: var(--myan-lh-h2);
    letter-spacing: var(--myan-ls-display);
    color: var(--myan-ink);
}
/* Trang chủ: thiết kế (Main / MobileFull) ghi H2 lh 1.15 / 1.12, khác 1.08 của các trang khác */
html .home .myan-h2 {
    line-height: 1.15;
}
@media (max-width: 849px) {
    html .home .myan-h2 {
        line-height: 1.12;
    }
}
/* H3 trong thiết kế 2026 là Ysabeau 500 (USP, Steps, How It Works), không phải Aboreto */
.myan-h3 {
    margin: 0;
    font-family: var(--myan-sans);
    font-weight: 500;
    font-size: var(--myan-fs-h3);
    line-height: 1.15;
    letter-spacing: normal;
    color: var(--myan-ink);
}
.myan-lead {
    margin: 0;
    font-size: var(--myan-fs-body);
    line-height: var(--myan-lh-body);
}
.myan-caption {
    margin: 0;
    font-size: var(--myan-fs-caption);
    line-height: 1.5;
    color: var(--myan-muted);
}

/* ---------- Nút ---------- */
.myan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--myan-btn-h);
    margin: 0;
    padding: 0 30px;
    box-sizing: border-box;
    font-family: var(--myan-sans);
    font-size: var(--myan-fs-btn);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--myan-radius);
    cursor: pointer;
    transition:
        background-color var(--myan-dur-ui) var(--myan-ease),
        border-color var(--myan-dur-ui) var(--myan-ease),
        color var(--myan-dur-ui) var(--myan-ease);
}
.myan-btn--primary {
    background: var(--myan-brand);
    border-color: var(--myan-brand);
    color: var(--myan-surface);
}
.myan-btn--light {
    background: var(--myan-surface);
    border-color: var(--myan-surface);
    color: var(--myan-ink);
}
.myan-btn--outline {
    border-color: currentColor;
    color: var(--myan-ink);
    background: transparent;
}

/* ---------- Link "… →" ---------- */
.myan-link-arrow {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--myan-sans);
    font-size: var(--myan-fs-link);
    font-weight: 600;
    line-height: 1.4;
    color: var(--myan-link);
    text-decoration: none;
}
.myan-link-arrow__text {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
.myan-link-arrow__icon {
    display: inline-block;
    transition: transform var(--myan-dur-hover) var(--myan-ease);
}
.myan-link-arrow:hover {
    color: var(--myan-link-hover);
}
.myan-link-arrow:focus-visible .myan-link-arrow__text {
    text-decoration-thickness: 2px;
}

/* ---------- Hover (chỉ thiết bị có chuột, không bật khi giảm chuyển động) ---------- */
@media (hover: hover) and (pointer: fine) {
    .myan-btn--primary:hover {
        background: var(--myan-brand-hover);
        border-color: var(--myan-brand-hover);
        color: var(--myan-surface);
    }
    .myan-btn--light:hover {
        background: var(--myan-tone-1);
        border-color: var(--myan-tone-1);
        color: var(--myan-ink);
    }
    .myan-btn--outline:hover {
        background: var(--myan-ink);
        border-color: var(--myan-ink);
        color: var(--myan-surface);
    }
    .myan-link-arrow:hover .myan-link-arrow__text {
        text-decoration-thickness: 2px;
    }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .myan-link-arrow:hover .myan-link-arrow__icon {
        transform: translateX(4px);
    }
    /* Ảnh phóng nhẹ: bọc ảnh trong .myan-media (khung overflow:hidden); hover cả thẻ link hoặc khung */
    .myan-media img {
        transition: transform var(--myan-dur-hover) var(--myan-ease);
    }
    :is(a, .myan-hover):hover .myan-media img,
    .myan-media:hover img {
        transform: scale(1.03);
    }
}
.myan-media {
    display: block;
    overflow: hidden;
}

/* ---------- Element: Section ---------- */
.myan-section {
    background: var(--myan-bg);
}
.myan-section--subtle {
    --myan-input-border: var(--myan-muted);
    background: var(--myan-subtle);
}
.myan-section--surface {
    background: var(--myan-surface);
}
.myan-section--pt-0 {
    padding-top: 0;
} /* mức "0 — Không": section nối tiếp (vd phần dưới trang danh mục) */
.myan-section--pb-0 {
    padding-bottom: 0;
}
.myan-section--pt-s {
    padding-top: var(--myan-space-s);
}
.myan-section--pt-m {
    padding-top: var(--myan-space-m);
}
.myan-section--pt-l {
    padding-top: var(--myan-space-l);
}
.myan-section--pt-xl {
    padding-top: var(--myan-space-xl);
}
.myan-section--pb-s {
    padding-bottom: var(--myan-space-s);
}
.myan-section--pb-m {
    padding-bottom: var(--myan-space-m);
}
.myan-section--pb-l {
    padding-bottom: var(--myan-space-l);
}
.myan-section--pb-xl {
    padding-bottom: var(--myan-space-xl);
}
.myan-section--border-top {
    border-top: 1px solid var(--myan-line);
}
.myan-section--border-bottom {
    border-bottom: 1px solid var(--myan-line);
}
@media (max-width: 849px) {
    .myan-section--border-top-mobile {
        border-top: 1px solid var(--myan-line);
    }
    .myan-section--border-bottom-mobile {
        border-bottom: 1px solid var(--myan-line);
    }
}

/* Nền nâu: chữ, eyebrow, link, nút viền, đường kẻ đều chuyển sang màu sáng */
.myan-section--brand {
    --myan-focus: var(--myan-bg);
    background: var(--myan-brand);
    color: var(--myan-on-brand-muted);
}
.myan-section--brand :is(.myan-h1, .myan-h2, .myan-h3, .myan-eyebrow, .myan-step__title, h1, h2, h3, h4, h5, h6) {
    color: var(--myan-on-brand);
}
.myan-section--brand :is(.myan-lead, .myan-step__text, p) {
    color: var(--myan-on-brand-muted);
}
.myan-section--brand .myan-caption,
.myan-section--brand .myan-step::before {
    color: var(--myan-on-brand-muted);
}
.myan-section--brand :is(a:not(.myan-btn), .myan-link-arrow) {
    color: var(--myan-on-brand);
}
.myan-section--brand :is(a:not(.myan-btn), .myan-link-arrow):hover {
    color: var(--myan-bg);
}
.myan-section--brand.myan-section--border-top,
.myan-section--brand.myan-section--border-bottom,
.myan-section--brand.myan-section--border-top-mobile,
.myan-section--brand.myan-section--border-bottom-mobile,
.myan-section--brand .myan-step {
    border-color: var(--myan-on-brand-line);
}
.myan-section--brand .myan-btn--primary {
    background: var(--myan-on-brand);
    border-color: var(--myan-on-brand);
    color: var(--myan-ink);
}
.myan-section--brand .myan-btn--outline {
    color: var(--myan-on-brand);
    border-color: var(--myan-on-brand);
}
@media (hover: hover) and (pointer: fine) {
    .myan-section--brand .myan-btn--primary:hover {
        background: var(--myan-tone-1);
        border-color: var(--myan-tone-1);
        color: var(--myan-ink);
    }
    .myan-section--brand .myan-btn--outline:hover {
        background: var(--myan-on-brand);
        border-color: var(--myan-on-brand);
        color: var(--myan-link);
    }
}

/* ---------- Element: Section heading ---------- */
.myan-heading {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.myan-heading__text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: var(--myan-heading-max, 760px);
}
.myan-heading--center {
    align-items: center;
    text-align: center;
}
.myan-heading--center .myan-heading__text {
    align-items: center;
    margin: 0 auto;
}
@media (min-width: 850px) {
    /* Có link: link nằm bên phải, thẳng hàng đáy với khối chữ */
    .myan-heading--has-link:not(.myan-heading--center) {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        gap: 40px;
    }
    .myan-heading--has-link:not(.myan-heading--center) .myan-heading__link {
        flex-shrink: 0;
    }
    .myan-heading--gap-16 .myan-heading__text {
        gap: 16px;
    } /* Studio */
}
@media (max-width: 849px) {
    .myan-heading__text {
        gap: 12px;
    }
    /* Tùy chọn "Ẩn link trên mobile" → link đặt lại ở cuối section bằng myan_link "Chỉ mobile" */
    .myan-heading--link-desktop .myan-heading__link {
        display: none;
    }
}

/* Tùy chọn "Kiểu tiêu đề: Chữ nhỏ in hoa" — H2 trông như eyebrow (category.md 6.1 "Complete Your Bridal Look") */
html .myan-heading__title--eyebrow {
    margin: 0;
    font-family: var(--myan-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--myan-ink);
}
/* Tùy chọn "Cỡ tiêu đề: Lớn" (category.md 6.2, 6.3): Aboreto 37/26 (cỡ cũ 46/32 ×0.8), lh theo thiết kế */
html .myan-heading__title--lg {
    font-size: 37px;
    line-height: 1.08;
}
@media (max-width: 849px) {
    html .myan-heading__title--eyebrow {
        font-size: 15px;
        letter-spacing: 0.14em;
    }
    html .myan-heading__title--lg {
        font-size: 26px;
        line-height: 1.1;
    }
    .myan-heading--eyebrow .myan-heading__text {
        gap: 10px;
    }
    html .myan-heading--eyebrow .myan-lead {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ---------- Element: Consultation CTA ---------- */
.myan-cta {
    --myan-input-border: var(--myan-muted);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background: var(--myan-subtle);
}
.myan-cta--dark {
    --myan-focus: var(--myan-bg);
    background: var(--myan-brand);
    color: var(--myan-on-brand-muted);
}
.myan-cta--dark :is(.myan-h2, .myan-eyebrow) {
    color: var(--myan-on-brand);
}
.myan-cta--dark .myan-lead {
    color: var(--myan-on-brand-muted);
}
.myan-cta__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 360px;
}
.myan-cta__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 64px;
}
.myan-cta__body .myan-btn {
    margin-top: 8px;
}
.myan-cta--no-image {
    grid-template-columns: 1fr;
}
@media (max-width: 849px) {
    .myan-cta {
        grid-template-columns: 1fr;
    }
    .myan-cta__img {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    .myan-cta__body {
        padding: 32px var(--myan-gutter) 40px;
        gap: 16px;
    }
    .myan-cta__body .myan-btn {
        width: 100%;
    }
}

/* ---------- Element: Process steps ---------- */
.myan-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    counter-reset: myan-step;
}
.myan-step {
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--myan-ink);
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-increment: myan-step;
}
.myan-step::before {
    content: counter(myan-step, decimal-leading-zero);
    font-size: var(--myan-fs-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--myan-muted);
}
/* Thiết kế 2026: tiêu đề bước / USP là Ysabeau 500 (Main, CategoryDesktop) → giữ cỡ, không quy đổi */
.myan-step__title {
    margin: 0;
    font-family: var(--myan-sans);
    font-weight: 500;
    font-size: var(--myan-fs-h3);
    line-height: 1.2;
    letter-spacing: normal;
    color: var(--myan-ink);
}
.myan-step__text {
    margin: 0;
    font-size: var(--myan-fs-body);
    line-height: var(--myan-lh-body);
}
/* Kiểu mới (style="plain|numbered"). Không có class kiểu = giao diện cũ ở trên, không đổi. "html" thắng margin p/h của Flatsome. */
html .myan-steps:is(.myan-steps--plain, .myan-steps--numbered) .myan-step__title {
    line-height: 1.15;
}
html .myan-steps--sans .myan-step__title {
    font-family: var(--myan-sans);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}
/* Không số — USP: 4 cột, viền trên mỗi mục */
html .myan-steps--plain {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 40px;
}
html .myan-steps--plain .myan-step {
    padding-top: 18px;
    gap: 10px;
}
.myan-steps--plain .myan-step::before {
    content: none;
}
html .myan-steps--plain .myan-step__text {
    line-height: 1.6;
}
/* Có số — How It Works: 5 cột sát nhau → viền trên liền suốt hàng; số 15px/600 */
html .myan-steps--numbered {
    --myan-stagger: 100ms;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}
html .myan-steps--numbered .myan-step {
    padding: 24px 24px 24px 0;
    gap: 10px;
}
.myan-steps--numbered .myan-step::before {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.08em;
    color: var(--myan-link);
}
html .myan-steps--numbered .myan-step__text {
    line-height: 1.55;
}
@media (min-width: 850px) and (max-width: 1099px) {
    html .myan-steps--plain {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html .myan-steps--numbered {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 849px) {
    html .myan-steps:is(.myan-steps--plain, .myan-steps--numbered) {
        grid-template-columns: minmax(0, 1fr);
    }
    html .myan-steps--sans .myan-step__title {
        font-size: 18px;
    }
    html .myan-steps--plain {
        gap: 22px;
    }
    html .myan-steps--plain .myan-step {
        padding-top: 14px;
        gap: 8px;
    }
    /* Có số trên mobile: viền TRÁI liền (không viền trên) */
    html .myan-steps--numbered .myan-step {
        padding: 0 0 24px 18px;
        gap: 6px;
        border-top: 0;
        border-left: 1px solid var(--myan-ink);
    }
}

/* Hộp ví dụ (trường "Ví dụ" của Step): chỉ kiểu Modes trên desktop hiện */
.myan-step__example {
    border-radius: var(--myan-radius);
    display: none;
}
/* Kiểu Modes — "How a MYAN design becomes yours" (category.md 6.2): 1 viền ink chạy suốt trên lưới, mục không viền.
   Tiêu đề Ysabeau 500 28/24 (thiết kế), không quy đổi. */
html .myan-steps--modes {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    border-top: 1px solid var(--myan-ink);
}
html .myan-steps--modes .myan-step {
    padding: 28px 28px 28px 0;
    gap: 12px;
    border-top: 0;
}
.myan-steps--modes .myan-step::before {
    content: none;
}
html .myan-steps--modes .myan-step__title {
    font-size: 28px;
    line-height: 1.15;
}
html .myan-steps--modes .myan-step__text {
    font-size: 16px;
    line-height: 1.6;
}
html .myan-steps--modes .myan-step__example {
    display: block;
    margin: 0;
    padding: 12px 14px;
    background: var(--myan-subtle);
    font-size: 16px;
    line-height: 1.55;
    color: var(--myan-ink);
}
@media (max-width: 849px) {
    /* Giữ viền trên ink như desktop (CategoryMobile); cách H2 18px (thắng .myan-mt-40-24 = 24) */
    html .myan-steps--modes {
        grid-template-columns: minmax(0, 1fr);
    }
    html body .myan-steps--modes[class*="myan-mt-"] {
        margin-top: 18px;
    }
    html .myan-steps--modes .myan-step {
        padding: 20px 0;
        gap: 8px;
        border-bottom: 1px solid var(--myan-line);
    }
    html .myan-steps--modes .myan-step__title {
        font-size: 24px;
    }
    html .myan-steps--modes .myan-step__text {
        line-height: 1.55;
    }
    html .myan-steps--modes .myan-step__example {
        display: none;
    }
}

/* ---------- Element: Hero film ----------
   Desktop: chữ đè video góc dưới trái; chip + nút pause góc dưới phải. Mobile: chữ DƯỚI video.
   data-state: poster · loading · playing · paused · reduced (JS: assets/js/myan-hero-film.js) */
/* H1 theo HeroFilm 2026 (thiết kế ghi rõ): lh 1.05; desktop letter-spacing -0.01em, mobile giữ .02em của .myan-h1 */
html .myan-hero-film .myan-hero-film__title {
    line-height: 1.05;
}
@media (min-width: 850px) {
    html .myan-hero-film .myan-hero-film__title {
        letter-spacing: -0.01em;
    }
}
.myan-hero-film {
    position: relative;
    background: var(--myan-bg);
}
.myan-hero-film__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 820px;
    min-height: 520px;
    width: 100%;
    background: var(--myan-tone-3);
}
.myan-hero-film__media picture {
    display: contents;
}
/* Chỉ trong UX Builder: cảnh báo video nặng / HEVC (inc/hero-video.php) */
.myan-hero-film__note {
    position: absolute;
    z-index: 4;
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border: 1px dashed var(--myan-warn-line);
    border-radius: var(--myan-radius);
    background: var(--myan-warn-bg);
    font-size: 14px;
    line-height: 1.4;
    color: var(--myan-warn);
    box-sizing: border-box;
}
html .myan-hero-film__note p {
    margin: 0;
}
.myan-hero-film__poster,
.myan-hero-film__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Video ẩn tới khi thật sự phát → mờ chéo lên trên poster, không nháy đen */
.myan-hero-film__video {
    /* Tràn 2px mỗi cạnh (khung overflow:hidden cắt đi): file video có hàng điểm ảnh tối ở mép (do encode),
       video cùng tỉ lệ khung → object-fit không cắt → hiện thành vạch tối dưới header */
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    opacity: 0;
    transition: opacity var(--myan-dur-poster) var(--myan-ease);
}
.myan-hero-film.is-ready .myan-hero-film__video {
    opacity: 1;
}

/* Chip sản phẩm + nút pause: cùng 1 hàng, góc dưới phải, nằm trên video */
.myan-hero-film__controls {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.myan-hero-film__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    box-sizing: border-box;
    background: var(--myan-glass);
    color: var(--myan-ink);
    text-decoration: none;
    font-family: var(--myan-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color var(--myan-dur-ui) var(--myan-ease);
}
.myan-hero-film__chip strong {
    font-weight: 600;
}
.myan-hero-film__chip-icon {
    display: inline-block;
    transition: transform var(--myan-dur-hover) var(--myan-ease);
}
.myan-hero-film__chip:hover {
    color: var(--myan-ink);
}
.myan-hero-film__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-sizing: border-box;
    background: var(--myan-glass);
    color: var(--myan-ink);
    cursor: pointer;
    font-family: var(--myan-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    transition: background-color var(--myan-dur-ui) var(--myan-ease);
}
.myan-hero-film__toggle[hidden] {
    display: none;
}
.myan-hero-film__icon-play,
.myan-hero-film__toggle-text {
    display: none;
}
/* Đang phát / đang tải → icon pause; tạm dừng → icon play */
.myan-hero-film:is([data-state='paused'], [data-state='reduced']) .myan-hero-film__icon-pause {
    display: none;
}
.myan-hero-film:is([data-state='paused'], [data-state='reduced']) .myan-hero-film__icon-play {
    display: block;
}
/* Giảm chuyển động: chưa tự phát → nút có chữ "Play film" */
.myan-hero-film[data-state='reduced'] .myan-hero-film__toggle {
    padding: 0 18px 0 16px;
}
.myan-hero-film[data-state='reduced'] .myan-hero-film__toggle-text {
    display: inline;
}

/* Thanh tiến trình 3px sát đáy video */
.myan-hero-film__progress {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--myan-on-brand-line);
}
.myan-hero-film__bar {
    display: block;
    height: 100%;
    background: var(--myan-surface);
    transform: scaleX(0);
    transform-origin: 0 50%;
}
.myan-hero-film:not(.is-ready) .myan-hero-film__progress {
    display: none;
}

.myan-hero-film__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.myan-hero-film__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.myan-hero-film__btn {
    --myan-btn-h: 54px;
    background: var(--myan-surface);
    border-color: var(--myan-surface);
    color: var(--myan-ink);
}
.myan-hero-film__btn2 {
    --myan-btn-h: 54px;
    background: transparent;
    border-color: var(--myan-surface);
    color: var(--myan-surface);
}

@media (min-width: 850px) {
    /* Gradient tối 20° từ góc dưới trái để chữ trắng đủ tương phản */
    .myan-hero-film__media::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(20deg, var(--myan-scrim) 0%, transparent 60%);
    }
    /* left: màn hình > 1440px thì khối chữ thẳng hàng với nội dung container (không dính mép trái) */
    .myan-hero-film__body {
        position: absolute;
        z-index: 2;
        left: max(0px, calc((100% - var(--myan-container-max)) / 2));
        bottom: 72px;
        max-width: min(760px, 62%);
        padding: 0 var(--myan-gutter);
        box-sizing: border-box;
    }
    .myan-hero-film__body :is(.myan-eyebrow, .myan-h1) {
        color: var(--myan-surface);
    }
    @media (hover: hover) and (pointer: fine) {
        .myan-hero-film__btn:hover {
            background: var(--myan-tone-1);
            border-color: var(--myan-tone-1);
            color: var(--myan-ink);
        }
        .myan-hero-film__btn2:hover {
            background: var(--myan-surface);
            color: var(--myan-ink);
        }
    }
}
@media (hover: hover) and (pointer: fine) {
    .myan-hero-film__chip:hover,
    .myan-hero-film__toggle:hover {
        background: var(--myan-surface);
    }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .myan-hero-film__chip:hover .myan-hero-film__chip-icon {
        transform: translateX(4px);
    }
}

@media (max-width: 849px) {
    .myan-hero-film__media {
        aspect-ratio: 4 / 5;
        max-height: none;
        min-height: 0;
    } /* 390px → cao 488px */
    .myan-hero-film__controls {
        right: 12px;
        bottom: 14px;
    }
    .myan-hero-film__chip {
        font-size: 13px;
    }
    /* Khoảng cách: eyebrow → H1 14px · H1 → nút 18px (gap 14 + margin 4) · nút → link 14px · đáy 40px */
    .myan-hero-film__body {
        padding: 24px var(--myan-gutter) 40px;
        gap: 14px;
    }
    .myan-hero-film__body :is(p, h1) {
        margin: 0;
    }
    .myan-hero-film__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 14px;
        margin-top: 4px;
    }
    /* Nút 1: nâu full-width 52px · Nút 2: link gạch chân 16px, căn giữa */
    .myan-hero-film__btn {
        --myan-btn-h: 52px;
        width: 100%;
        background: var(--myan-brand);
        border-color: var(--myan-brand);
        color: var(--myan-surface);
    }
    .myan-hero-film .myan-hero-film__btn2 {
        --myan-btn-h: 0;
        display: block;
        align-self: stretch;
        padding: 0;
        border: 0;
        color: var(--myan-link);
        font-size: var(--myan-fs-link);
        text-align: center;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 4px;
    }
    .myan-hero-film__btn:hover {
        color: var(--myan-surface);
    }
    .myan-hero-film__btn2:hover {
        color: var(--myan-link-hover);
    }
}
@media (prefers-reduced-motion: reduce) {
    .myan-hero-film__video {
        transition: none;
    }
}

/* ---------- Element: Category cards ----------
   Desktop: lưới 5 cột. Mobile: dải cuộn ngang sát mép màn hình (margin âm = lề container), scroll-snap.
   Selector có "html" phía trước để thắng CSS Flatsome (list, link, margin). */
html .myan-cat-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}
html * + .myan-cat-cards {
    margin-top: 40px;
} /* cách khối mở đầu */
html .myan-cat-cards__item {
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}
html .myan-cat-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--myan-ink);
    text-decoration: none;
    text-align: left;
}
html .myan-cat-card:hover {
    color: var(--myan-ink);
}
.myan-cat-card__media {
    aspect-ratio: 3 / 4;
    background: var(--myan-tone-2);
}
html .myan-cat-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}
.myan-cat-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.myan-cat-card__title {
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--myan-ink);
}
.myan-cat-card__sub {
    font-family: var(--myan-sans);
    font-size: 15px;
    line-height: 1.45;
    color: var(--myan-text);
}
@media (max-width: 849px) {
    html .myan-cat-cards {
        display: flex;
        gap: 12px;
        margin-left: calc(-1 * var(--myan-gutter));
        margin-right: calc(-1 * var(--myan-gutter));
        padding: 0 var(--myan-gutter);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--myan-gutter);
        scrollbar-width: none;
    }
    html .myan-cat-cards::-webkit-scrollbar {
        display: none;
    }
    html * + .myan-cat-cards {
        margin-top: 24px;
    }
    html .myan-cat-cards__item {
        flex: 0 0 150px;
        scroll-snap-align: start;
    }
    html .myan-cat-card {
        gap: 10px;
    }
    .myan-cat-card__media {
        width: 150px;
        height: 200px;
    }
    .myan-cat-card__title {
        font-size: 14px;
        letter-spacing: 0.08em;
        line-height: 1.3;
    }
    .myan-cat-card__sub {
        font-size: 14px;
    }
}

/* Tùy chọn (category.md 6.1 "Complete Your Bridal Look"). Không có class = giao diện trang chủ ở trên, không đổi. */
html .myan-cat-cards--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
html * + .myan-cat-cards--cols-3 {
    margin-top: 36px;
}
html .myan-cat-cards--flush {
    gap: 0;
}
html .myan-cat-cards--flush .myan-cat-card__text {
    padding-right: 16px;
} /* thẻ sát nhau → tên dài không chạm cột bên */
.myan-cat-cards--4x5 .myan-cat-card__media {
    aspect-ratio: 4 / 5;
}
.myan-cat-cards--no-sub .myan-cat-card__sub {
    display: none;
}
@media (max-width: 849px) {
    html * + .myan-cat-cards--cols-3 {
        margin-top: 20px;
    }
    /* Kiểu mobile "Lưới 3 cột": bỏ dải cuộn ngang, ảnh cao 160px */
    html .myan-cat-cards--m-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        overflow: visible;
        scroll-snap-type: none;
    }
    html .myan-cat-cards--m-grid.myan-cat-cards--flush {
        gap: 0;
    }
    html .myan-cat-cards--m-grid .myan-cat-cards__item {
        flex: none;
    }
    .myan-cat-cards--m-grid .myan-cat-card__media {
        width: auto;
        height: 160px;
        aspect-ratio: auto;
    }
    .myan-cat-cards--m-grid .myan-cat-card__title {
        font-size: 13px;
        letter-spacing: 0.06em;
        line-height: 1.3;
    }
    html .myan-cat-cards--flush .myan-cat-card__text {
        padding-right: 8px;
    }
}

/* ---------- Element: Shop by Style chips ----------
   Khối có viền trên + nhãn. Desktop chip tự xuống dòng; mobile 1 hàng cuộn ngang sát mép màn hình. */
html .myan-chips {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--myan-line);
}
html .myan-chips__label {
    margin: 0 0 18px;
    font-family: var(--myan-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--myan-ink);
    text-align: left;
}
html .myan-chips__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
html .myan-chips__item {
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
}
html .myan-chip {
    border-radius: var(--myan-radius);
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 18px;
    box-sizing: border-box;
    font-family: var(--myan-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    color: var(--myan-ink);
    text-decoration: none;
    background: var(--myan-surface);
    border: 1px solid var(--myan-line);
    transition:
        background-color var(--myan-dur-ui) var(--myan-ease),
        border-color var(--myan-dur-ui) var(--myan-ease),
        color var(--myan-dur-ui) var(--myan-ease);
}
@media (hover: hover) and (pointer: fine) {
    html a.myan-chip:hover {
        border-color: var(--myan-ink);
        color: var(--myan-ink);
    }
}
@media (max-width: 849px) {
    html .myan-chips {
        margin-top: 32px;
        padding-top: 24px;
    }
    html .myan-chips__label {
        margin-bottom: 14px;
        font-size: 15px;
    }
    html .myan-chips__list {
        flex-wrap: nowrap;
        gap: 8px;
        margin-left: calc(-1 * var(--myan-gutter));
        margin-right: calc(-1 * var(--myan-gutter));
        padding: 0 var(--myan-gutter);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }
    html .myan-chips__list::-webkit-scrollbar {
        display: none;
    }
    html .myan-chip {
        height: 44px;
        padding: 0 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html .myan-chip {
        transition: none;
    }
}

/* ---------- Element: The MYAN Edit ----------
   1 thẻ link "Shop the Edit" duy nhất; đổi vị trí bằng grid-template-areas:
   ≥1152px: lưới trái + (chữ, link) phải, căn giữa dọc · 850–1151px & mobile: chữ → lưới → link.
   Cột desktop = flex 1 1 640px / 1 1 360px, gap 72px: cột trái = 640 + (W − 1072)/2 = 50% + 104px.
   Selector có "html" phía trước để thắng CSS Flatsome (list, p, h2, link, ảnh). */
html .myan-edit {
    display: grid;
    column-gap: 72px;
    row-gap: 0;
    grid-template-columns: minmax(0, calc(50% + 104px)) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: 'grid .' 'grid text' 'grid more' 'grid .';
}
html .myan-edit__grid {
    grid-area: grid;
    align-self: center;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 16px;
}
html .myan-edit__cell {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
html .myan-edit__cell--big {
    grid-column: 1;
    grid-row: 1 / span 2;
}
html .myan-edit__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    color: var(--myan-ink);
    text-decoration: none;
}
html .myan-edit__item:hover {
    color: var(--myan-ink);
}
.myan-edit__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--myan-tone-2);
}
.myan-edit__cell--big .myan-edit__media {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 360px;
}
html .myan-edit__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    transition: none;
} /* bỏ "img{transition:opacity 1s}" của Flatsome */
html .myan-edit__img--alt {
    opacity: 0;
}
.myan-edit__caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    padding: 6px 10px;
    background: var(--myan-label-bg);
    font-family: var(--myan-sans);
    font-size: var(--myan-fs-caption);
    line-height: 1.3;
    color: var(--myan-ink);
}
.myan-edit__name {
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--myan-ink);
}
html .myan-edit__text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    text-align: left;
}
html .myan-edit__text > * {
    margin: 0;
}
html .myan-edit__text .myan-lead {
    max-width: 480px;
}
html .myan-edit__more {
    grid-area: more;
    margin-top: 32px;
} /* gap 24px + margin-top 8px */
html .myan-edit__empty {
    grid-area: grid;
    margin: 0;
    padding: 24px;
    border: 1px dashed var(--myan-line);
    font-size: 15px;
    color: var(--myan-muted);
}
/* Hover đổi ảnh 2: chỉ thiết bị có chuột; giảm chuyển động → đổi ngay, không mờ chéo, không phóng */
@media (hover: hover) and (pointer: fine) {
    html .myan-edit__item:hover .myan-edit__media--swap .myan-edit__img--alt {
        opacity: 1;
    }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html .myan-edit__img {
        transition: transform var(--myan-dur-hover) var(--myan-ease);
    }
    html .myan-edit__img--alt {
        transition:
            opacity var(--myan-dur-swap) var(--myan-ease),
            transform var(--myan-dur-hover) var(--myan-ease);
    }
}
/* 850–1151px: khối chữ không đủ chỗ bên phải → lên trên lưới, căn trái (giống mobile) */
@media (min-width: 850px) and (max-width: 1151px) {
    html .myan-edit {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: 'text' 'grid' 'more';
    }
    html .myan-edit__text {
        margin-bottom: 40px;
    }
}
@media (max-width: 849px) {
    html .myan-edit {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: 'text' 'grid' 'more';
    }
    html .myan-edit__text {
        gap: 12px;
        margin-bottom: 24px;
    }
    html .myan-edit__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
    }
    html .myan-edit__cell--big {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    html .myan-edit__item {
        gap: 8px;
    }
    .myan-edit__media {
        aspect-ratio: auto;
        height: 200px;
    }
    .myan-edit__cell--big .myan-edit__media {
        flex: none;
        min-height: 0;
        height: 420px;
    }
    .myan-edit__caption {
        left: 10px;
        bottom: 10px;
        padding: 5px 9px;
    }
    .myan-edit__name {
        font-size: 14px;
        letter-spacing: 0.04em;
    }
    .myan-edit__cell--big .myan-edit__name {
        font-size: 15px;
        letter-spacing: 0.06em;
    }
    html .myan-edit__more {
        margin-top: 24px;
    }
    html .myan-edit__more .myan-link-arrow__text {
        text-underline-offset: 4px;
    }
}

/* ---------- Element: Studio video ----------
   Desktop 16:7 + gradient dưới; mobile cao 240px, không gradient. Chỉ poster lúc đầu, bấm play mới tạo <video>
   (assets/js/myan-video.js). data-state: poster · playing (ẩn nút + chú thích + gradient). */
html .myan-video {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--myan-video-bg);
}
.myan-video::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--myan-video-scrim);
}
html .myan-video__poster {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}
.myan-video__video {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--myan-video-bg);
}
/* Nút tròn ở giữa (inset + margin auto để transform chỉ dùng cho hover). Selector "html body" thắng style button của Flatsome. */
html body .myan-video__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    min-height: 0;
    margin: auto;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid var(--myan-video-btn-line);
    border-radius: 50%;
    background: var(--myan-video-btn-bg);
    color: var(--myan-video-on);
    box-shadow: none;
    line-height: 1;
    cursor: pointer;
}
html body .myan-video__play:focus-visible {
    outline: 2px solid var(--myan-video-on);
    outline-offset: 4px;
}
.myan-video__icon {
    display: block;
    width: 26px;
    height: 26px;
    margin-left: 3px; /* bù thị giác cho tam giác */
}
html .myan-video__caption {
    position: absolute;
    left: 24px;
    bottom: 20px;
    z-index: 2;
    margin: 0;
    font-family: var(--myan-sans);
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: var(--myan-video-on);
}
.myan-video[data-state='playing']::after,
html .myan-video[data-state='playing'] :is(.myan-video__play, .myan-video__caption) {
    display: none;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html body .myan-video__play {
        transition: transform var(--myan-dur-ui) var(--myan-ease);
    }
    html body .myan-video__play:hover {
        transform: scale(1.06);
    }
}
@media (max-width: 849px) {
    html .myan-video {
        aspect-ratio: auto;
        height: 240px;
    }
    .myan-video::after {
        content: none;
    }
    html body .myan-video__play {
        width: 64px;
        height: 64px;
    }
    .myan-video__icon {
        width: 22px;
        height: 22px;
        margin-left: 2px;
    }
    html .myan-video__caption {
        left: 12px;
        bottom: 10px;
        font-size: 13px;
    }
}

/* ---------- Element: Note box ----------
   Desktop: 1 hàng ngang (chữ trái max 780px · link phải), tự xuống dòng khi hẹp. Mobile: xếp dọc gap 12px. */
html .myan-note {
    border-radius: var(--myan-radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    box-sizing: border-box;
    background: var(--myan-surface);
    border: 1px solid var(--myan-line);
}
.myan-note__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 780px;
    min-width: 0;
}
html .myan-note__text p {
    margin: 0;
}
.myan-note__link {
    flex-shrink: 0;
}
@media (max-width: 849px) {
    html .myan-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 22px 20px;
    }
    .myan-note__text {
        gap: 12px;
    }
    html .myan-note__link .myan-link-arrow__text {
        text-underline-offset: 4px;
    }
}

/* ---------- Element: Link → ----------
   Chỉ bố cục (căn lề). Kiểu chữ/gạch chân/hover dùng chung .myan-link-arrow (giống link của Section heading). */
.myan-link {
    display: flex;
    justify-content: flex-start;
}
.myan-link--center {
    justify-content: center;
}
@media (max-width: 849px) {
    html .myan-link .myan-link-arrow__text {
        text-underline-offset: 4px;
    }
}

/* ---------- Element: Links row (category.md 6.2 — hàng link dưới "How a MYAN design becomes yours") ---------- */
.myan-links {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 28px;
}
.myan-links--mt-20 {
    margin-top: 20px;
}
html .myan-links .myan-link-arrow {
    font-size: 16px;
}
@media (max-width: 849px) {
    .myan-links {
        gap: 12px 22px;
    }
    html .myan-links .myan-link-arrow {
        font-size: 15px;
    }
}

/* ---------- Element: Sub nav (about.md §1 — thanh tab giữa các trang cùng nhóm, vd Our World) ----------
   Không sticky. Flatsome tắt outline của link (a:focus) → selector ≥ 2 class cho :focus-visible.
   Đường kẻ dưới vẽ bằng box-shadow inset (không dùng border + margin âm: overflow-x của __inner sẽ cắt mất 1px
   gạch 2px) → link nằm trọn trong khung, gạch 2px của trang hiện tại vẽ đè lên đường kẻ 1px. */
.myan-subnav {
    box-shadow: inset 0 -1px 0 var(--myan-line);
}
.myan-subnav__inner {
    display: flex;
    gap: 32px;
    max-width: var(--myan-container-max);
    margin: 0 auto;
    padding: 0 40px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.myan-subnav__inner::-webkit-scrollbar {
    display: none;
}
html .myan-subnav .myan-subnav__link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 52px;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    line-height: 1.3;
    color: var(--myan-text);
    text-decoration: none;
}
html .myan-subnav .myan-subnav__link.is-current {
    border-bottom-color: var(--myan-ink);
    font-weight: 600;
    color: var(--myan-ink);
}
html .myan-subnav .myan-subnav__link:hover {
    color: var(--myan-ink);
}
html .myan-subnav .myan-subnav__link:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: -2px;
}
/* Chỉ trong UX Builder: chưa có link nào */
.myan-subnav__todo {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 14px;
    color: var(--myan-warn);
}
@media (max-width: 849px) {
    .myan-subnav__inner {
        gap: 24px;
        padding: 0 20px;
    }
}

/* ---------- Element: FAQ (category.md 6.3 "Before you choose") ----------
   <details>/<summary>: mở/đóng + bàn phím do trình duyệt lo. Không animate chiều cao (motion.md) — chỉ icon + → −. */
.myan-faq {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 64px;
}
.myan-faq__head {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}
html .myan-faq__eyebrow {
    margin: 0;
    font-family: var(--myan-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--myan-muted);
}
html .myan-faq__title {
    margin: 0;
}
html .myan-faq__link {
    margin-top: 10px;
    font-size: 16px;
}
.myan-faq__list {
    flex: 2 1 560px;
    min-width: 0;
    border-top: 1px solid var(--myan-line);
}
html .myan-faq__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--myan-line);
}
html .myan-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    margin: 0;
    padding: 16px 0;
    box-sizing: border-box;
    list-style: none;
    cursor: pointer;
    font-family: var(--myan-sans);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--myan-ink);
}
.myan-faq__q::-webkit-details-marker {
    display: none;
}
.myan-faq__q::marker {
    content: '';
}
.myan-faq__q:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
.myan-faq__icon {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}
.myan-faq__icon::before,
.myan-faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 1.5px;
    margin-top: -0.75px;
    background: var(--myan-ink);
    transition:
        transform var(--myan-dur-ui) var(--myan-ease),
        opacity var(--myan-dur-ui) var(--myan-ease);
}
.myan-faq__icon::after {
    transform: rotate(90deg);
}
.myan-faq__item[open] .myan-faq__icon::after {
    transform: rotate(0deg);
    opacity: 0;
} /* + → − */
html .myan-faq__a {
    padding: 0 40px 24px 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--myan-text);
}
html .myan-faq__a p {
    margin: 0;
}
html .myan-faq__a p + p,
html .myan-faq__a :is(ul, ol) {
    margin-top: 12px;
}
html .myan-faq__a a {
    color: var(--myan-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
html .myan-faq__a a:hover {
    color: var(--myan-link-hover);
}
html .myan-faq__a strong {
    font-weight: 600;
    color: var(--myan-ink);
}
@media (max-width: 849px) {
    .myan-faq {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }
    .myan-faq__head,
    .myan-faq__list {
        flex: none;
    }
    .myan-faq__head {
        gap: 12px;
    }
    html .myan-faq__link {
        margin-top: 6px;
        font-size: 15px;
    }
    html .myan-faq__q {
        min-height: 60px;
        padding: 14px 0;
        font-size: 16px;
    }
    html .myan-faq__a {
        padding: 0 24px 20px 0;
        line-height: 1.6;
    }
}
@media (prefers-reduced-motion: reduce) {
    .myan-faq__icon::before,
    .myan-faq__icon::after {
        transition: none;
    }
}

/* ---------- Element: Real Brides grid ----------
   ≥1100: 1 hàng, số cột = số ảnh (--myan-brides-cols, PHP gán) · 850–1099: 5 cột (2 hàng) · ≤849: dải cuộn ngang 140×210
   sát mép màn hình (margin âm = lề container), scroll-snap. Không khoảng cách giữa ảnh, khung 2:3, ảnh object-fit: cover.
   Hiệu ứng: fade lần lượt cách 60ms (không dịch lên); hover: phóng 1.03 (.myan-media) + lớp phủ trắng sáng nhẹ. */
html .myan-brides {
    --myan-stagger: 60ms;
    display: grid;
    grid-template-columns: repeat(var(--myan-brides-cols, 10), minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
}
html .myan-brides__item {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    margin: 0;
    background: var(--myan-tone-2);
}
html .myan-brides__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    margin: 0;
}
html .myan-brides__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--myan-surface);
    opacity: 0;
    pointer-events: none;
}
html .myan-brides__item:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: -2px;
}
.myan-js .myan-brides[data-myan-stagger]:not(.is-visible) > * {
    transform: none;
} /* chỉ fade */
.myan-brides__empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed var(--myan-line);
    font-size: 15px;
    color: var(--myan-muted);
}
@media (hover: hover) and (pointer: fine) {
    html .myan-brides__item:hover::after {
        opacity: 0.08;
    }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html .myan-brides__item::after {
        transition: opacity var(--myan-dur-hover) var(--myan-ease);
    }
}
@media (min-width: 850px) and (max-width: 1099px) {
    html .myan-brides {
        grid-template-columns: repeat(var(--myan-brides-cols-md, 5), minmax(0, 1fr));
    }
}
@media (max-width: 849px) {
    html .myan-brides {
        display: flex;
        margin-left: calc(-1 * var(--myan-gutter));
        margin-right: calc(-1 * var(--myan-gutter));
        padding: 0 var(--myan-gutter);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--myan-gutter);
        scrollbar-width: none;
    }
    html .myan-brides::-webkit-scrollbar {
        display: none;
    }
    html .myan-brides__item {
        flex: 0 0 140px;
        width: 140px;
        height: 210px;
        scroll-snap-align: start;
    }
}

/* ---------- Element: Button ----------
   Dùng chung .myan-btn (cao 52px, 17px/600, mobile 16px). Riêng element này: padding 0 32px, căn lề, full-width mobile.
   .myan-btn--outline-brand = viền 1px + chữ brand, nền trong suốt (khác .myan-btn--outline cũ màu ink — không đổi).
   "html" phía trước để thắng màu/padding link của Flatsome. */
.myan-button {
    display: flex;
    justify-content: flex-start;
}
.myan-button--center {
    justify-content: center;
}
html .myan-button .myan-btn {
    padding: 0 32px;
}
html .myan-btn--outline-brand {
    background: transparent;
    border-color: var(--myan-brand);
    color: var(--myan-link);
}
html .myan-button .myan-btn:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
    html .myan-btn--outline-brand:hover {
        background: var(--myan-brand);
        border-color: var(--myan-brand);
        color: var(--myan-surface);
    }
}
/* Nền nâu: nút viền chuyển sang màu sáng (nút Đặc dùng quy tắc .myan-btn--primary của Section) */
html .myan-section--brand .myan-btn--outline-brand {
    border-color: var(--myan-on-brand);
    color: var(--myan-on-brand);
}
html .myan-section--brand .myan-button .myan-btn:focus-visible {
    outline-color: var(--myan-on-brand);
}
@media (hover: hover) and (pointer: fine) {
    html .myan-section--brand .myan-btn--outline-brand:hover {
        background: var(--myan-on-brand);
        border-color: var(--myan-on-brand);
        color: var(--myan-link);
    }
}
@media (max-width: 849px) {
    html .myan-button--full-mobile .myan-btn {
        width: 100%;
    }
}

/* ---------- Hiển thị theo thiết bị (tùy chọn "Hiển thị": .myan-only-desktop / .myan-only-mobile) ---------- */
@media (max-width: 849px) {
    html body .myan-only-desktop {
        display: none;
    }
}
@media (min-width: 850px) {
    html body .myan-only-mobile {
        display: none;
    }
}

/* ---------- Khoảng cách giữa element (tùy chọn "Khoảng cách phía trên": .myan-mt-DESKTOP-MOBILE) ----------
   "html body" để thắng margin: 0 trong khối từng element. */
html body .myan-mt-24-24 {
    margin-top: 24px;
}
html body .myan-mt-40-24 {
    margin-top: 40px;
}
html body .myan-mt-44-28 {
    margin-top: 44px;
}
html body :is(.myan-mt-48-24, .myan-mt-48-28) {
    margin-top: 48px;
}
html body :is(.myan-mt-56-32, .myan-mt-56-28) {
    margin-top: 56px;
}
@media (max-width: 849px) {
    html body :is(.myan-mt-40-24, .myan-mt-48-24) {
        margin-top: 24px;
    }
    html body .myan-mt-44-28,
    html body .myan-mt-48-28,
    html body .myan-mt-56-28 {
        margin-top: 28px;
    }
    html body .myan-mt-56-32 {
        margin-top: 32px;
    }
}

/* ---------- UX Builder (chỉ trong khung soạn thảo, body.ux-builder-iframe) ----------
   Builder bọc mỗi element con trong div.uxb-wrapper (inline-block, width 100%) → cho wrapper đóng vai item
   của flex/grid thay cho <li>, giữ nguyên khung chọn / tay kéo của builder. Không ảnh hưởng ngoài giao diện. */
.ux-builder-iframe :is(.myan-cat-cards, .myan-steps, .myan-chips__list, .myan-faq__list) > .uxb-wrapper {
    display: block;
    min-width: 0;
}
.ux-builder-iframe .myan-links > .uxb-wrapper {
    display: block;
    width: auto;
}
.ux-builder-iframe .myan-chips__list > .uxb-wrapper {
    width: auto;
    flex-shrink: 0;
}
/* Mỗi element nằm trong wrapper riêng → "* + .myan-cat-cards" không khớp; đặt lại khoảng cách sau khối mở đầu */
.ux-builder-iframe .uxb-wrapper + .uxb-wrapper > .myan-cat-cards {
    margin-top: 40px;
}
@media (max-width: 849px) {
    .ux-builder-iframe .myan-cat-cards > .uxb-wrapper {
        flex: 0 0 150px;
        width: 150px;
        scroll-snap-align: start;
    }
    .ux-builder-iframe .uxb-wrapper + .uxb-wrapper > .myan-cat-cards {
        margin-top: 24px;
    }
    .ux-builder-iframe .myan-cat-cards--m-grid > .uxb-wrapper {
        flex: none;
        width: auto;
    }
    .ux-builder-iframe .uxb-wrapper + .uxb-wrapper > .myan-cat-cards--cols-3 {
        margin-top: 20px;
    }
}
@media (min-width: 850px) {
    .ux-builder-iframe .uxb-wrapper + .uxb-wrapper > .myan-cat-cards--cols-3 {
        margin-top: 36px;
    }
}
/* Lưới cha–con trong khung UX Builder — quy ước .myan-custom-grid (custom-design-plan: "Quy ước element cha–con";
   dùng ở trang Custom Designs + Real Brides). Builder bọc mỗi con trong div.uxb-wrapper → lớp bọc là ô lưới, con bên
   trong không giãn theo ô. Chỉ áp dưới .ux-builder-iframe → ngoài web không đổi. Không dùng display: contents
   (builder tính khung chọn / thanh công cụ từ hộp của lớp bọc). */
.ux-builder-iframe .myan-custom-grid > .uxb-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ux-builder-iframe .myan-custom-grid > .uxb-wrapper > * {
    flex: 1 1 auto;
}
/* Hiệu ứng: luôn hiện đủ trong builder (lưới an toàn, kể cả khi lớp myan-js có mặt) */
.ux-builder-iframe [data-myan-animate],
.ux-builder-iframe [data-myan-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ---------- Header (desktop) — header.md 1.1 + 1.2 ----------
   Khung do Flatsome Header Builder dựng (cài đặt: docs/setup/header-settings.json):
   Top bar = HTML 1 (trái) · HTML 2 (phải, trống → ẩn). Hàng chính: Search + Main Menu · Logo · Top Bar Menu
   (vị trí "Top Bar Menu" đang dùng cho MENU PHẢI) + Button 1 + Cart.
   Flatsome in CSS nội tuyến trong <head> SAU file này → tiền tố "html" để thắng độ ưu tiên.
   Icon search/túi vẽ bằng SVG mask (nét 1.5) thay icon font của Flatsome. */
:root {
    --myan-header-top: 40px;
    --myan-header-main: 74px;
    --myan-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.75'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
    --myan-icon-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M4.75 8.25h14.5l-1 12.5H5.75z'/%3E%3Cpath d='M8.75 10.5V7a3.25 3.25 0 0 1 6.5 0v3.5' stroke-linecap='round'/%3E%3C/svg%3E");
    --myan-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5'/%3E%3C/svg%3E");
}

/* Nền, viền dưới 1px toàn header, container 1360 + lề 40 (thẳng mép các section) */
html #header .header-bg-color {
    background-color: var(--myan-bg);
}
html #header .header-wrapper {
    z-index: var(--myan-z-header);
    border-bottom: 1px solid var(--myan-line);
}
/* Header dính (Flatsome: header_sticky, kiểu jump, header_height_sticky = 74 cho mọi bề rộng → ≤1285 ép 60 ở khối
   Header – Mobile). Bỏ bóng của Flatsome (chỉ giữ viền dưới 1px). Reduced-motion: không trượt xuống. */
html #header .header-wrapper.stuck {
    box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
    html #header .header-wrapper.stuck {
        animation: none;
    }
}
html #header .container {
    max-width: var(--myan-container-max);
    padding-inline: var(--myan-gutter);
}

/* Top bar 40px: chữ trái + link (HTML 1). Dùng chung cho "Mobile Top" (chỉ khác cỡ chữ) */
html #top-bar {
    min-height: var(--myan-header-top);
    background-color: var(--myan-subtle);
}
html #top-bar .nav > li {
    margin: 0;
}
.myan-topbar {
    font-family: var(--myan-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--myan-ink);
    text-transform: none;
}
html #top-bar .myan-topbar a {
    display: inline;
    padding: 0;
    font-size: inherit;
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
html #top-bar .flex-col:not(:has(li)) {
    display: none;
} /* HTML 2 trống → ẩn cột */

@media (max-width: 1285px) {
    /* top bar kiểu mobile tới 1285px (mốc chuyển header) */
    html #top-bar .container {
        padding: 6px 16px;
    }
    html #top-bar .myan-topbar {
        display: block;
        font-size: 15px;
        text-align: center;
    }
    html #top-bar .myan-topbar a {
        text-underline-offset: 3px;
    }
}

/* Mốc chuyển header (header.md "Mốc chuyển header" · tokens.md). @media không dùng được biến → ghi số:
   ≥1383 desktop đầy đủ · 1286–1382 desktop thu gọn · 850–1285 header kiểu mobile · ≤849 mobile (Flatsome).
   Hàng chính 74px: lưới 3 cột, logo luôn giữa màn hình (dùng cho desktop và 850–1285) */
@media (min-width: 850px) {
    html #masthead {
        height: var(--myan-header-main);
    }
    html #masthead .header-inner {
        display: grid;
        grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
        column-gap: 20px;
        align-items: center;
    }
    /* Gán cột cố định (không dựa vào order: cột mobile ẩn vẫn có thể chiếm ô) */
    html #masthead .header-inner > * {
        grid-row: 1;
        margin-inline: 0;
    } /* Flatsome đặt margin auto cho cột → cột co lại */
    html #masthead .header-inner > .flex-left {
        grid-column: 1;
    }
    html #masthead .header-inner > #logo {
        grid-column: 2;
    }
    html #masthead .header-inner > .flex-right {
        grid-column: 3;
    }
    /* clearfix .container:after của Flatsome thành ô lưới thứ 2 → hàng 61 + 13px, mọi thứ cao lên 6,5px. Bỏ đi. */
    html #masthead .header-inner::before,
    html #masthead .header-inner::after {
        content: none;
    }
}

/* 850–1285px: header mobile (☰ · MYAN · giỏ) + top bar mobile THAY header desktop. ☰ mở drawer MYAN
   (khối "Header – Mobile" + "Drawer"). Chỉ đảo ẩn/hiện trong #header, phần còn lại giữ mốc 849 của Flatsome.
   !important vì .show-for-medium / .hide-for-medium của Flatsome dùng !important. */
@media (min-width: 850px) and (max-width: 1285px) {
    html #header .hide-for-medium {
        display: none !important;
    }
    html #header .show-for-medium {
        display: block !important;
    }
    html #masthead .header-inner > .show-for-medium.flex-right {
        justify-self: end;
    }
}

/* Desktop ≥1286px (1286–1382 thu gọn ở khối dưới) */
@media (min-width: 1286px) {
    html #masthead .header-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        width: 100%;
    }
    html #masthead .header-nav > li {
        margin: 0;
    }
    /* Menu trái dồn sát logo: khoảng trống nằm giữa Search (+ icon Wishlist nếu có) và mục menu đầu */
    html #masthead .nav-left > .header-search + li:not(.myan-hwish-item),
    html #masthead .nav-left > .header-search + .myan-hwish-item + li {
        margin-left: auto;
    }
    /* Menu phải dồn sát logo: khoảng trống nằm sau mục menu cuối */
    html #masthead .nav-right {
        justify-content: flex-start;
    }
    html #masthead .nav-right > .menu-item:not(:has(~ .menu-item)) {
        margin-right: auto;
    }

    /* Mục menu: 16px/500 UPPERCASE .06em, cao 48px, mũi tên 10px cách chữ 6px */
    html #masthead .header-nav > li.menu-item > a {
        height: 48px;
        padding: 0 10px;
        gap: 6px;
        align-items: center;
        font-family: var(--myan-sans);
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--myan-ink);
        white-space: nowrap;
    }
    html #masthead .header-nav > li.menu-item > a > .icon-angle-down {
        display: none;
    }
    html #masthead .header-nav > li.has-dropdown > a::after {
        content: '';
        flex: none;
        width: 10px;
        height: 10px;
        background-color: currentColor;
        -webkit-mask: var(--myan-icon-chevron) center / contain no-repeat;
        mask: var(--myan-icon-chevron) center / contain no-repeat;
        transition: transform var(--myan-dur-ui) var(--myan-ease);
    }
    html #masthead .header-nav > li.current-dropdown > a::after {
        transform: rotate(180deg);
    }

    /* Nút "Request a Consultation" (Button 1): cao 40px, nền brand, cách menu 8px */
    html #masthead .header-button-1 {
        margin-left: 8px;
    }
    html #masthead .header-button-1 .button {
        display: inline-flex;
        align-items: center;
        height: 40px;
        min-height: 0;
        margin: 0;
        padding: 0 14px;
        border: 0;
        border-radius: var(--myan-radius);
        background-color: var(--myan-brand);
        color: var(--myan-surface);
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        white-space: nowrap;
        box-shadow: none;
    }
}

/* Desktop thu gọn 1286–1382px (bản đầy đủ đúng tâm từ 1383): menu 14px, padding 0 6px, nút 13px */
@media (min-width: 1286px) and (max-width: 1382px) {
    html #masthead .header-nav > li.menu-item > a {
        padding: 0 6px;
        font-size: 14px;
    }
    html #masthead .header-button-1 .button {
        font-size: 13px;
    }
    /* Cột mega hẹp ở dải này: tiêu đề cột dài ("Silhouette") tràn 2px với .16em → bỏ letter-spacing */
    html :is(#header, body) .myan-mega__title { /* "html" thắng rule gốc nằm sau trong file */
        letter-spacing: normal;
    }
}

/* Logo chữ "MYAN" (chưa có ảnh logo). padding-left = letter-spacing để chữ cân giữa */
html #logo {
    width: auto;
    margin: 0;
}
html #logo > a {
    display: inline-block;
    padding-left: 0.14em; /* = letter-spacing → chữ cân giữa */
    font-family: var(--myan-serif);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.14em;
    color: var(--myan-ink);
    text-transform: uppercase;
}

/* Search + giỏ: icon 24px, vùng bấm 44×44 */
html #header :is(.header-search, .cart-item) > a {
    border-radius: var(--myan-radius); /* nút icon 44×44: viền focus bo theo */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--myan-ink);
}
html #header :is(.header-search, .cart-item) > a::before {
    /* opacity 1: Flatsome có ".nav:hover>li:not(:hover)>a:before{opacity:0}" (hiệu ứng gạch menu)
     → icon vẽ bằng ::before bị ẩn khi chuột ở trong menu / dropdown đang mở */
    content: '';
    width: 24px;
    height: 24px;
    background-color: currentColor;
    opacity: 1;
    -webkit-mask: var(--myan-icon-search) center / contain no-repeat;
    mask: var(--myan-icon-search) center / contain no-repeat;
}
html #header .cart-item > a::before {
    -webkit-mask-image: var(--myan-icon-bag);
    mask-image: var(--myan-icon-bag);
}
html #header .header-search > a > i {
    display: none;
}
@media (min-width: 1286px) {
    /* icon thẳng mép nội dung. Lùi thẻ <a> (Flatsome khóa margin-left của li đầu bằng !important) */
    html #masthead .header-search > a {
        margin-left: -10px;
    }
}
/* Chấm số giỏ: thẻ <i data-icon-label> do Flatsome cập nhật bằng fragments; ẩn glyph, giữ ::after làm chấm */
html #header .cart-item > a > i {
    position: absolute;
    inset: 0;
    font-size: 0;
}
html #header .cart-item > a > i::before {
    display: none;
}
html #header .cart-item [data-icon-label]::after {
    top: 6px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    box-shadow: none;
    opacity: 1;
    background-color: var(--myan-brand);
    color: var(--myan-surface);
    font-family: var(--myan-sans) !important; /* Flatsome đặt font Arial !important */
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0;
}

/* ---------- Header – Wishlist (wishlist.md §1, wishlist-plan Bước 1) ----------
   Phần tử Header Builder "myan-wishlist" (inc/saved.php). Desktop ≥1286: ngay sau Search (bên trái — giữ logo đúng tâm, bảng đo
   wishlist.md §1.1). Header kiểu mobile ≤1285: trước giỏ. Vùng bấm 44×44, tim viền 22px (≤1285: 21px), màu như icon túi.
   Badge chép số đo chấm số giỏ (right 2px theo đặc tả); số + aria-label do myan-saved.js, 0 mẫu / không JS → hidden.
   Focus bàn phím: rule chung html :is(#header, #myan-drawer) … :focus-visible (khối "Header – Mobile"). */
html #header .myan-hwish-item {
    margin: 0;
}
html #header .myan-hwish {
    border-radius: var(--myan-radius); /* viền focus bo theo */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--myan-ink);
}
html #header .myan-hwish::before {
    display: none; /* gạch hover menu của Flatsome (a::before trong .nav) */
}
html #header .myan-hwish__icon {
    display: block;
    flex: none;
    width: 22px;
    height: 22px;
}
html #header .myan-hwish__badge {
    position: absolute;
    top: 6px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background-color: var(--myan-brand);
    color: var(--myan-surface);
    font-family: var(--myan-sans);
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0;
    pointer-events: none;
}
html #header .myan-hwish__badge[hidden] {
    display: none;
}
@media (max-width: 1285px) {
    html #header .myan-hwish__icon {
        width: 21px;
        height: 21px;
    }
}

/* ---------- Header – Currency (header.md 1.1) ----------
   [myan_currency] trong HTML 2 (top bar phải, chỉ desktop ≥1286px). Nút + bảng chọn tự dựng (listbox),
   JS ở myan-header.js. Không JS → không hiện (chỉ hiện khi JS thêm .is-ready).
   Mép phải nút thẳng mép phải icon giỏ: icon 24px giữa vùng bấm 44px → lùi (44 − 24) / 2 = 10px. */
:root {
    --myan-focus: var(--myan-brand-hover); /* #625044 — viền focus bàn phím; nền tối đặt lại = --myan-bg */
    --myan-dur-fade: 150ms; /* mờ dần bảng chọn nhỏ */
    --myan-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E");
}
.myan-currency {
    display: none;
    position: relative;
    margin-right: 10px;
    font-family: var(--myan-sans);
}
.myan-currency.is-ready {
    display: block;
}
html .mobile-sidebar .myan-currency {
    display: none;
} /* off-canvas ☰ Flatsome (mặc định chứa HTML 2) — drawer Bước 3 dùng <select> gốc */

/* Nút: "Currency" 15px text · "USD" 15px/600 ink · mũi tên 10px, cách 6px, không viền, không nền */
html #top-bar .myan-currency__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--myan-radius);
    background: none;
    box-shadow: none;
    cursor: pointer;
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: var(--myan-text);
}
.myan-currency__code {
    font-weight: 600;
    color: var(--myan-ink);
    text-decoration: underline 1px transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color var(--myan-dur-ui) var(--myan-ease);
}
.myan-currency__btn:hover .myan-currency__code {
    text-decoration-color: currentColor;
}
.myan-currency__arrow {
    flex: none;
    width: 10px;
    height: 10px;
    background-color: var(--myan-ink);
    -webkit-mask: var(--myan-icon-chevron) center / contain no-repeat;
    mask: var(--myan-icon-chevron) center / contain no-repeat;
    transition: transform var(--myan-dur-ui) var(--myan-ease);
}
.myan-currency__btn[aria-expanded='true'] .myan-currency__arrow {
    transform: rotate(180deg);
}

/* Bảng: căn phải dưới nút, cách 8px, nổi trên header + mega menu */
html #top-bar .myan-currency__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: var(--myan-z-popover);
    min-width: 94px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background-color: var(--myan-surface);
    border: 1px solid var(--myan-line);
    border-radius: var(--myan-radius);
    box-shadow: 0 12px 28px rgba(32, 32, 32, 0.1);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--myan-dur-fade) ease,
        visibility 0s linear var(--myan-dur-fade);
}
html #top-bar .myan-currency.is-open .myan-currency__list {
    opacity: 1;
    visibility: visible;
    transition:
        opacity var(--myan-dur-fade) ease,
        visibility 0s;
}

/* Dòng: cao 40, padding 0 16, chỉ mã 14/600 ink, ✓ brand bên phải cho loại đang chọn */
html #top-bar .myan-currency__option {
    display: flex;
    align-items: center;
    height: 40px;
    margin: 0;
    padding: 0 16px;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--myan-sans);
    font-size: 14px;
    line-height: 1;
    color: var(--myan-muted);
}
.myan-currency__opt-code {
    font-weight: 600;
    color: var(--myan-ink);
}
.myan-currency__check {
    flex: none;
    width: 16px;
    height: 16px;
    margin-left: auto;
    padding-left: 16px;
    box-sizing: content-box;
}
.myan-currency__option[aria-selected='true'] .myan-currency__check {
    background-color: var(--myan-brand);
    -webkit-mask: var(--myan-icon-check) right center / 16px 16px no-repeat;
    mask: var(--myan-icon-check) right center / 16px 16px no-repeat;
}
html #top-bar .myan-currency__option:hover,
html #top-bar .myan-currency__option:focus {
    background-color: var(--myan-subtle);
}

/* Focus: chỉ khi dùng bàn phím */
.myan-currency__btn:focus,
.myan-currency__option:focus,
.myan-currency__list:focus {
    outline: none;
}
html #top-bar .myan-currency__btn:focus-visible,
html #top-bar .myan-currency__option:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html #top-bar .myan-currency__option:focus-visible {
    outline-offset: -2px;
} /* trong bảng: vẽ vào trong để không bị viền bảng che */

@media (prefers-reduced-motion: reduce) {
    html #top-bar .myan-currency__list,
    .myan-currency__arrow,
    .myan-currency__code {
        transition: none;
    }
}

/* ---------- Mega menu (header.md 1.3 + 1.4) ----------
   Nội dung: element [myan_mega] (ux-elements/myan-mega.php) trong UX Block, gắn vào mục menu (Full width + UX Block).
   1) Nội dung .myan-mega — không phụ thuộc header → hiển thị đúng cả trong UX Builder và drawer mobile (Bước 3).
      Tiền tố ":is(#header, body)" = độ ưu tiên của ID → thắng style dropdown của Flatsome (kể cả CSS nội tuyến),
      mà vẫn áp dụng khi element nằm ngoài header (UX Builder).
   2) Bảng trong header (≥1286px): tràn hết màn hình, ngay dưới viền dưới header, đè lên nội dung.
      Bảng đóng = display:none → ảnh lazy chỉ tải khi mở. Mở/đóng do myan-header.js (class .current-dropdown). */
:root {
    --myan-icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9'/%3E%3C/svg%3E");
    --myan-dur-mega-open: 200ms;
    --myan-dur-mega-close: 150ms;
}

/* 1) Nội dung */
:is(#header, body) .myan-mega {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin: 0;
    font-family: var(--myan-sans);
    text-align: left;
    color: var(--myan-text);
}
@media (min-width: 850px) {
    :is(#header, body) .myan-mega {
        max-width: var(--myan-container-max);
        margin-inline: auto;
        padding: 36px var(--myan-gutter) 40px;
    }
}
:is(#header, body) .myan-mega ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
:is(#header, body) .myan-mega li {
    display: block;
    margin: 0;
    padding: 0;
}
:is(#header, body) .myan-mega a {
    border: 0;
    text-transform: none;
    letter-spacing: 0;
}

/* Cột link: cách nhau 40px. Danh sách chia đều; có mô tả tối đa 300px */
:is(#header, body) .myan-mega__col {
    min-width: 0;
}
:is(#header, body) .myan-mega__col--list {
    flex: 1 1 0;
}
:is(#header, body) .myan-mega__col--desc {
    flex: 0 1 300px;
}
:is(#header, body) .myan-mega__col:has(+ .myan-mega__feature) {
    margin-right: 8px;
} /* cột cuối → khối nổi bật: 40 + 8 = 48px */
:is(#header, body) .myan-mega__title {
    margin: 0 0 10px;
    font-family: var(--myan-sans);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--myan-muted);
}
:is(#header, body) .myan-mega__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
:is(#header, body) .myan-mega__col--desc .myan-mega__links {
    gap: 16px;
}

/* Mục danh sách: 14px ink, padding 5px 0, không đường kẻ */
:is(#header, body) .myan-mega__link {
    display: block;
    padding: 5px 0;
    font-family: var(--myan-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--myan-ink);
    text-decoration: none;
}
:is(#header, body) .myan-mega__link.is-strong {
    font-weight: 600;
}
:is(#header, body) .myan-mega__link-text {
    text-decoration: underline 1px transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color var(--myan-dur-ui) var(--myan-ease);
}
:is(#header, body) .myan-mega__link:hover .myan-mega__link-text {
    text-decoration-color: currentColor;
}
:is(#header, body) .myan-mega__col--list .myan-mega__desc {
    display: none;
}
/* Kiểu có mô tả: tiêu đề Ysabeau 24px/400 (thiết kế 2026, không quy đổi) + mô tả 14px lh 1.45 muted, cách 3px */
:is(#header, body) .myan-mega__col--desc .myan-mega__link {
    padding: 0;
}
:is(#header, body) .myan-mega__col--desc .myan-mega__link-text {
    display: block;
    font-family: var(--myan-sans);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}
:is(#header, body) .myan-mega__desc {
    display: block;
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--myan-muted);
}

/* Khối nổi bật: NỘI DUNG rộng 460/420 (content-box) + padding-left 32px + viền trái 1px subtle (tổng 493/453), gap 12px.
   margin-left auto → LUÔN sát mép phải container (cột "có mô tả" chỉ tối đa 300px, phần còn lại để trống).
   Cách cột cuối 48px = gap 40 + margin-right 8 của cột cuối. */
:is(#header, body) .myan-mega__feature {
    box-sizing: content-box;
    flex: 0 0 var(--myan-mega-feature, 420px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: auto;
    padding-left: 32px;
    border-left: 1px solid var(--myan-subtle);
}
:is(#header, body) .myan-mega__feature-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    margin-top: -7.5px;
} /* nhãn thẳng hàng tiêu đề cột (hàng cao 32px vì nút ✕) */
:is(#header, body) .myan-mega__feature-head .myan-mega__title {
    margin: 0;
}
:is(#header, body) .myan-mega__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--myan-radius);
    background: none;
    box-shadow: none;
    color: var(--myan-ink);
    cursor: pointer;
}
:is(#header, body) .myan-mega__close::before {
    content: '';
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: var(--myan-icon-close) center / contain no-repeat;
    mask: var(--myan-icon-close) center / contain no-repeat;
}
:is(#header, body) .myan-mega__cards {
    display: grid;
    grid-template-columns: repeat(var(--myan-mega-cards, 3), minmax(0, 1fr));
    gap: 12px;
}
/* Thẻ tự nhập: 2 cột (1 thẻ vẫn giữ bề rộng như khi có 2), từ 3 thẻ → 3 cột. Đếm con trực tiếp (UX Builder: thẻ bọc) */
:is(#header, body) .myan-mega__cards--auto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
:is(#header, body) .myan-mega__cards--auto:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
:is(#header, body) .myan-mega__card-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    color: var(--myan-ink);
    text-decoration: none;
}
:is(#header, body) .myan-mega__media {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--myan-tone-1);
}
:is(#header, body) .myan-mega__img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}
:is(#header, body) .myan-mega__name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--myan-ink);
}
:is(#header, body) .myan-mega__sub {
    font-size: 13px;
    line-height: 1.35;
    color: var(--myan-muted);
}
:is(#header, body) .myan-mega__more {
    align-self: flex-start;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--myan-link);
    text-decoration: underline 1px transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color var(--myan-dur-ui) var(--myan-ease);
}
:is(#header, body) .myan-mega__more:hover {
    text-decoration-color: currentColor;
}
:is(#header, body) .myan-mega__empty {
    font-size: 13px;
    color: var(--myan-muted);
}
/* Focus bàn phím */
:is(#header, body) .myan-mega :is(a, button):focus {
    outline: none;
}
:is(#header, body) .myan-mega :is(a, button):focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}

/* UX Builder: mỗi element con nằm trong div.uxb-wrapper → thẻ bọc mới là ô flex, chuyển kích thước sang thẻ bọc */
.myan-mega > .uxb-wrapper {
    min-width: 0;
}
.myan-mega > .uxb-wrapper--myan_mega_col:has(> .myan-mega__col--list) {
    flex: 1 1 0;
}
.myan-mega > .uxb-wrapper--myan_mega_col:has(> .myan-mega__col--desc) {
    flex: 0 1 300px;
}
.myan-mega > .uxb-wrapper--myan_mega_feature {
    flex: 0 0 calc(var(--myan-mega-feature, 420px) + 33px);
    margin-left: auto;
} /* + padding 32 + viền 1 */
.myan-mega > .uxb-wrapper:has(+ .uxb-wrapper--myan_mega_feature) {
    margin-right: 8px;
}
:is(#header, body) .myan-mega > .uxb-wrapper > .myan-mega__feature {
    margin-left: 0;
}

/* 2) Bảng trong header — chỉ header desktop (≥1286px, mốc chuyển header) */
@media (min-width: 1286px) {
    /* Các lớp giữa #masthead và bảng để static → bảng định vị theo #masthead (rộng = màn hình) */
    html #masthead .header-inner,
    html #masthead .header-inner > .flex-col,
    html #masthead .header-nav,
    html #masthead .header-nav > li.menu-item-has-block {
        position: static;
    }

    /* Ghi đè dropdown Flatsome (hộp trắng hẹp, left −99999px, style nội tuyến của JS full width) */
    html #masthead .header-nav > li.menu-item-has-block > .nav-dropdown {
        display: none;
        position: absolute;
        z-index: var(--myan-z-mega);
        top: calc(100% + 1px) !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important; /* +1px: ngay dưới viền dưới header; bottom auto: JS Flatsome gắn inset nội tuyến */
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0;
        /* Cao tối đa = màn hình − đáy header (myan-header.js tính lúc mở + khi đổi cỡ cửa sổ); dài hơn thì cuộn bên trong */
        max-height: var(--myan-mega-max-h, calc(100dvh - var(--myan-header-top) - var(--myan-sticky-top)));
        overflow-y: auto;
        overscroll-behavior: contain;
        background-color: var(--myan-surface);
        border: 0;
        border-bottom: 1px solid var(--myan-line);
        border-radius: 0;
        box-shadow: 0 18px 40px rgba(32, 32, 32, 0.1);
        opacity: 0;
        transform: translateY(-8px);
        transition:
            opacity var(--myan-dur-mega-close) ease,
            transform var(--myan-dur-mega-close) ease,
            display var(--myan-dur-mega-close) allow-discrete;
    }
    html #masthead .header-nav > li.menu-item-has-block.current-dropdown > .nav-dropdown {
        display: block;
        opacity: 1;
        transform: none;
        transition:
            opacity var(--myan-dur-mega-open) ease,
            transform var(--myan-dur-mega-open) var(--myan-ease),
            display var(--myan-dur-mega-open) allow-discrete;
    }
    @starting-style {
        html #masthead .header-nav > li.menu-item-has-block.current-dropdown > .nav-dropdown {
            opacity: 0;
            transform: translateY(-8px);
        }
    }
    html #masthead .header-nav > li.menu-item-has-block::before,
    html #masthead .header-nav > li.menu-item-has-block::after {
        display: none;
    } /* mũi tên dropdown Flatsome */

    /* Mục đang mở / trang hiện tại thuộc mục: gạch dưới 1px ink dưới chữ (mũi tên xoay ở khối Header) */
    html #masthead .header-nav > li:is(.current-dropdown, .myan-current-section) > a {
        text-decoration: underline 1px var(--myan-ink);
        text-underline-offset: 6px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html #masthead .header-nav > li.menu-item-has-block > .nav-dropdown,
    html #masthead .header-nav > li.menu-item-has-block.current-dropdown > .nav-dropdown {
        transition: none;
    }
    html #masthead .header-nav > li.has-dropdown > a::after {
        transition: none;
    } /* mũi tên xoay ngay (Bước 6) */
}

/* ---------- Header – Mobile (header.md 2.2) ----------
   Header kiểu mobile ≤1285px ("Mốc chuyển header"): ☰ · MYAN · giỏ. Cao 60px, padding 0 8px (viền dưới ở khối Header).
   Nút ☰ = phần tử Header Builder "☰ MYAN Drawer" (inc/drawer.php) mở drawer bên dưới. */
:root {
    --myan-icon-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3 8h16M3 14h16'/%3E%3C/svg%3E");
    --myan-icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5'/%3E%3C/svg%3E");
    --myan-header-mobile: 60px;
}

/* Focus bàn phím mọi link/nút trên header + drawer, mọi bề rộng (header.md 5): Flatsome đặt outline none */
html :is(#header, #myan-drawer) :is(a, button, select):focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}

@media (max-width: 1285px) {
    /* Sau rule 74px (≥850) của khối Header → thắng cùng độ ưu tiên; ≤849 thắng CSS nội tuyến 70px của Flatsome */
    html #masthead,
    html #masthead .header-inner {
        height: var(--myan-header-mobile);
    }
    /* Đang dính: Flatsome ép .stuck .header-main = header_height_sticky (74) !important → ép lại 60 */
    html #header .stuck #masthead {
        height: var(--myan-header-mobile) !important;
    }
    html #header #masthead .container {
        padding: 0 8px;
    }
    html #masthead .mobile-nav > li {
        margin: 0;
    }
    /* Logo 22px .14em (padding-left = letter-spacing để chữ cân giữa) */
    html #logo > a {
        padding-left: 0.14em;
        font-size: 22px;
        letter-spacing: 0.14em;
    }
    /* Giỏ: icon 21px, vùng bấm 44×44 (chấm số giữ như desktop) */
    html #header .cart-item > a::before {
        width: 21px;
        height: 21px;
    }
}

/* Nút ☰: icon 2 gạch 22px nét 1.5, vùng bấm 44×44 */
html #header .myan-menu-btn {
    border-radius: var(--myan-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--myan-ink);
}
html #header .myan-menu-btn::before {
    content: '';
    width: 22px;
    height: 22px;
    background-color: currentColor;
    opacity: 1; /* Flatsome ẩn a:before của mục không hover trong .nav */
    -webkit-mask: var(--myan-icon-menu) center / contain no-repeat;
    mask: var(--myan-icon-menu) center / contain no-repeat;
}

/* ---------- Drawer (header.md 2.3) ----------
   HTML: inc/drawer.php (con trực tiếp của <body>) · JS: assets/js/myan-drawer.js (.is-ready, .is-open, khóa cuộn).
   ≤849px: toàn màn hình, hiện mờ + trượt nhẹ. 850–1285px: tấm 420px trượt từ trái + lớp phủ (bấm → đóng).
   Không JS: #myan-drawer:target mở drawer (JS gắn .is-ready → tắt cách này, không đổi hash).
   Đóng = display:none (chuyển bằng allow-discrete như mega menu); >1285px không bao giờ hiện. */
:root {
    --myan-overlay: rgba(32, 32, 32, 0.4);
    --myan-dur-drawer: 250ms;
}

.myan-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--myan-z-drawer);
    font-family: var(--myan-sans);
    color: var(--myan-text);
    transition: display var(--myan-dur-drawer) allow-discrete;
}
@media (max-width: 1285px) {
    .myan-drawer.is-open,
    .myan-drawer:not(.is-ready):target {
        display: block;
    }
}

.myan-drawer__overlay {
    display: none;
}
.myan-drawer__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--myan-surface);
    opacity: 0;
    transform: translateX(-16px);
    transition:
        opacity var(--myan-dur-drawer) ease,
        transform var(--myan-dur-drawer) var(--myan-ease);
}
.myan-drawer:is(.is-open, :not(.is-ready):target) .myan-drawer__panel {
    opacity: 1;
    transform: none;
}
@starting-style {
    .myan-drawer.is-open .myan-drawer__panel {
        opacity: 0;
        transform: translateX(-16px);
    }
}

/* 850–1285px: tấm 420px từ trái + lớp phủ mờ dần */
@media (min-width: 850px) {
    .myan-drawer__overlay {
        display: block;
        position: absolute;
        inset: 0;
        background-color: var(--myan-overlay);
        opacity: 0;
        cursor: default;
        transition: opacity var(--myan-dur-drawer) ease;
    }
    .myan-drawer:is(.is-open, :not(.is-ready):target) .myan-drawer__overlay {
        opacity: 1;
    }
    .myan-drawer__panel {
        right: auto;
        width: 420px;
        max-width: 100%;
        opacity: 1;
        transform: translateX(-100%);
    }
    @starting-style {
        .myan-drawer.is-open .myan-drawer__overlay {
            opacity: 0;
        }
        .myan-drawer.is-open .myan-drawer__panel {
            opacity: 1;
            transform: translateX(-100%);
        }
    }
}
@media (prefers-reduced-motion: reduce) {
    .myan-drawer,
    .myan-drawer__overlay,
    .myan-drawer__panel {
        transition: none;
    }
}

/* ---------- Khóa cuộn (assets/js/myan-ui.js lock / unlock) ----------
   Dùng chung mọi hộp thoại: drawer, hộp tìm, Contact Dock mobile, bảng lọc mobile, Quick view, lightbox / bottom sheet /
   ngăn thông tin / dialog reviews trang sản phẩm. Mặc định (product-plan Bước 9c): chỉ overflow: hidden trên html, body
   không fixed / không overflow (body overflow: hidden sẽ thành khung cuộn → phần tử sticky nhảy). iOS Safari bỏ qua
   overflow: hidden → chỉ iOS + innerWidth < 1100 (JS gắn html.myan-lock-ios): body cố định, JS đặt top = margin-top html
   (admin bar) − vị trí cuộn, mở khóa thì cuộn lại đúng chỗ. iPad ngang ≥1100 dùng cách mặc định. Class riêng từng hộp
   (html.myan-drawer-lock, .myan-search-lock, .myan-dock-lock, .myan-filter-lock, .myan-qv-lock) vẫn gắn kèm → dùng để ẩn
   Dock / thanh dưới. body.myan-listing: thắng khối "html body.myan-listing" (overflow-x: clip) của trang danh sách.
   Bù thanh cuộn (product-plan Bước 9a, thay scrollbar-gutter cũ của hộp tìm + Quick view): lock() đo
   --myan-scrollbar-w = innerWidth − clientWidth TRƯỚC khi ẩn thanh cuộn (unlock gỡ) → đệm phải cho body và mọi phần tử
   fixed bám mép phải (header dính, launcher + bảng Contact Dock, toast) → không xô ngang khi mở / đóng bất kỳ hộp nào.
   Hộp phủ kín màn hình (drawer, bảng lọc, dialog) là fixed theo khung nhìn → không bị đệm, không hụt bên phải.
   Thanh CTA dính trang sản phẩm: quy tắc riêng ở myan-pdp.css (CSS trang tách file). */
html.myan-lock {
    overflow: hidden;
}
html.myan-lock body,
html.myan-lock body.myan-listing {
    box-sizing: border-box;
    padding-right: calc(var(--myan-scrollbar-w, 0px) + env(safe-area-inset-right, 0px)); /* ≤849 body vốn đệm safe-area */
}
html.myan-lock-ios body,
html.myan-lock-ios body.myan-listing {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}
html.myan-lock #header .header-wrapper.stuck {
    box-sizing: border-box;
    padding-right: var(--myan-scrollbar-w, 0px);
}
html.myan-lock .myan-dock .myan-dock__launcher,
html.myan-lock .myan-dock .myan-dock__panel,
html.myan-lock .myan-dock .myan-dock__wish,
html.myan-lock .myan-toast {
    margin-right: var(--myan-scrollbar-w, 0px); /* bám right → lùi vào đúng bằng thanh cuộn đã ẩn */
}

/* Đầu drawer 60px: logo · ✕ */
.myan-drawer__head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--myan-header-mobile);
    padding: 0 8px;
    border-bottom: 1px solid var(--myan-line);
}
.myan-drawer .myan-drawer__logo {
    padding: 0 12px;
    font-family: var(--myan-serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--myan-ink);
}
/* Logo ảnh (Customize → Logo & Site Identity): cao bằng chữ 22px, giữ tỉ lệ */
.myan-drawer .myan-drawer__logo.has-image {
    display: flex;
    align-items: center;
    height: 44px;
}
.myan-drawer .myan-drawer__logo-img {
    display: block;
    width: auto;
    height: 22px;
    max-width: 200px;
    object-fit: contain;
}
.myan-drawer .myan-drawer__close {
    border-radius: var(--myan-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--myan-ink);
}
.myan-drawer__close::before {
    content: '';
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: var(--myan-icon-close) center / contain no-repeat;
    mask: var(--myan-icon-close) center / contain no-repeat;
}

/* Thân: cuộn dọc, đáy chừa 84px + safe-area cho thanh điều hướng dưới (≤849) / 40px (850–1285) */
.myan-drawer__body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 20px calc(84px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 850px) {
    .myan-drawer__body {
        padding-bottom: 40px;
    }
}

/* Ô tìm sản phẩm (myan_search_form, khối "Search"): 48px, viền line, icon 18px muted bên trái, chữ 16px (iOS không zoom).
   Danh sách gợi ý / Popular searches: đè lên các mục bên dưới, tự cuộn, không vượt đáy màn hình. */
.myan-drawer__search {
    position: relative;
    margin: 16px 0 8px;
}
.myan-drawer .myan-search__bar {
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--myan-line);
    background-color: var(--myan-surface);
}
.myan-drawer .myan-search__bar:focus-within {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-drawer .myan-search input.myan-search__field {
    height: 46px;
    font-family: var(--myan-sans);
    font-size: 16px;
}
.myan-drawer .myan-search__submit {
    width: 18px;
    height: 18px;
    color: var(--myan-muted);
}
.myan-drawer .myan-search__panel {
    border-radius: var(--myan-radius);
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: var(--myan-z-popover); /* trong lớp của drawer */
    max-height: calc(100dvh - var(--myan-header-mobile) - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    border: 1px solid var(--myan-line);
    background-color: var(--myan-surface);
    box-shadow: var(--myan-shadow-pop);
}

/* 5 mục chính: hàng ≥56px, viền dưới subtle, 16px/500 UPPERCASE .1em, › 16px muted (trang hiện tại: 600) */
.myan-drawer__nav,
.myan-drawer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}
.myan-drawer__nav li,
.myan-drawer__links li {
    margin: 0;
}
.myan-drawer .myan-drawer__item {
    border-radius: var(--myan-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    border-bottom: 1px solid var(--myan-subtle);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--myan-ink);
}
.myan-drawer .myan-drawer__item.is-current {
    font-weight: 600;
}
.myan-drawer__arrow {
    flex: none;
    width: 16px;
    height: 16px;
    background-color: var(--myan-muted);
    -webkit-mask: var(--myan-icon-chevron-right) center / contain no-repeat;
    mask: var(--myan-icon-chevron-right) center / contain no-repeat;
}

/* Nút tư vấn: 50px, nền brand, chữ surface 16px/600, full-width */
.myan-drawer .myan-drawer__cta {
    border-radius: var(--myan-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin-top: 20px;
    padding: 0 16px;
    background-color: var(--myan-brand);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: var(--myan-surface);
}

/* Link nhỏ (menu "MYAN · Drawer links") + ô tiền tệ: 15px text, mỗi link cao ≥40px */
.myan-drawer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    margin-top: 16px;
}
.myan-drawer .myan-drawer__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    color: var(--myan-text);
}
/* "♡ Wishlist (N)" — mục đầu hàng link nhỏ (wishlist.md §1.2): tim viền 16px cách chữ 6px; " (N)" do myan-saved.js, ẩn khi 0 */
.myan-drawer .myan-drawer__wish {
    gap: 6px;
}
.myan-drawer__wish .myan-saved-link__icon {
    flex: none;
}
.myan-drawer__wish .myan-saved-link__count[hidden] {
    display: none;
}
.myan-drawer__currency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}
.myan-drawer:not(.is-ready) .myan-drawer__currency {
    display: none;
} /* không JS: chọn không làm gì → ẩn */
.myan-drawer .myan-drawer__currency-label {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--myan-text);
}
/* <select> gốc (danh sách do hệ điều hành hiển thị) — chỉ style trạng thái đóng như nút tiền tệ desktop:
   "Currency" 15px text + mã 600 ink, không viền/nền/mũi tên mặc định, mũi tên SVG 10px cách chữ 6px (vẽ ở thẻ bọc
   vì <select> không có ::after). Mã 16px (không 15px): iOS tự phóng to khi focus ô có chữ < 16px. */
.myan-drawer__select {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.myan-drawer__select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    background-color: var(--myan-ink);
    pointer-events: none;
    -webkit-mask: var(--myan-icon-chevron) center / contain no-repeat;
    mask: var(--myan-icon-chevron) center / contain no-repeat;
}
html .myan-drawer .myan-drawer__select select {
    -webkit-appearance: none;
    appearance: none;
    width: auto;
    field-sizing: content; /* rộng theo mã đang chọn (mặc định theo mã dài nhất) → mũi tên luôn cách chữ 6px */
    height: auto;
    min-height: 40px;
    margin: 0;
    padding: 0 16px 0 0; /* mũi tên 10px + cách chữ 6px */
    border: 0;
    border-radius: var(--myan-radius);
    background: none;
    box-shadow: none;
    font-family: var(--myan-sans);
    font-size: 16px; /* ≥16px: iOS không phóng to khi bấm */
    font-weight: 600;
    line-height: 1.2;
    color: var(--myan-ink);
    cursor: pointer;
}
html #myan-drawer .myan-drawer__select select:focus {
    outline: none;
    box-shadow: none;
}
html #myan-drawer .myan-drawer__select select:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html #myan-drawer .myan-drawer__select select.is-pointer:focus-visible {
    outline: none; /* chạm / chuột (JS gắn .is-pointer): trình duyệt vẫn coi là focus-visible */
}

/* ---------- Drawer – cấp 2 (header.md 2.3 "Cấp 2") ----------
   HTML: .myan-dmega do myan-mega.php in trong ngữ cảnh drawer (<template> trong inc/drawer.php), JS clone vào
   .myan-drawer__level--2 khi bấm mục cấp 1. Cấp 1 ↔ 2 xếp chồng trong 1 ô grid, trượt ngang 250ms (.is-sliding do JS
   gắn trong lúc chuyển; reduced-motion: JS đổi ngay). Cấp không hiện = hidden. Mega desktop không dùng các class này. */
:root {
    --myan-icon-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3.5 5.5 8l4.5 4.5'/%3E%3C/svg%3E");
    --myan-icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M7 1.5v11M1.5 7h11'/%3E%3C/svg%3E");
    --myan-icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M1.5 7h11'/%3E%3C/svg%3E");
}

/* Nút "‹ Menu" (thay logo ở cấp 2): 15px/500, icon 18px, vùng bấm cao 44px */
html .myan-drawer .myan-drawer__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0 10px 0 4px;
    border: 0;
    border-radius: var(--myan-radius);
    background: none;
    box-shadow: none;
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: var(--myan-ink);
    cursor: pointer;
}
html .myan-drawer .myan-drawer__back[hidden],
.myan-drawer .myan-drawer__logo[hidden] {
    display: none;
}
.myan-drawer__back-icon {
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--myan-icon-chevron-left) center / contain no-repeat;
    mask: var(--myan-icon-chevron-left) center / contain no-repeat;
}

/* 2 cấp chồng nhau; trượt bằng transform (ra ngoài khung + 20px padding thân) */
.myan-drawer__body {
    overflow-x: hidden;
}
.myan-drawer__levels {
    display: grid;
}
.myan-drawer__level {
    grid-area: 1 / 1;
    min-width: 0;
}
.myan-drawer__level[hidden] {
    display: none;
}
.myan-drawer__level--2 {
    transform: translateX(calc(100% + 20px));
}
.myan-drawer.is-level-2 .myan-drawer__level--1 {
    transform: translateX(calc(-100% - 20px));
}
.myan-drawer.is-level-2 .myan-drawer__level--2 {
    transform: none;
}
.myan-drawer.is-sliding .myan-drawer__level {
    transition: transform var(--myan-dur-drawer) var(--myan-ease);
}

/* Tiêu đề Aboreto 27px (cỡ cũ 34 ×0.8) · link xem tất cả 15px/600 brand (cách 8px) */
html .myan-drawer .myan-dmega__title {
    margin: 20px 0 8px;
    padding: 0;
    font-family: var(--myan-serif);
    font-size: 27px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: var(--myan-ls-display);
    text-transform: none;
    color: var(--myan-ink);
}
.myan-drawer .myan-dmega__title:focus {
    outline: none; /* focus bằng JS để trình đọc màn hình đọc tên cấp, không phải phần tử bấm được */
}
.myan-drawer .myan-dmega__all {
    display: block;
    width: fit-content; /* block: không có khoảng dòng thừa → cách tiêu đề đúng 8px */
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    color: var(--myan-link);
}

.myan-dmega ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.myan-dmega li {
    margin: 0;
}

/* Cột đầu: hàng 48px (có mô tả 68px, padding 10px 0), viền dưới subtle, › 16px muted. Ysabeau (font chữ thân, như desktop kiểu danh sách) */
.myan-drawer .myan-dmega__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    border-bottom: 1px solid var(--myan-subtle);
    text-decoration: none;
    color: var(--myan-ink);
}
.myan-drawer .myan-dmega__row.has-desc {
    min-height: 68px;
    padding: 10px 0;
}
.myan-dmega__row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.myan-dmega__name {
    font-family: var(--myan-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--myan-ink);
}
.myan-dmega__desc {
    font-size: 14px;
    line-height: 1.4;
    color: var(--myan-muted);
}

/* Cột sau: accordion "Shop by …" 52px, 13px/600 UPPERCASE .16em, +/− 14px · chip 40px viền line */
.myan-dmega__acc {
    border-bottom: 1px solid var(--myan-subtle);
}
html .myan-drawer .myan-dmega__acc-head {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}
html .myan-drawer .myan-dmega__acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 52px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--myan-radius);
    background: none;
    box-shadow: none;
    font-family: var(--myan-sans);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-align: left;
    text-transform: uppercase;
    color: var(--myan-ink);
    cursor: pointer;
}
.myan-dmega__acc-icon {
    flex: none;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask: var(--myan-icon-plus) center / contain no-repeat;
    mask: var(--myan-icon-plus) center / contain no-repeat;
}
.myan-dmega__acc-btn[aria-expanded='true'] .myan-dmega__acc-icon {
    -webkit-mask-image: var(--myan-icon-minus);
    mask-image: var(--myan-icon-minus);
}
.myan-dmega__acc-panel[hidden] {
    display: none;
}
.myan-dmega__acc > .myan-dmega__chips {
    padding-top: 16px; /* cột không tiêu đề: chip luôn hiện */
}
.myan-drawer .myan-dmega__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
}
.myan-drawer .myan-dmega__chip {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--myan-line);
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: var(--myan-ink);
}

/* Khối nổi bật: nhãn 13px/600 .16em muted · hàng thẻ ngang gap 12px, cuộn ngang nếu tràn.
   3 thẻ → 124px, ảnh 160px · 1–2 thẻ → 170px, ảnh 200px. Thẻ dùng chung HTML desktop → ghi đè bằng #myan-drawer. */
.myan-drawer .myan-dmega__label {
    margin: 22px 0 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--myan-muted);
}
.myan-drawer .myan-dmega__cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.myan-dmega__cards::-webkit-scrollbar {
    display: none;
}
.myan-drawer .myan-dmega__cards > li {
    flex: 0 0 170px;
}
.myan-drawer .myan-dmega__cards--3 > li {
    flex-basis: 124px;
}
#myan-drawer .myan-mega__card-link:focus-visible {
    outline-offset: -2px; /* hàng thẻ cuộn ngang cắt viền focus bên ngoài */
}
#myan-drawer .myan-mega__media {
    aspect-ratio: auto;
    height: 200px;
}
#myan-drawer .myan-dmega__cards--3 .myan-mega__media {
    height: 160px;
}
.myan-drawer .myan-dmega__more {
    display: block;
    width: fit-content; /* block: không có khoảng dòng thừa → cách tiêu đề đúng 8px */
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    color: var(--myan-link);
}

/* ---------- WooCommerce ---------- */
.myan-price-on-request {
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--myan-ink);
}

/* ---------- Product card (category.md mục 5, category-plan Bước 1) ----------
   HTML: inc/product-card.php (myan_product_card) · JS: assets/js/myan-card.js.
   Ảnh 3:4 ở mọi trang (phụ kiện vuông cũng cắt giữa) · nhãn tối đa 2 (mobile 1) · hover ảnh 2 chỉ ≥850px + chuột ·
   ‹ › + bộ đếm ở phần bù: ≤849px HOẶC hover: none HOẶC pointer: coarse (không bao giờ có cả hai). */
html .myan-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    font-family: var(--myan-sans);
}
html .myan-card__media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--myan-tone-1); /* nền tone khi ảnh chưa tải */
}
html .myan-card__img-link {
    position: absolute;
    inset: 0;
    display: block;
}
html .myan-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: 50% 50%; /* cắt giữa (ảnh phụ kiện vuông → 3:4) */
    transition: none; /* bỏ hiệu ứng mờ dần 1s của Flatsome (img lazy) — chỉ bật lại ở khối hover không giảm chuyển động */
}
html .myan-card__img--alt,
html .myan-card__img--swap {
    opacity: 0;
}
html .myan-card__img--swap.is-in {
    opacity: 1; /* ảnh màu vừa chọn (chấm màu) — mờ chéo ở khối giảm chuyển động bên dưới */
}
html .myan-card--archived .myan-card__img-link {
    opacity: 0.8; /* Archive: ảnh mờ 80% */
}
html .myan-card.is-img-error .myan-card__img {
    visibility: hidden;
}

/* Nhãn góc trên trái */
html .myan-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}
html .myan-card__badge {
    border-radius: var(--myan-radius);
    margin: 0;
    padding: 4px 8px;
    border: 1px solid var(--myan-line);
    background: var(--myan-glass);
    color: var(--myan-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
html .myan-card__badge--new,
html .myan-card__badge--new-colour {
    background: var(--myan-surface);
    border-color: var(--myan-ink);
}
html .myan-card__badge--out {
    background: var(--myan-ink);
    border-color: var(--myan-ink);
    color: var(--myan-surface);
}
html .myan-card__badge--archive {
    background: var(--myan-subtle);
    color: var(--myan-text);
}

/* Nhãn ảnh (caption) — hiện khi hover, góc dưới trái cách 12px, đáy 64px */
html .myan-card__img-label {
    position: absolute;
    left: 12px;
    bottom: 64px;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 3px 7px;
    background: var(--myan-card-label-bg);
    color: var(--myan-ink);
    font-size: 13px;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
}

/* ‹ › + bộ đếm (cảm ứng / mobile) */
html .myan-card__nav {
    display: none;
}
@media (max-width: 849px), (hover: none), (pointer: coarse) {
    html .myan-card__nav:not([hidden]) {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 4; /* trên khung ảnh lỗi (3) → vẫn sang được ảnh khác */
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 44px;
    }
}
html .myan-card__arrow {
    position: relative; /* chứa vòng tròn kính (::before) */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent; /* vùng bấm 44×44 trong suốt — phần nhìn thấy là vòng tròn kính 32px (::before) */
    box-shadow: none;
    color: var(--myan-ink);
    line-height: 1;
    cursor: pointer;
    transition: none; /* bỏ transition của nút Flatsome → vòng focus hiện ngay */
}
html .myan-card__arrow svg {
    position: relative; /* nằm trên vòng tròn kính */
    display: block;
    width: 16px;
    height: 16px;
}

/* Nút kính mờ — ‹ ›, tim, bộ đếm (11/11, đổi so với thiết kế — đã báo team; cả trong hộp Quick view).
   Vùng bấm 44×44 giữ nguyên; bên trong vòng tròn 32px nền --myan-card-glass + bóng nhẹ, icon ink → thấy rõ trên ảnh nâu tối
   lẫn phần váy trắng. Hover (chỉ máy có chuột): nền --myan-card-glass-hover + blur 6px (nếu trình duyệt hỗ trợ); mobile không blur.
   Focus-visible: viền ink 2px cách 2px quanh vòng tròn (outline đặt trên ::before, theo bo tròn). */
html .myan-card__arrow::before,
html .myan-card__save::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border-radius: 50%;
    background: var(--myan-card-glass);
    box-shadow: var(--myan-card-glass-shadow);
    transition: background-color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-card__arrow:focus,
html .myan-card__arrow:active,
html .myan-card__save:focus,
html .myan-card__save:active {
    outline: none; /* bỏ viền / nền focus-active của nút Flatsome — chỉ còn viền focus-visible quanh vòng tròn */
    box-shadow: none;
    background: transparent;
}
html .myan-card__arrow:focus-visible::before,
html .myan-card__save:focus-visible::before {
    outline: 2px solid var(--myan-ink);
    outline-offset: 2px;
}
html .myan-card__count {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: var(--myan-card-glass);
    box-shadow: var(--myan-card-glass-shadow);
    color: var(--myan-ink);
    font-size: 13px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
    html .myan-card__arrow:hover::before,
    html .myan-card__save:hover::before {
        background: var(--myan-card-glass-hover);
    }
    @supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
        html .myan-card__arrow::before,
        html .myan-card__save::before,
        html .myan-card__count {
            -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
        }
    }
}
@media (prefers-reduced-motion: reduce) {
    html .myan-card__arrow::before,
    html .myan-card__save::before {
        transition: none;
    }
}

/* Ảnh lỗi */
html .myan-card__error:not([hidden]) {
    border-radius: var(--myan-radius);
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 1px dashed var(--myan-line-out);
    background: var(--myan-surface);
    color: var(--myan-ink);
    text-align: center;
}
html .myan-card__error-icon {
    color: var(--myan-muted);
}
html .myan-card__error-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}
html .myan-card__retry {
    min-height: 40px;
    height: 40px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid var(--myan-brand);
    border-radius: var(--myan-radius);
    background: transparent;
    color: var(--myan-link);
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 38px;
    text-transform: none;
    cursor: pointer;
    transition:
        background-color var(--myan-dur-ui) var(--myan-ease),
        color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-card__retry[aria-busy='true'] {
    opacity: 0.6;
    cursor: progress;
}

/* Chữ */
html .myan-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
/* Tên thẻ: Ysabeau 500 uppercase .06em, 20/17, lh 1.15 (ProductCard 2026) — sans, không quy đổi */
html .myan-card__title {
    margin: 0;
    padding: 0;
    font-family: var(--myan-sans);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--myan-ink);
}
html .myan-card__link {
    color: inherit;
    text-decoration: none;
}
html .myan-card--archived .myan-card__title {
    color: var(--myan-text);
}
html .myan-card__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--myan-text);
}
html .myan-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    margin: 0;
    line-height: 1.4;
}
html .myan-card__price {
    font-size: 17px;
    font-weight: 600;
    color: var(--myan-ink);
}
html .myan-card__price .amount {
    color: inherit;
    font-weight: inherit;
    white-space: nowrap;
}
html .myan-card__price-old {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 400;
    color: var(--myan-muted);
}
html .myan-card__sep {
    font-size: 14px;
    color: var(--myan-status);
}
html .myan-card__status {
    font-size: 14px;
    color: var(--myan-status);
}
html .myan-card__rating {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}
html .myan-card__rating a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--myan-ink);
    text-decoration: none;
}
html .myan-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 2px 0 0;
}
html .myan-card__action {
    color: var(--myan-link);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Chấm màu (swatch) — CHỈ desktop ≥850px, sản phẩm có ≥2 màu còn bán (11/11).
   Nút 32×32 tròn, padding 3px, viền chọn 1.5px ink (không chọn 1px trong suốt) · chấm màu viền 1px --myan-swatch-ring ·
   chấm "mới" 8px brand góc trên phải · nhãn tên màu 13px ink · "+n" 13px muted. Không JS: nút disabled, chỉ hiển thị. */
html .myan-card__colours {
    display: none;
}
@media (min-width: 850px) {
    html .myan-card__colours {
        display: block;
        margin: 2px 0;
    }
}
html .myan-card__swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
html .myan-card__swatch {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    min-height: 0;
    margin: 0;
    padding: 3px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    line-height: 1;
    cursor: pointer;
}
html .myan-card__swatch[aria-pressed='true'] {
    /* viền chọn 1.5px ink: box-shadow trong (border 1.5px bị Chrome làm tròn còn 1px ở màn DPR 1) — chấm màu không xê dịch */
    box-shadow: inset 0 0 0 1.5px var(--myan-ink);
}
html .myan-card__swatch:disabled {
    opacity: 1;
    cursor: default;
}
html .myan-card__swatch:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-card__swatch-dot {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 1px solid var(--myan-swatch-ring);
    border-radius: 50%;
    background: var(--myan-swatch, var(--myan-tone-1));
}
html .myan-card__swatch-new {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--myan-brand);
}
html .myan-card__swatch-more {
    font-size: 13px;
    line-height: 1.4;
    color: var(--myan-muted);
    text-decoration: none;
}
html .myan-card__swatch-name {
    margin-left: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--myan-ink);
}
html .myan-card__swatch-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--myan-muted);
}
html .myan-card__swatch-note:not(:empty) {
    margin-top: 4px;
}
@media (prefers-reduced-motion: no-preference) {
    html .myan-card__img--swap {
        transition: opacity var(--myan-dur-swap) var(--myan-ease);
    }
}

/* Khung xương khi nạp thêm (Bước 3) */
html .myan-card--skeleton .myan-card__media {
    background: var(--myan-tone-2);
}
html .myan-card__bone {
    display: block;
    height: 12px;
    background: var(--myan-tone-2);
}
html .myan-card__bone:nth-child(1) {
    width: 70%;
    height: 18px;
}
html .myan-card__bone:nth-child(2) {
    width: 90%;
}
html .myan-card__bone:nth-child(3) {
    width: 50%;
    height: 14px;
}
html .myan-card__bone:nth-child(4) {
    width: 35%;
    height: 10px;
}

/* Hover (chuột, ≥850px) — giảm chuyển động: đổi ngay, không mờ chéo, không phóng */
@media (min-width: 850px) and (hover: hover) and (pointer: fine) {
    html .myan-card.is-alt-ready:hover .myan-card__img--alt {
        opacity: 1;
    }
    html .myan-card:hover .myan-card__img-label {
        opacity: 1;
    }
    /* Đang chọn màu khác mặc định → tắt hover ảnh 2 + nhãn ảnh (ảnh gallery là của màu mặc định) */
    html .myan-card.is-colour.is-alt-ready:hover .myan-card__img--alt,
    html .myan-card.is-colour:hover .myan-card__img-label {
        opacity: 0;
    }
    html .myan-card__swatch-more:hover {
        color: var(--myan-ink);
        text-decoration: underline;
    }
    html .myan-card__link:hover {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 4px;
    }
    html .myan-card__action:hover {
        color: var(--myan-link-hover);
        text-decoration-thickness: 2px;
    }
    html .myan-card__retry:hover {
        background: var(--myan-brand);
        color: var(--myan-surface);
    }
}
@media (min-width: 850px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html .myan-card__img {
        transition: transform var(--myan-dur-hover) var(--myan-ease);
    }
    html .myan-card__img--alt,
    html .myan-card__img--swap {
        transition:
            opacity var(--myan-dur-swap) var(--myan-ease),
            transform var(--myan-dur-hover) var(--myan-ease);
    }
    html .myan-card__img-label {
        transition: opacity var(--myan-dur-ui) var(--myan-ease);
    }
    html .myan-card:hover .myan-card__img {
        transform: scale(1.03);
    }
}

/* Mobile */
@media (max-width: 849px) {
    html .myan-card {
        gap: 8px;
    }
    html .myan-card__badges {
        top: 8px;
        left: 8px;
        right: 8px;
    }
    html .myan-card__badge {
        font-size: 12px;
    }
    html .myan-card__badge:nth-child(n + 2) {
        display: none; /* mobile tối đa 1 nhãn */
    }
    html .myan-card__body {
        gap: 3px;
    }
    html .myan-card__title {
        font-size: 17px;
    }
    html .myan-card__desc {
        font-size: 13px;
    }
    html .myan-card__price {
        font-size: 15px;
    }
    html .myan-card__sep,
    html .myan-card__status {
        font-size: 13px;
    }
    html .myan-card__rating {
        display: none; /* ★ chỉ desktop */
    }
    /* "View details" chỉ hiện ở mobile khi Archive / hết hàng */
    html .myan-card:not(.myan-card--archived):not(.myan-card--out) .myan-card__actions {
        display: none;
    }
    html .myan-card__action {
        font-size: 14px;
    }
}

/* ---------- Category head (category.md mục 1, category-plan Bước 2) ----------
   HTML: template-parts/shop/head.php (dữ liệu: inc/shop.php) · dùng cho danh mục, Shop, kết quả tìm kiếm.
   Breadcrumb → giới thiệu (chữ + ảnh, xuống dòng khi hẹp) → tab danh mục con (mobile cuộn ngang 1 hàng).
   Không hiệu ứng xuất hiện (màn hình đầu). Prefix html để thắng CSS chung của Flatsome (h1, ul li, figure). */
html .myan-cat-head {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--myan-container-max);
    margin: 0 auto;
    padding: 0 var(--myan-gutter);
    font-family: var(--myan-sans);
    color: var(--myan-text);
}

/* Breadcrumb */
html .myan-breadcrumb {
    padding-top: 24px;
    margin: 0 0 32px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--myan-muted);
}
html .myan-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
html .myan-breadcrumb__item {
    margin: 0;
    padding: 0;
}
html .myan-breadcrumb__sep {
    margin: 0 8px;
}
html .myan-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
html .myan-breadcrumb a:hover {
    color: var(--myan-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
html .myan-breadcrumb [aria-current='page'] {
    color: var(--myan-ink);
}

/* Giới thiệu + ảnh: gap dọc 32px chỉ dùng khi xuống dòng (850–1115px), gap ngang 56px */
html .myan-cat-head__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 32px 56px;
}
html .myan-cat-head__text {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 8px;
}
html .myan-cat-head__intro:not(.has-media) .myan-cat-head__text {
    flex-basis: 100%;
}
html .myan-cat-head__title {
    margin: 0;
    font-family: var(--myan-serif);
    font-size: 46px; /* cỡ cũ 64 ×0.72; lh theo thiết kế */
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: var(--myan-ls-display);
    text-transform: none;
    color: var(--myan-ink);
    overflow-wrap: anywhere;
}
html .myan-cat-head__desc {
    max-width: 500px;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--myan-text);
}
html .myan-cat-head__desc p {
    margin: 0;
}
html .myan-cat-head__desc p + p {
    margin-top: 0.8em;
}
html .myan-cat-head__desc--mobile {
    display: none;
}
html .myan-cat-head__link {
    font-size: 15px;
}
html .myan-cat-head__link .myan-link-arrow__text {
    text-underline-offset: 4px;
}
html .myan-cat-head__media {
    position: relative;
    flex: 1.5 1 560px;
    min-width: 0;
    height: 420px;
    margin: 0;
    background: var(--myan-tone-1);
}
html .myan-cat-head__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* Flatsome: img{transition:opacity 1s} */
}
html .myan-cat-head__note {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: min(380px, calc(100% - 32px));
    padding: 7px 11px;
    background: var(--myan-label-bg);
    font-size: 13px;
    line-height: 1.45;
    color: var(--myan-ink);
}

/* Tab danh mục con */
html .myan-cat-tabs {
    padding-top: 40px;
}
html .myan-cat-tabs__list {
    position: relative; /* mốc offsetLeft cho script cuộn tab hiện tại */
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
html .myan-cat-tabs__item {
    margin: 0;
    padding: 0;
    flex: none;
}
html .myan-cat-tabs__link {
    display: block;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--myan-text);
    text-decoration: none;
    white-space: nowrap;
    transition:
        color var(--myan-dur-ui) var(--myan-ease),
        border-color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-cat-tabs__link[aria-current='page'] {
    font-weight: 600;
    color: var(--myan-ink);
    border-bottom-color: var(--myan-ink);
}
@media (hover: hover) and (pointer: fine) {
    html .myan-cat-tabs__link:hover {
        color: var(--myan-ink);
    }
    html .myan-cat-tabs__link:not([aria-current]):hover {
        border-bottom-color: var(--myan-line);
    }
}

@media (max-width: 849px) {
    html .myan-breadcrumb {
        padding-top: 12px;
        margin-bottom: 14px;
        font-size: 13px;
    }
    html .myan-breadcrumb__sep {
        margin: 0 6px;
    }
    html .myan-cat-head__intro {
        display: block;
    }
    html .myan-cat-head__text {
        display: block;
        padding-bottom: 0;
    }
    html .myan-cat-head__title {
        font-size: 29px;
        line-height: 1.05;
    }
    html .myan-cat-head__desc {
        max-width: none;
        margin-top: 10px;
        font-size: 16px;
        line-height: 1.55;
    }
    html .myan-cat-head__desc--full {
        display: none;
    }
    html .myan-cat-head__desc--mobile {
        display: block;
    }
    html .myan-cat-head__link {
        margin-top: 12px;
    }
    html .myan-cat-head__media {
        height: 200px;
        margin: 18px 0 0; /* thiết kế: margin 18px 20px 0 — 20px ngang = lề container */
    }
    html .myan-cat-head__note {
        left: 8px;
        bottom: 8px;
        max-width: calc(100% - 16px);
        padding: 4px 8px;
    }
    html .myan-cat-tabs {
        padding-top: 20px;
    }
    /* 1 hàng cuộn ngang, tràn sát mép màn hình (bù lề container); thừa 5px trên/dưới để viền focus không bị cắt */
    html .myan-cat-tabs__list {
        flex-wrap: nowrap;
        gap: 22px;
        margin: -5px calc(-1 * var(--myan-gutter)) 0;
        padding: 5px var(--myan-gutter) 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding-inline: var(--myan-gutter);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    html .myan-cat-tabs__list::-webkit-scrollbar {
        display: none;
    }
    /* padding phải không tính vào vùng cuộn ở một số trình duyệt → thêm khoảng trống cuối hàng */
    html .myan-cat-tabs__list::after {
        content: '';
        flex: 0 0 1px;
    }
    html .myan-cat-tabs__link {
        padding-bottom: 8px;
        font-size: 15px;
    }
}

/* ---------- Shop toolbar + grid (category.md 2.1, 2.4, 2.5, 3.1–3.3; category-plan Bước 3) ----------
   HTML: woocommerce/archive-product.php → template-parts/shop/toolbar.php + results.php · JS: assets/js/myan-shop.js.
   Thanh: tràn hết chiều rộng (viền trên + dưới), nội dung trong khung 1360 + lề → thẳng mép đầu trang + lưới.
   Desktop không dính; mobile dính dưới header (--myan-sticky-top). Ô lọc [data-myan-filters] để trống tới Bước 4/5.
   Sort: <select> gốc (mobile + không JS) · JS ≥850: nút + listbox (giống ô tiền tệ top bar).
   Thẻ nạp thêm: mờ dần 0.3s (chỉ opacity), tắt khi giảm chuyển động. */
html .myan-shop {
    font-family: var(--myan-sans);
    color: var(--myan-text);
}
/* Flatsome đặt overflow-x: hidden cho CẢ html lẫn body → body thành khung cuộn riêng, position: sticky không chạy.
   clip vẫn cắt tràn ngang nhưng không tạo khung cuộn (html vẫn hidden → không có thanh cuộn ngang). */
html body.myan-listing {
    overflow-x: clip;
}

/* Thanh điều khiển */
html .myan-shop-bar {
    margin-top: 12px;
    background: var(--myan-bg);
    border-top: 1px solid var(--myan-line);
    border-bottom: 1px solid var(--myan-line);
}
html .myan-shop-bar__inner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--myan-container-max);
    margin: 0 auto;
    padding: 12px var(--myan-gutter);
}
html .myan-shop-bar__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
html .myan-shop-bar__end {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}
html .myan-shop-count {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--myan-text);
}
html .myan-shop-count--below {
    display: none;
}

/* Sort */
html .myan-sort {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
html .myan-sort__native {
    border-radius: var(--myan-radius);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--myan-line);
    background: var(--myan-surface);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: var(--myan-ink);
    cursor: pointer;
}
html .myan-sort__native::after {
    content: '';
    flex: none;
    width: 13px;
    height: 13px;
    background-color: var(--myan-ink);
    pointer-events: none;
    -webkit-mask: var(--myan-icon-chevron) center / contain no-repeat;
    mask: var(--myan-icon-chevron) center / contain no-repeat;
}
html .myan-sort__label {
    flex: none;
}
html .myan-sort .myan-sort__select {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--myan-radius);
    background: none;
    box-shadow: none;
    font-family: var(--myan-sans);
    font-size: 16px; /* ≥16px: iOS không phóng to khi bấm */
    font-weight: 500;
    line-height: 1.2;
    color: var(--myan-ink);
    cursor: pointer;
    field-sizing: content;
}
html .myan-sort .myan-sort__select:focus {
    outline: none;
    box-shadow: none;
}
html .myan-sort__native:focus-within {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-sort__apply {
    height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--myan-brand);
    background: var(--myan-brand);
    font-size: 15px;
    font-weight: 600;
    color: var(--myan-surface);
}
html .myan-sort__box {
    display: none;
}

/* Nút + bảng (desktop, JS) — bảng giống ô tiền tệ: nền surface, viền line, bóng, dòng 40px, ✓ mục đang chọn */
html .myan-sort__btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    box-sizing: border-box;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--myan-line);
    border-radius: var(--myan-radius);
    background: var(--myan-surface);
    box-shadow: none;
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    color: var(--myan-ink);
    cursor: pointer;
    transition: border-color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-sort__btn-value {
    margin-left: 0.3em;
}
html .myan-sort__arrow {
    flex: none;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    background-color: var(--myan-ink);
    -webkit-mask: var(--myan-icon-chevron) center / contain no-repeat;
    mask: var(--myan-icon-chevron) center / contain no-repeat;
    transition: transform var(--myan-dur-ui) var(--myan-ease);
}
html .myan-sort__btn[aria-expanded='true'] {
    border-color: var(--myan-ink);
}
html .myan-sort__btn[aria-expanded='true'] .myan-sort__arrow {
    transform: rotate(180deg);
}
html .myan-sort__list {
    border-radius: var(--myan-radius);
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: var(--myan-z-popover);
    min-width: 100%;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background-color: var(--myan-surface);
    border: 1px solid var(--myan-line);
    box-shadow: 0 12px 28px rgba(32, 32, 32, 0.1);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--myan-dur-fade) ease,
        visibility 0s linear var(--myan-dur-fade);
}
html .myan-sort__box.is-open .myan-sort__list {
    opacity: 1;
    visibility: visible;
    transition:
        opacity var(--myan-dur-fade) ease,
        visibility 0s;
}
html .myan-sort__option {
    display: flex;
    align-items: center;
    height: 40px;
    margin: 0;
    padding: 0 16px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1;
    color: var(--myan-ink);
}
html .myan-sort__check {
    flex: none;
    width: 16px;
    height: 16px;
    margin-left: auto;
    padding-left: 20px;
    box-sizing: content-box;
}
html .myan-sort__option[aria-selected='true'] {
    font-weight: 600;
}
html .myan-sort__option[aria-selected='true'] .myan-sort__check {
    background-color: var(--myan-brand);
    -webkit-mask: var(--myan-icon-check) right center / 16px 16px no-repeat;
    mask: var(--myan-icon-check) right center / 16px 16px no-repeat;
}
html .myan-sort__option:hover,
html .myan-sort__option:focus {
    background-color: var(--myan-subtle);
}
html .myan-sort__btn:focus,
html .myan-sort__option:focus,
html .myan-sort__list:focus {
    outline: none;
}
html .myan-sort__btn:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-sort__option:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: -2px;
}
@media (min-width: 850px) {
    html .myan-sort.is-ready .myan-sort__native {
        display: none;
    }
    html .myan-sort.is-ready .myan-sort__box {
        display: block;
    }
}
@media (hover: hover) and (pointer: fine) {
    html .myan-sort__btn:hover,
    html .myan-sort__native:hover {
        border-color: var(--myan-ink);
    }
}

/* Kết quả: lưới + xem thêm */
html .myan-shop-results {
    box-sizing: border-box;
    max-width: var(--myan-container-max);
    margin: 0 auto;
    padding: 40px var(--myan-gutter) var(--myan-space-s); /* đáy: cách footer khi không có phần dưới trang */
}
/* Có phần dưới trang (UX Block, Bước 6): section đầu của block tự lo khoảng cách → bỏ đệm đáy (cả mobile) */
html .myan-shop.has-bottom .myan-shop-results {
    padding-bottom: 0;
}
html .myan-shop-results.is-loading .myan-grid {
    opacity: 0.5;
    transition: opacity var(--myan-dur-ui) ease;
}
html .myan-shop-prev {
    margin: 0 0 28px;
}
html .myan-link-arrow--back .myan-link-arrow__text {
    font-size: 16px;
}
html .myan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 48px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
html .myan-grid__item {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: opacity 0.3s ease;
}
html .myan-grid__item.is-new {
    opacity: 0;
}
html .myan-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 64px;
    text-align: center;
}
html .myan-more__status {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--myan-muted);
}
html .myan-more__btn {
    border-radius: var(--myan-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 52px;
    padding: 0 32px;
    border: 1px solid var(--myan-brand);
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--myan-link);
    text-decoration: none;
    transition:
        background-color var(--myan-dur-ui) var(--myan-ease),
        color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-more__btn:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-more__btn[aria-disabled='true'] {
    opacity: 0.6;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    html .myan-more__btn:hover {
        background: var(--myan-brand);
        color: var(--myan-surface);
    }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html .myan-link-arrow--back:hover .myan-link-arrow__icon {
        transform: translateX(-4px); /* mũi tên ← dịch sang trái */
    }
}

/* Danh sách trống (không lọc) / tìm kiếm 0 kết quả */
html .myan-shop-empty {
    border-radius: var(--myan-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 72px 40px;
    border: 1px solid var(--myan-line);
    background: var(--myan-surface);
    text-align: center;
}
html .myan-shop-empty__title {
    margin: 0;
    font-family: var(--myan-serif);
    font-size: 30px; /* cỡ cũ 38 ×0.8 */
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: var(--myan-ls-display);
    color: var(--myan-ink);
    overflow-wrap: anywhere;
}
html .myan-shop-empty__text {
    max-width: 520px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--myan-text);
}
html .myan-shop-empty__link {
    border-radius: var(--myan-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 50px;
    margin-top: 8px;
    padding: 0 28px;
    background: var(--myan-brand);
    font-size: 16px;
    font-weight: 600;
    color: var(--myan-surface);
    text-decoration: none;
}
html .myan-shop-empty__link:hover {
    background: var(--myan-brand-hover);
    color: var(--myan-surface);
}
html .myan-shop-empty__link:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}

/* Ô tìm dưới H1 (trang kết quả tìm kiếm): như ô tìm drawer — 48px, viền line, nền surface; gợi ý nổi đè lên lưới */
html .myan-cat-head__search {
    position: relative;
    width: min(560px, 100%); /* cột chữ co theo H1 → đặt rộng cố định */
    margin-top: 20px;
}
html .myan-search--page .myan-search__bar {
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--myan-line);
    background-color: var(--myan-surface);
}
html .myan-search--page .myan-search__bar:focus-within {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-search--page input.myan-search__field {
    height: 46px;
    font-family: var(--myan-sans);
    font-size: 16px;
}
html .myan-search--page .myan-search__submit {
    width: 18px;
    height: 18px;
    color: var(--myan-muted);
}
html .myan-search--page .myan-search__panel {
    border-radius: var(--myan-radius);
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: var(--myan-z-popover);
    max-height: min(480px, 70vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    border: 1px solid var(--myan-line);
    background-color: var(--myan-surface);
    box-shadow: var(--myan-shadow-pop);
}

@media (max-width: 849px) {
    /* Thanh dính dưới header; 2 cột Filter | Sort — chưa có ô Filter thì Sort chiếm cả hàng */
    html .myan-shop-bar {
        position: sticky;
        top: calc(var(--myan-sticky-top) - 1px); /* viền trên chồng đúng viền dưới header (không thành 2px) */
        z-index: var(--myan-z-sticky-bar);
        margin-top: 6px;
    }
    html .myan-shop-bar__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px var(--myan-gutter);
    }
    html .myan-shop-bar__filters:empty {
        display: none;
    }
    html .myan-shop-bar__filters:empty + .myan-shop-bar__end {
        grid-column: 1 / -1;
    }
    html .myan-shop-bar__end {
        display: block;
        min-width: 0;
        margin: 0;
    }
    html .myan-shop-count--bar {
        display: none;
    }
    html .myan-shop-count--below {
        display: block;
        max-width: var(--myan-container-max);
        margin: 0 auto;
        padding: 12px var(--myan-gutter) 0;
        font-size: 16px;
        color: var(--myan-muted);
    }
    html .myan-sort {
        width: 100%;
    }
    html .myan-sort__native {
        flex: 1 1 auto;
        justify-content: center;
    }
    html .myan-sort .myan-sort__select {
        flex: 0 1 auto;
        font-size: 16px;
    }
    html .myan-shop-results {
        padding-top: 14px;
        padding-bottom: 48px;
    }
    html .myan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }
    html .myan-more {
        gap: 12px;
        padding-top: 36px;
    }
    html .myan-more__btn {
        width: 100%;
        height: 50px;
    }
    html .myan-shop-empty {
        gap: 14px;
        padding: 32px 22px;
    }
    html .myan-shop-empty__title {
        font-size: 24px;
        line-height: 1.1;
    }
    html .myan-shop-empty__link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html .myan-grid__item,
    html .myan-shop-results.is-loading .myan-grid,
    html .myan-sort__list,
    html .myan-sort__arrow,
    html .myan-more__btn {
        transition: none;
    }
    html .myan-grid__item.is-new {
        opacity: 1;
    }
}

/* ---------- Shop filters (category.md 2.1 trái, 2.2 bảng lựa chọn, 2.3 chip, 3.3 không có kết quả; category-plan Bước 4) ----------
   HTML: template-parts/shop/filters.php (trong [data-myan-filters] của thanh) + results.php (chip, khối trống) · JS: myan-shop.js.
   Không JS: mỗi nhóm là <details> (bảng = <form> GET). JS: <summary> → <button>, .myan-filters.is-ready.
   Bảng nổi trên lưới, dưới header dính (--myan-z-filter-panel). Thanh xuống dòng được ở 850–1100px.
   ≤849px: ẩn thanh FILTER, hiện nút "Filter (n)" (bảng lọc: khối "Shop filters mobile" bên dưới); chip 34px;
   khối không có kết quả in 2 bản (--desktop / --mobile). */
:root {
    --myan-shadow-filter: 0 12px 32px rgba(32, 32, 32, 0.1);
}
html .myan-shop-bar__filters {
    flex: 1 1 auto;
}
html .myan-shop-count--bar {
    white-space: nowrap;
}
/* 850–1099: nút lọc chiếm hàng 1 (bảng mở không che nút nhóm khác), số kết quả + Sort xuống hàng 2 căn phải */
@media (min-width: 850px) and (max-width: 1099px) {
    html .myan-shop-bar__inner {
        flex-wrap: wrap;
        row-gap: 12px;
    }
    html .myan-shop-bar__filters:not(:empty) {
        flex: 1 1 100%;
    }
}
html .myan-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
html .myan-filters__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--myan-ink);
}
html .myan-filters__icon {
    flex: none;
    width: 18px;
    height: 18px;
}
html .myan-filter {
    position: relative;
    margin: 0;
}
html .myan-filter__btn {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--myan-line);
    border-radius: var(--myan-radius);
    background: var(--myan-surface);
    box-shadow: none;
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    color: var(--myan-ink);
    cursor: pointer;
    list-style: none; /* <summary> không JS: bỏ tam giác */
    transition:
        border-color var(--myan-dur-ui) var(--myan-ease),
        background-color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-filter__num {
    white-space: pre; /* giữ khoảng trắng đầu " (1)" (nút là flex → khoảng trắng đầu bị bỏ) */
}
html .myan-filter__btn::-webkit-details-marker {
    display: none;
}
html .myan-filter__btn::marker {
    content: '';
}
html .myan-filter__arrow {
    flex: none;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    background-color: var(--myan-ink);
    -webkit-mask: var(--myan-icon-chevron) center / contain no-repeat;
    mask: var(--myan-icon-chevron) center / contain no-repeat;
    transition: transform var(--myan-dur-ui) var(--myan-ease);
}
html .myan-filter.has-value .myan-filter__btn {
    border-color: var(--myan-ink);
}
html .myan-filter.is-open .myan-filter__btn,
html details.myan-filter[open] .myan-filter__btn {
    border-color: var(--myan-ink);
    background: var(--myan-subtle);
}
html .myan-filter.is-open .myan-filter__arrow,
html details.myan-filter[open] .myan-filter__arrow {
    transform: rotate(180deg);
}
html .myan-filter__btn:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
    html .myan-filter__btn:hover {
        border-color: var(--myan-ink);
    }
}

/* Bảng lựa chọn: 420px 2 cột · >6 lựa chọn: 600px 3 cột. JS dịch sang trái nếu vượt mép phải nội dung thanh. */
html .myan-filter__panel {
    border-radius: var(--myan-radius);
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: var(--myan-z-filter-panel);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 420px;
    max-width: calc(100vw - 2 * var(--myan-gutter));
    margin: 0;
    padding: 24px;
    border: 1px solid var(--myan-line);
    background: var(--myan-surface);
    box-shadow: var(--myan-shadow-filter);
    text-align: left;
}
html .myan-filter__panel[hidden] {
    display: none;
}
html .myan-filter__panel--wide {
    width: 600px;
}
html .myan-filter__set {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
html .myan-filter__title {
    display: block;
    float: left; /* legend: bỏ vị trí đặc biệt trên viền fieldset → khoảng cách theo gap */
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    border: 0; /* Flatsome: legend có viền dưới */
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--myan-ink);
}
html .myan-filter__options {
    clear: both;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
}
html .myan-filter__panel--wide .myan-filter__options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
html .myan-filter__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--myan-ink);
    cursor: pointer;
}
html .myan-filter__opt.is-zero .myan-filter__opt-name,
html .myan-filter__opt.is-zero .myan-filter__opt-n {
    opacity: 0.55; /* (0): mờ nhưng vẫn bấm được */
}
html .myan-filter .myan-filter__input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--myan-brand);
    cursor: pointer;
}
html .myan-filter .myan-filter__input:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-filter__opt-text {
    min-width: 0;
    overflow-wrap: anywhere; /* tên dài xuống dòng → "(n)" đi liền sau chữ */
}
html .myan-filter__opt-n {
    white-space: nowrap;
    font-size: 14px;
    color: var(--myan-muted);
}
html .myan-filter__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--myan-subtle);
}
html .myan-filter__clear {
    font-size: 15px;
    font-weight: 600;
    color: var(--myan-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
html .myan-filter__clear:hover {
    color: var(--myan-link-hover);
}
html .myan-filter__show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 46px;
    min-height: 0;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: var(--myan-radius);
    background: var(--myan-brand);
    box-shadow: none;
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: var(--myan-surface);
    cursor: pointer;
    transition: background-color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-filter__show:hover {
    background: var(--myan-brand-hover);
    color: var(--myan-surface);
}
html .myan-filter__clear:focus-visible,
html .myan-filter__show:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}

/* Hàng chip lọc đang chọn (đầu khối kết quả). Class riêng .myan-fchip* — KHÔNG dùng .myan-chip* (của element
   Shop by Style trang chủ; trước 11/11 hai khối trùng tên → CSS danh mục đè khối trang chủ). */
html .myan-shop-results.has-chips {
    padding-top: 16px;
}
html .myan-fchips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 32px;
    padding: 0;
    border: 0; /* CSS chung cho <ul> có viền trên */
    list-style: none;
}
html .myan-fchips__item {
    margin: 0;
    padding: 0;
    list-style: none;
}
html .myan-fchip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    height: 36px;
    padding: 0 10px 0 14px;
    border: 1px solid var(--myan-ink);
    border-radius: var(--myan-radius);
    background: var(--myan-surface);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    color: var(--myan-ink);
    text-decoration: none;
    transition: background-color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-fchip:hover {
    background: var(--myan-subtle);
    color: var(--myan-ink);
}
html .myan-fchip__x {
    flex: none;
    width: 12px;
    height: 12px;
    background-color: currentColor;
    -webkit-mask: var(--myan-icon-x-bold) center / contain no-repeat;
    mask: var(--myan-icon-x-bold) center / contain no-repeat;
}
html .myan-fchips__clear {
    margin-left: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--myan-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
html .myan-fchips__clear:hover {
    color: var(--myan-link-hover);
}
html .myan-fchip:focus-visible,
html .myan-fchips__clear:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
:root {
    --myan-icon-x-bold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 2l8 8M10 2l-8 8'/%3E%3C/svg%3E");
}

/* Không có kết quả khi lọc (3.3 desktop): hàng nút — Clear all filters (nền brand) · Remove … / Explore … (viền brand) · Book */
html .myan-shop-empty__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
html .myan-shop-empty__actions .myan-shop-empty__link {
    margin-top: 0;
}
html .myan-shop-empty__alt {
    border-radius: var(--myan-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 50px;
    padding: 0 24px;
    border: 1px solid var(--myan-brand);
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--myan-link);
    text-decoration: none;
    transition:
        background-color var(--myan-dur-ui) var(--myan-ease),
        color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-shop-empty__alt:hover {
    background: var(--myan-brand);
    color: var(--myan-surface);
}
html .myan-shop-empty__book {
    padding: 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--myan-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
html .myan-shop-empty__book:hover {
    color: var(--myan-link-hover);
}
html .myan-shop-empty__alt:focus-visible,
html .myan-shop-empty__book:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}

/* Nút "Filter (n)" mobile: ≥850 ẩn (thanh FILTER desktop) */
html .myan-mfilter-open {
    border-radius: var(--myan-radius);
    display: none;
}
/* Dòng cuối khối không có kết quả (desktop + mobile, Customizer MYAN · Shop) */
html .myan-shop-empty__note {
    max-width: 520px;
    margin: 6px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--myan-subtle);
    font-size: 15px;
    line-height: 1.6;
    color: var(--myan-muted);
}
html .myan-shop-empty__note a {
    font-weight: 600;
    color: var(--myan-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
html .myan-shop-empty__note a:hover {
    color: var(--myan-link-hover);
}
html .myan-shop-empty__note a:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-shop-empty--mobile {
    display: none;
}

@media (max-width: 849px) {
    /* Thanh: thanh FILTER desktop ẩn → nút "Filter" cột trái, Sort cột phải */
    html .myan-shop-bar__filters .myan-filters {
        display: none;
    }
    html .myan-mfilter-open {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-sizing: border-box;
        width: 100%;
        height: 44px;
        padding: 0 12px;
        border: 1px solid var(--myan-ink);
        background: var(--myan-surface);
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        color: var(--myan-ink);
        text-decoration: none;
    }
    html .myan-mfilter-open:hover {
        color: var(--myan-ink);
    }
    html .myan-mfilter-open__icon {
        flex: none;
        width: 16px;
        height: 16px;
    }
    html .myan-mfilter-open__num {
        margin-left: -8px; /* bỏ gap flex → " (2)" liền chữ (khoảng trắng đầu giữ bằng pre) */
        white-space: pre;
    }
    html .myan-mfilter-open:focus-visible {
        outline: 2px solid var(--myan-focus);
        outline-offset: 2px;
    }
    html .myan-shop-results.has-chips {
        padding-top: 12px;
    }
    html .myan-fchips {
        margin-bottom: 20px;
    }
    html .myan-fchip {
        height: 34px;
        padding: 0 10px 0 12px;
    }

    /* Không có kết quả — mobile (3.3): bản desktop ẩn; "N designs" dưới thanh chỉ còn cho trình đọc màn hình (aria-live)
       → "0 designs" không lặp 2 lần */
    html .myan-shop-empty--desktop {
        display: none;
    }
    html .myan-shop-empty--mobile {
        display: flex;
        align-items: stretch;
        gap: 14px;
        margin-top: 0;
        padding: 32px 22px;
        text-align: left;
    }
    html .myan-shop:has(.myan-shop-empty--filtered) .myan-shop-count--below {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    html .myan-shop-empty__count {
        margin: 0;
        font-size: 16px;
        color: var(--myan-muted);
    }
    html .myan-shop-empty--mobile .myan-shop-empty__title {
        font-size: 24px;
        line-height: 1.1;
    }
    html .myan-shop-empty--mobile .myan-shop-empty__text {
        max-width: none;
    }
    html .myan-shop-empty__stack {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    html .myan-shop-empty--mobile .myan-shop-empty__link,
    html .myan-shop-empty--mobile .myan-shop-empty__alt {
        width: 100%;
        height: auto;
        min-height: 50px;
        margin: 0;
        padding: 12px 20px;
        line-height: 1.3;
        text-align: center;
    }
    html .myan-shop-empty__explore {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        font-size: 16px;
        font-weight: 600;
        color: var(--myan-link);
        text-align: center;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    html .myan-shop-empty__explore:hover {
        color: var(--myan-link-hover);
    }
    html .myan-shop-empty__explore:focus-visible {
        outline: 2px solid var(--myan-focus);
        outline-offset: 2px;
    }
    html .myan-shop-empty--mobile .myan-shop-empty__note {
        max-width: none;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html .myan-filter__btn,
    html .myan-filter__arrow,
    html .myan-filter__show,
    html .myan-fchip,
    html .myan-shop-empty__alt {
        transition: none;
    }
}

/* ---------- Shop filters mobile (category.md 2.4 nút Filter, 4 bảng lọc toàn màn hình; category-plan Bước 5) ----------
   HTML: template-parts/shop/filters-mobile.php (wp_footer, con của <body>) · JS: myan-shop.js setupMobile().
   Không JS: #myan-mfilter:target mở (JS gắn .is-ready → tắt cách này). Có JS: .is-open + html.myan-filter-lock
   (khóa cuộn kiểu drawer, ẩn thanh điều hướng dưới + Contact Dock). ≥850 không bao giờ hiện. Không hiệu ứng mở. */
:root {
    --myan-z-filter-dialog: 1050; /* = drawer (không bao giờ cùng lúc: bảng lọc là modal) */
}
html .myan-mfilter {
    display: none;
}
@media (max-width: 849px) {
    html .myan-mfilter.is-open,
    html .myan-mfilter:not(.is-ready):target {
        display: block;
        position: fixed;
        inset: 0;
        z-index: var(--myan-z-filter-dialog);
        background: var(--myan-surface);
        font-family: var(--myan-sans);
        color: var(--myan-text);
    }
    html.myan-filter-lock .myan-bnav,
    html.myan-filter-lock .myan-dock,
    html:has(.myan-mfilter:not(.is-ready):target) .myan-bnav,
    html:has(.myan-mfilter:not(.is-ready):target) .myan-dock {
        display: none;
    }
}
html .myan-mfilter__form {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}
/* Đầu 60px: FILTER · ✕ */
html .myan-mfilter__head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    height: 60px;
    padding: 0 8px 0 var(--myan-gutter);
    border-bottom: 1px solid var(--myan-line);
}
html .myan-mfilter__title {
    margin: 0;
    font-family: var(--myan-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--myan-ink);
}
html .myan-mfilter__close {
    border-radius: var(--myan-radius);
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--myan-ink);
}
html .myan-mfilter__close::before {
    content: '';
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: var(--myan-icon-close) center / contain no-repeat;
    mask: var(--myan-icon-close) center / contain no-repeat;
}
/* Chip nháp (kiểu 2.3, 34px) */
html .myan-mfilter__chips {
    flex: none;
    padding: 14px var(--myan-gutter);
    border-bottom: 1px solid var(--myan-subtle);
}
html .myan-mfilter__chips.is-empty {
    display: none;
}
html .myan-mfilter__chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}
html .myan-mfilter .myan-fchip {
    height: 34px;
    min-height: 0;
    margin: 0;
    padding: 0 10px 0 12px;
    border-radius: var(--myan-radius);
    box-shadow: none;
    font-family: var(--myan-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
/* Thân cuộn: accordion */
html .myan-mfilter__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 var(--myan-gutter);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
html .myan-mfilter__group {
    margin: 0;
    border-bottom: 1px solid var(--myan-subtle);
}
html .myan-mfilter__sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--myan-ink);
    cursor: pointer;
    list-style: none;
}
html .myan-mfilter__sum::-webkit-details-marker {
    display: none;
}
html .myan-mfilter__sum::marker {
    content: '';
}
html .myan-mfilter__sum:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: -2px;
}
html .myan-mfilter__sum-sel {
    font-weight: 400;
    white-space: pre;
    color: var(--myan-muted);
}
html .myan-mfilter__arrow {
    flex: none;
    width: 16px;
    height: 16px;
    background-color: var(--myan-ink);
    -webkit-mask: var(--myan-icon-chevron) center / contain no-repeat;
    mask: var(--myan-icon-chevron) center / contain no-repeat;
}
html .myan-mfilter__group[open] .myan-mfilter__arrow {
    transform: rotate(180deg);
}
html .myan-mfilter__set {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
html .myan-mfilter__opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 20px;
}
/* Chip lựa chọn: <button aria-pressed> (JS) / <label> bọc checkbox, radio (Price + không JS) */
html .myan-mfilter__opt {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--myan-line);
    border-radius: var(--myan-radius);
    background: var(--myan-surface);
    box-shadow: none;
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    color: var(--myan-ink);
    cursor: pointer;
    transition: none; /* Flatsome: button có transition → chọn / bỏ đổi màu ngay */
}
html .myan-mfilter__opt-name {
    overflow-wrap: anywhere;
}
html .myan-mfilter__opt-n {
    font-weight: 400;
    white-space: pre;
}
html .myan-mfilter__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
html .myan-mfilter__tick {
    display: none;
    white-space: pre;
}
html .myan-mfilter__opt.is-on,
html .myan-mfilter__opt[aria-pressed='true'],
html .myan-mfilter__opt:has(.myan-mfilter__input:checked) {
    border-color: var(--myan-ink);
    background: var(--myan-ink);
    color: var(--myan-surface);
}
html .myan-mfilter__opt.is-on .myan-mfilter__tick,
html .myan-mfilter__opt[aria-pressed='true'] .myan-mfilter__tick,
html .myan-mfilter__opt:has(.myan-mfilter__input:checked) .myan-mfilter__tick {
    display: inline;
}
html .myan-mfilter__opt.is-zero:not(.is-on) .myan-mfilter__opt-name,
html .myan-mfilter__opt.is-zero:not(.is-on) .myan-mfilter__opt-n {
    opacity: 0.55; /* (0): mờ nhưng vẫn bấm được */
}
html .myan-mfilter__opt:focus-visible,
html .myan-mfilter__opt:has(.myan-mfilter__input:focus-visible) {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-mfilter__note {
    margin: 0;
    padding: 20px 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--myan-muted);
}
html .myan-mfilter__note a {
    color: var(--myan-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Đáy dính: Clear all · Show N results (+ safe-area iPhone) */
html .myan-mfilter__foot {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--myan-gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--myan-line);
    background: var(--myan-surface);
}
html .myan-mfilter__clear {
    display: flex;
    flex: none;
    align-items: center;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--myan-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
html .myan-mfilter__show {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    min-height: 0;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: var(--myan-radius);
    background: var(--myan-brand);
    box-shadow: none;
    font-family: var(--myan-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: var(--myan-surface);
    cursor: pointer;
}
html .myan-mfilter__show:hover {
    background: var(--myan-brand-hover);
    color: var(--myan-surface);
}
html .myan-mfilter__close:focus-visible,
html .myan-mfilter .myan-fchip:focus-visible,
html .myan-mfilter__note a:focus-visible,
html .myan-mfilter__clear:focus-visible,
html .myan-mfilter__show:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}

/* ---------- Hiệu ứng xuất hiện khi cuộn (xem assets/js/myan-animate.js) ----------
   Chỉ animate opacity + transform. Không gắn cho hero đầu trang (ảnh hưởng LCP).
   Lớp .myan-js chỉ có khi JS chạy → không JS thì nội dung vẫn hiện đủ. */
[data-myan-animate] {
    transition:
        opacity var(--myan-dur-reveal) var(--myan-ease),
        transform var(--myan-dur-reveal) var(--myan-ease);
}
.myan-js [data-myan-animate]:not(.is-visible) {
    opacity: 0;
}
.myan-js [data-myan-animate]:not([data-myan-animate='fade']):not(.is-visible) {
    transform: translateY(var(--myan-reveal-distance));
}

/* Hiện lần lượt: con thứ i trễ i × --myan-stagger (JS gán --myan-i, tối đa 7) */
.myan-js [data-myan-stagger]:not(.is-done) > * {
    transition:
        opacity var(--myan-dur-reveal) var(--myan-ease),
        transform var(--myan-dur-reveal) var(--myan-ease);
    transition-delay: calc(var(--myan-i, 0) * var(--myan-stagger));
}
.myan-js [data-myan-stagger]:not(.is-visible) > * {
    opacity: 0;
    transform: translateY(var(--myan-reveal-distance));
}

@media (prefers-reduced-motion: reduce) {
    .myan-js [data-myan-animate],
    .myan-js [data-myan-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ---------- Bottom nav (header.md 2.4) ----------
   HTML: inc/bottom-nav.php (con trực tiếp của <body>, không in ở Checkout) · JS: assets/js/myan-drawer.js.
   Chỉ ≤849px. Dính đáy, cao 68px (gồm padding-bottom 8px + viền trên 1px) + safe-area iPhone (meta viewport-fit=cover).
   Icon = CSS class của mục menu (myan-icon-home / -dress / -search / -calendar / -bag), path SVG đúng thiết kế
   BottomNav (viewBox 24, nét 1.5, hiển thị 22px), vẽ bằng mask → màu theo chữ.
   Drawer mở: JS chuyển <nav> vào #myan-drawer → nằm trên panel (--myan-z-bnav-in-drawer), vẫn bấm được.
   Đang gõ vào ô nhập (html.myan-typing): ẩn. Không hiệu ứng xuất hiện. */
:root {
    --myan-bnav-h: 68px;
    --myan-bnav-total: calc(var(--myan-bnav-h) + env(safe-area-inset-bottom, 0px));
    --myan-bnav-icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M4 11l8-6 8 6v9H4z'/%3E%3C/svg%3E");
    --myan-bnav-icon-dress: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M9.5 3h5l-.5 4 1.5 3-1 3 3.5 8h-12L9.5 13l-1-3 1.5-3z'/%3E%3C/svg%3E");
    --myan-bnav-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M11 4.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 1 0 0-13M16 16l4.5 4.5'/%3E%3C/svg%3E");
    --myan-bnav-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M4 5.5h16v14.5H4zM4 10h16M8.5 3v4M15.5 3v4'/%3E%3C/svg%3E");
    --myan-bnav-icon-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M5 8h14l-1 12H6L5 8zM9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
}

.myan-bnav {
    display: none;
}

@media (max-width: 849px) {
    /* viewport-fit=cover: iPhone xoay ngang (tai thỏ) không đè nội dung; máy khác = 0 */
    body {
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
    /* Nội dung cuối (footer) không bị thanh che */
    body.myan-has-bnav {
        padding-bottom: var(--myan-bnav-total);
    }

    .myan-bnav {
        display: block;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: var(--myan-z-bottom-nav);
        box-sizing: border-box;
        height: var(--myan-bnav-total);
        padding: 0 env(safe-area-inset-right, 0px) calc(8px + env(safe-area-inset-bottom, 0px))
            env(safe-area-inset-left, 0px);
        background-color: var(--myan-surface);
        border-top: 1px solid var(--myan-line);
        font-family: var(--myan-sans);
    }
    .myan-drawer > .myan-bnav {
        z-index: var(--myan-z-bnav-in-drawer);
    }
    html.myan-typing .myan-bnav {
        display: none;
    }
}

.myan-bnav__list {
    display: grid;
    grid-auto-columns: minmax(0, 1fr); /* 5 cột bằng nhau (số mục bao nhiêu cũng chia đều) */
    grid-auto-flow: column;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.myan-bnav__list > li {
    margin: 0;
    list-style: none;
}

html .myan-bnav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    height: 100%;
    min-width: 44px;
    min-height: 44px;
    border-top: 2px solid transparent;
    color: var(--myan-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
html .myan-bnav__item:hover {
    color: var(--myan-ink);
}
html .myan-bnav__item.is-current {
    border-top-color: var(--myan-ink);
    color: var(--myan-ink);
    font-weight: 600;
}
html .myan-bnav__item:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: -2px;
}

/* Icon 22px: mặc định không có (mục không gắn class myan-icon-*) */
.myan-bnav__item::before {
    content: none;
    width: 22px;
    height: 22px;
    flex: none;
    background-color: currentColor;
    -webkit-mask: var(--myan-bnav-icon) center / 22px 22px no-repeat;
    mask: var(--myan-bnav-icon) center / 22px 22px no-repeat;
}
.myan-bnav__item:is(.myan-icon-home, .myan-icon-dress, .myan-icon-search, .myan-icon-calendar, .myan-icon-bag)::before {
    content: '';
}
.myan-bnav__item.myan-icon-home {
    --myan-bnav-icon: var(--myan-bnav-icon-home);
}
.myan-bnav__item.myan-icon-dress {
    --myan-bnav-icon: var(--myan-bnav-icon-dress);
}
.myan-bnav__item.myan-icon-search {
    --myan-bnav-icon: var(--myan-bnav-icon-search);
}
.myan-bnav__item.myan-icon-calendar {
    --myan-bnav-icon: var(--myan-bnav-icon-calendar);
}
.myan-bnav__item.myan-icon-bag {
    --myan-bnav-icon: var(--myan-bnav-icon-bag);
}

.myan-bnav__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chấm số giỏ: top 8px, lệch phải giữa 6px; ẩn khi 0 (fragment WooCommerce thay cả span).
   Có data-icon-label (để myan-header.js đọc số) → ghi đè rule [data-icon-label] của Flatsome (position + chấm ::after). */
html .myan-bnav__count {
    position: absolute;
    top: 8px;
    left: 50%;
    box-sizing: border-box;
    min-width: 16px;
    height: 16px;
    margin-left: 6px;
    padding: 0 4px;
    border-radius: 8px;
    background-color: var(--myan-brand);
    color: var(--myan-surface);
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}
html .myan-bnav__count::after {
    content: none;
}
html .myan-bnav__count[data-icon-label='0'] {
    display: none;
}

/* ---------- Search (header.md mục 3) ----------
   HTML: inc/search.php (myan_search_form + hộp #myan-search) · JS: assets/js/myan-search.js.
   Phần chung (desktop + drawer): thanh nhập, danh sách kết quả (ảnh 48×60, tên 15/500 ink, giá 14 muted, hover /
   phím chọn nền subtle, "View all results →" 14/600 brand), "không có kết quả", chip Popular searches.
   Hộp desktop ≥1286px: lớp phủ + hộp 760px cách đỉnh 96px, mờ dần 200ms (reduced-motion: hiện ngay).
   Không JS: #myan-search:target mở (JS gắn .is-ready → tắt cách này). Drawer: ghi đè ở khối "Drawer". */
:root {
    --myan-shadow-pop: 0 18px 40px rgba(32, 32, 32, 0.1); /* bóng bảng nổi (giống mega) */
    --myan-dur-search: 200ms;
    --myan-z-search: 1050; /* cùng lớp drawer — không bao giờ cùng lúc (hộp tìm ≥1286, drawer ≤1285) */
}

.myan-search {
    position: relative;
    margin: 0;
}
.myan-search__bar {
    border-radius: var(--myan-radius);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}
html .myan-search input.myan-search__field {
    /* thắng input[type="search"] của Flatsome (màu #333, viền, nền) */
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--myan-radius);
    background: none;
    box-shadow: none;
    color: var(--myan-ink);
    -webkit-appearance: none;
    appearance: none;
}
html .myan-search input.myan-search__field:focus {
    outline: none;
    box-shadow: none;
}
.myan-search__field::placeholder {
    color: var(--myan-muted);
    opacity: 1;
}
.myan-search__field::-webkit-search-cancel-button,
.myan-search__field::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}
/* Nút gửi = icon kính lúp bên trái ô (bấm = xem tất cả kết quả) */
html .myan-search__submit {
    order: -1;
    flex: none;
    display: block;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--myan-radius);
    background-color: currentColor;
    box-shadow: none;
    cursor: pointer;
    -webkit-mask: var(--myan-icon-search) center / contain no-repeat;
    mask: var(--myan-icon-search) center / contain no-repeat;
}
.myan-search.is-loading .myan-search__submit {
    opacity: 0.5;
}
.myan-search__panel[hidden],
.myan-search__popular[hidden],
.myan-search__empty[hidden] {
    display: none;
}

/* Kết quả: 1 hàng = ảnh 48×60 + tên + giá */
.myan-search__list:empty {
    display: none;
}
html .myan-search__option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 8px;
    color: var(--myan-ink);
    text-decoration: none;
}
html .myan-search__option:hover,
html .myan-search__option.is-active {
    background-color: var(--myan-subtle);
    color: var(--myan-ink);
}
.myan-search__option.is-active {
    outline: 2px solid var(--myan-focus);
    outline-offset: -2px;
}
.myan-search__thumb {
    flex: none;
    width: 48px;
    height: 60px;
    background-color: var(--myan-subtle);
}
.myan-search__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.myan-search__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.myan-search__name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--myan-ink);
}
.myan-search__price,
.myan-search__price .amount {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--myan-muted);
}
html .myan-search__all {
    min-height: 44px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--myan-link);
}
html .myan-search__all:hover,
html .myan-search__all.is-active {
    color: var(--myan-link);
}

/* Không có kết quả */
.myan-search__empty {
    margin: 0;
    padding: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--myan-text);
}
html .myan-search__consult {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--myan-link);
    text-decoration: none;
}
.myan-search__empty .myan-search__consult {
    display: block;
}

/* Popular searches: nhãn 13px/600 .16em muted + chip 40px */
.myan-search__label {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--myan-muted);
}
.myan-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.myan-search__chips li {
    margin: 0;
}
html .myan-search__chip {
    border-radius: var(--myan-radius);
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--myan-line);
    font-size: 15px;
    line-height: 1;
    color: var(--myan-ink);
    text-decoration: none;
}
html .myan-search__chip:hover {
    border-color: var(--myan-ink);
    color: var(--myan-ink);
}
:is(.myan-search__chip, .myan-search__consult, .myan-search__submit):focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}

/* ----- Hộp tìm desktop ----- */
.myan-sdlg {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--myan-z-search);
    font-family: var(--myan-sans);
    color: var(--myan-text);
    transition: display var(--myan-dur-search) allow-discrete;
}
@media (min-width: 1286px) {
    .myan-sdlg.is-open,
    .myan-sdlg:not(.is-ready):target {
        display: block;
    }
}
.myan-sdlg__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--myan-overlay);
    cursor: default;
}
.myan-sdlg__box {
    border-radius: var(--myan-radius);
    position: relative;
    box-sizing: border-box;
    width: calc(100% - 2 * var(--myan-gutter));
    max-width: 760px;
    max-height: calc(100dvh - 96px - 40px);
    margin: 96px auto 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 32px 40px 40px;
    border: 1px solid var(--myan-line);
    background-color: var(--myan-surface);
    box-shadow: var(--myan-shadow-pop);
}
.myan-sdlg__overlay,
.myan-sdlg__box {
    opacity: 0;
    transition: opacity var(--myan-dur-search) ease;
}
.myan-sdlg:is(.is-open, :not(.is-ready):target) :is(.myan-sdlg__overlay, .myan-sdlg__box) {
    opacity: 1;
}
@starting-style {
    .myan-sdlg.is-open :is(.myan-sdlg__overlay, .myan-sdlg__box) {
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .myan-sdlg,
    .myan-sdlg__overlay,
    .myan-sdlg__box {
        transition: none;
    }
}
.myan-sdlg__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -10px -10px 8px 0; /* nút ✕ 44×44: icon thẳng mép phải nội dung */
}
.myan-sdlg__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--myan-muted);
}
html .myan-sdlg__close {
    border-radius: var(--myan-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--myan-ink);
}
.myan-sdlg__close::before {
    content: '';
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: var(--myan-icon-close) center / contain no-repeat;
    mask: var(--myan-icon-close) center / contain no-repeat;
}
.myan-sdlg__close:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: -2px;
}
/* Ô nhập: Ysabeau 16px, chỉ gạch dưới 1px ink, cao 56px, kính lúp 24px */
.myan-search--desktop .myan-search__bar {
    gap: 14px;
    height: 56px;
    border-bottom: 1px solid var(--myan-ink);
}
/* Focus: gạch dưới dày lên 2px màu focus (ô chữ luôn khớp :focus-visible → không vẽ khung, giữ đúng kiểu "chỉ gạch dưới") */
.myan-search--desktop .myan-search__bar:focus-within {
    border-bottom-color: var(--myan-focus);
    box-shadow: 0 1px 0 var(--myan-focus);
}
html .myan-search--desktop input.myan-search__field {
    height: 55px;
    font-family: var(--myan-sans); /* SiteHeader 2026: Ysabeau 16px */
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}
.myan-search--desktop .myan-search__submit {
    width: 24px;
    height: 24px;
    color: var(--myan-ink);
}
.myan-search--desktop .myan-search__panel {
    border-radius: var(--myan-radius);
    padding-top: 24px;
}

/* ---------- Footer (footer.md mục 1 + 2) ----------
   HTML: inc/footer.php (thay footer Flatsome). Một bộ HTML, đổi bố cục bằng CSS:
   ≥1200 lưới 6 cột · 850–1199 cột thương hiệu cả hàng trên + 5 nhóm × 3 cột (footer.md 1.2) · ≤849 xếp dọc (accordion: Bước 2).
   Nền ink, chữ + link ivory đặc: 3 biến --myan-on-brand* được ĐẶT LẠI chỉ trong .myan-footer — trang chủ giữ giá trị chung.
   Không hiệu ứng xuất hiện. Focus: viền ivory (--myan-focus chung chỉ 2.13:1 trên ink). */
.myan-footer {
    --myan-on-brand: var(--myan-bg);
    --myan-on-brand-line: rgba(242, 238, 231, 0.35);
    --myan-on-brand-muted: var(--myan-bg);
    --myan-focus: var(--myan-bg);
    background: var(--myan-ink);
    color: var(--myan-on-brand);
    font-family: var(--myan-sans);
    font-size: 16px;
    line-height: 1.6;
}
.myan-footer__inner {
    box-sizing: border-box;
    max-width: var(--myan-container-max);
    margin-inline: auto;
    padding: 88px var(--myan-gutter) 40px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}
.myan-footer__main {
    display: grid;
    grid-template-columns: 250px 1fr 1.05fr 0.9fr 1fr 1.25fr;
    gap: 28px;
    align-items: start;
}

/* Reset kiểu chữ / danh sách / link của Flatsome trong footer */
html .myan-footer :is(p, h2, ul, li, address) {
    margin: 0;
    padding: 0;
}
html .myan-footer ul {
    list-style: none;
}
html .myan-footer a {
    color: var(--myan-on-brand);
    text-decoration: none;
}
html .myan-footer a:hover {
    color: var(--myan-on-brand);
    text-decoration: underline 1px;
    text-underline-offset: 4px;
}
html .myan-footer :focus-visible {
    outline: 2px solid var(--myan-on-brand);
    outline-offset: 2px;
}

/* Cột 1 — thương hiệu + bản tin + Connect */
.myan-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 20px; /* = margin-top 20px của khối Connect */
    padding-right: 12px;
}
.myan-footer__intro {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
html .myan-footer .myan-footer__logo {
    align-self: flex-start;
    font-family: var(--myan-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.14em;
    margin-right: -0.14em; /* bỏ khoảng .14em thừa sau chữ cuối */
}
html .myan-footer .myan-footer__logo:hover {
    text-decoration: none;
}
.myan-footer__logo-img {
    display: block;
    max-height: 74px;
    width: auto;
}
.myan-footer__connect {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--myan-on-brand-line);
}
html .myan-footer .myan-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
html .myan-footer .myan-footer__social a {
    text-decoration: underline 1px;
    text-underline-offset: 4px;
}

/* Cột 2–6 — nhóm link + Contact */
html .myan-footer .myan-footer__title {
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--myan-on-brand);
}
.myan-footer__group {
    display: flex;
    flex-direction: column;
    gap: 16px; /* gap 12px + margin-bottom 4px của tiêu đề */
}
html .myan-footer .myan-footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-style: normal;
}
.myan-footer__links em {
    font-style: italic;
}

/* Hàng bản quyền */
.myan-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--myan-on-brand-line);
    font-size: 14px;
    line-height: 1.5;
}

/* Form bản tin ([myan_newsletter], inc/newsletter.php) — trong footer: viền + chữ sáng */
.myan-nl {
    margin-top: 4px;
}
.myan-nl__row {
    display: flex;
}
html .myan-footer .myan-nl__input {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--myan-on-brand);
    border-radius: var(--myan-radius) 0 0 var(--myan-radius); /* cụm email + nút liền 1 khối (gap 0): chỉ bo 2 góc trái */
    background: transparent;
    box-shadow: none;
    color: var(--myan-on-brand);
    font-family: var(--myan-sans);
    font-size: 16px;
}
html .myan-footer .myan-nl__input::placeholder {
    color: var(--myan-on-brand-muted);
    opacity: 1;
}
/* Focus ô email: viền chính dày 1px → 2px (box-shadow inset, ô không đổi kích thước), KHÔNG outline ngoài
   (2 lớp viền là thừa). Nút Subscribe + link vẫn dùng outline 2px chung của footer. */
html .myan-footer .myan-nl__input:focus,
html .myan-footer .myan-nl__input:focus-visible {
    outline: none;
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--myan-on-brand);
    color: var(--myan-on-brand);
}
html .myan-footer .myan-nl__btn {
    flex: none;
    box-sizing: border-box;
    height: 48px;
    min-height: 0;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 0 var(--myan-radius) var(--myan-radius) 0; /* chỉ bo 2 góc phải, chỗ nối với ô email vuông */
    background: var(--myan-on-brand);
    color: var(--myan-ink);
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 48px;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}
html .myan-footer .myan-nl__btn[aria-disabled='true'] {
    cursor: progress;
    opacity: 0.8;
}
.myan-nl__msg:empty {
    display: none;
}
html .myan-footer .myan-nl__msg {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.myan-nl__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 850–1199px (footer.md 1.2): thương hiệu cả hàng trên (trái: logo + đoạn + form ≤420px · phải: Connect), 5 nhóm × 3 cột */
@media (max-width: 1199px) {
    .myan-footer__main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 28px;
    }
    .myan-footer__brand {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
        padding-right: 0;
    }
    .myan-footer__intro {
        flex: 0 1 420px;
    }
    .myan-footer__connect {
        flex: 0 1 360px;
    }
}

/* ≤849px — footer.md mục 2. Accordion 5 nhóm: nút do assets/js/myan-footer.js chèn vào <h2> (chỉ ở ≤849px).
   Không JS: <h2> chữ + mọi panel mở. Chỗ chừa thanh điều hướng dưới: body.myan-has-bnav (khối Bottom nav) — không cộng thêm. */
@media (max-width: 849px) {
    .myan-footer__inner {
        padding: 48px var(--myan-gutter) 40px;
        gap: 24px; /* "©" margin-top 24px */
    }
    .myan-footer__main {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    .myan-footer__brand {
        flex-direction: column;
        align-items: stretch; /* bỏ flex-start của khung 850–1199 → viền Connect full-width */
        gap: 28px; /* Connect margin-top 28px */
        padding-right: 0;
    }
    .myan-footer__intro {
        flex: none;
        gap: 12px; /* đoạn giới thiệu margin-top 12px; form 12 + 4 = 16px */
    }
    .myan-footer__connect {
        flex: none;
        padding-top: 22px;
    }
    html .myan-footer .myan-footer__logo {
        font-size: 28px;
        letter-spacing: 0.14em;
        margin-right: -0.14em;
    }
    html .myan-footer .myan-footer__social {
        gap: 8px 20px;
    }
    html .myan-footer .myan-nl__input {
        padding: 0 12px;
    }
    html .myan-footer .myan-nl__btn {
        padding: 0 16px;
        font-size: 16px;
    }

    /* Accordion */
    .myan-footer__brand + .myan-footer__group {
        margin-top: 28px;
        border-top: 1px solid var(--myan-on-brand-line);
    }
    .myan-footer__group {
        gap: 0;
        border-bottom: 1px solid var(--myan-on-brand-line);
    }
    html .myan-footer .myan-footer__group > .myan-footer__title {
        display: flex;
        align-items: center;
        min-height: 56px; /* không JS: tiêu đề chữ cao bằng nút */
    }
    html .myan-footer .myan-footer__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        box-sizing: border-box;
        width: 100%;
        height: 56px;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: var(--myan-radius);
        background: transparent;
        box-shadow: none;
        color: var(--myan-on-brand);
        font: inherit;
        letter-spacing: inherit;
        text-transform: inherit;
        text-align: left;
        cursor: pointer;
    }
    .myan-footer__icon {
        flex: none;
        width: 16px;
        height: 16px;
    }
    .myan-footer__toggle[aria-expanded='true'] .myan-footer__icon-v {
        display: none; /* + → − */
    }
    html .myan-footer .myan-footer__panel {
        gap: 4px;
        padding-bottom: 16px;
    }
    html .myan-footer .myan-footer__panel[hidden] {
        display: none; /* display:flex ở trên đè thuộc tính hidden */
    }
    html .myan-footer .myan-footer__panel :is(li > a, address > *) {
        display: flex;
        align-items: center;
        min-height: 36px; /* vùng chạm */
    }

    /* Hàng bản quyền: không viền (accordion đã có viền dưới), Privacy / Terms ngay dưới */
    .myan-footer__bottom {
        flex-direction: column;
        gap: 4px;
        padding-top: 0;
        border-top: 0;
        font-size: 13px;
    }
}

/* ---------- Newsletter – trang /newsletter/ (xác nhận / hủy đăng ký) ----------
   HTML: myan-newsletter.php (child theme). Căn giữa, chữ theo thang H2 + đoạn văn (tokens.md). */
.myan-nl-page {
    box-sizing: border-box;
    padding-block: var(--myan-space-l);
    text-align: center;
}
html .myan-nl-page .myan-nl-page__title {
    margin: 0 0 16px;
    font-family: var(--myan-serif);
    font-size: 30px; /* = H2: cỡ cũ 38/32 ×0.8 (không có trong thiết kế) */
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: var(--myan-ls-display);
    color: var(--myan-ink);
}
html .myan-nl-page .myan-nl-page__text {
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: var(--myan-fs-body);
    line-height: var(--myan-lh-body);
    color: var(--myan-text);
}
html .myan-nl-page .myan-nl-page__btn {
    height: var(--myan-btn-h);
    min-height: 0;
    margin: 0;
    padding: 0 32px;
    border: 0;
    border-radius: var(--myan-radius);
    background: var(--myan-brand);
    color: var(--myan-surface);
    font-family: var(--myan-sans);
    font-size: var(--myan-fs-btn);
    font-weight: 600;
    line-height: var(--myan-btn-h);
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}
html .myan-nl-page .myan-nl-page__link {
    font-size: var(--myan-fs-link);
    font-weight: 600;
    color: var(--myan-link);
    text-decoration: underline 1px;
    text-underline-offset: 5px;
}
@media (max-width: 849px) {
    html .myan-nl-page .myan-nl-page__title {
        font-size: 26px;
    }
}

/* ---------- Contact Dock (footer.md mục 3, footer-plan Bước 3; custom-design.md §8, Bước 6a) ----------
   HTML: inc/dock.php (con trực tiếp của <body>, in ở wp_footer; không in ở Checkout) · JS: assets/js/myan-dock.js.
   Màn (Bước 6a): list → choose (2 nút loại) → form custom (Bước 6b) → sent. Nút ‹ ở choose + form.
   Trang Custom Designs ≤849 (body.myan-has-custom-bar): ẩn launcher — thanh CTA dính có nút mở Dock.
   Nút Wishlist nổi (.myan-dock__wish, §8.4, Bước 6a-2): ngay trên launcher; vị trí trang sản phẩm / Custom ở CSS trang.
   Launcher: ≥850 viên thuốc right/bottom 24px (tối đa 320px, chữ thừa "…") · ≤849 tròn 52px trên thanh dưới (+16px).
   Bảng: ≥850 cố định right 24 bottom 96, rộng 392, KHÔNG modal · ≤849 tấm từ đáy 88dvh + lớp phủ, modal.
   Ẩn cả Dock khi drawer / hộp tìm mở (html.myan-drawer-lock / .myan-search-lock); ≤849 ẩn launcher khi đang gõ ở ô
   ngoài Dock (html.myan-typing — bảng mobile là modal nên lúc gõ trong bảng thì launcher vốn đã ẩn).
   Hiệu ứng: mờ + trượt 12px, --myan-dur-ui (200ms); reduced-motion hiện ngay.
   Launcher nằm trên footer → .is-on-footer đảo màu (nền sáng, chữ ink), đổi màu 150ms (--myan-dur-fade).
   Footer chừa đáy (body.myan-has-dock): cuộn tới cuối, launcher nằm trên nền nâu trống, không che hàng bản quyền. */
:root {
    --myan-dock-shadow: 0 8px 24px rgba(32, 32, 32, 0.22); /* launcher */
    --myan-dock-panel-shadow: 0 18px 48px rgba(32, 32, 32, 0.18); /* bảng */
    --myan-dock-gap: 24px; /* cách mép màn hình ≥850 */
    --myan-dock-wish-shadow: 0 6px 18px rgba(32, 32, 32, 0.16); /* nút Wishlist nổi (§8.4) */
}

html:is(.myan-drawer-lock, .myan-search-lock) .myan-dock {
    display: none;
}

/* Footer chừa chỗ cho launcher: ≥850 launcher cao 24–76px tính từ đáy → hàng bản quyền bắt đầu từ 96px.
   Có nút Wishlist nổi (html.myan-wish-on, myan-saved.js): nút cao 88–128px → 140px. */
body.myan-has-dock .myan-footer__inner {
    padding-bottom: 96px;
}
html.myan-wish-on body.myan-has-dock .myan-footer__inner {
    padding-bottom: 140px;
}

/* Launcher */
html .myan-dock .myan-dock__launcher {
    position: fixed;
    right: var(--myan-dock-gap);
    bottom: var(--myan-dock-gap);
    z-index: var(--myan-z-dock);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    height: 52px;
    min-height: 0;
    max-width: 320px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 26px;
    background-color: var(--myan-brand);
    color: var(--myan-surface);
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: none;
    text-decoration: none;
    box-shadow: var(--myan-dock-shadow);
    cursor: pointer;
    transition:
        background-color var(--myan-dur-fade) var(--myan-ease),
        color var(--myan-dur-fade) var(--myan-ease);
}
html .myan-dock .myan-dock__launcher:hover {
    background-color: var(--myan-brand-hover);
    color: var(--myan-surface);
}
/* Footer (nền ink) nằm dưới launcher → đảo màu (JS: IntersectionObserver gắn .is-on-footer). Nền ivory
   (--myan-bg = --myan-on-brand trong footer), chữ + icon ink, bóng giữ nguyên; focus ring ivory (nằm trên nền ink). 150ms. */
html .myan-dock.is-on-footer .myan-dock__launcher {
    background-color: var(--myan-bg);
    color: var(--myan-ink);
}
html .myan-dock.is-on-footer .myan-dock__launcher:hover {
    background-color: var(--myan-subtle);
    color: var(--myan-ink);
}
html .myan-dock.is-on-footer .myan-dock__launcher:focus-visible {
    outline: 2px solid var(--myan-bg);
}
html .myan-dock :is(a, button):focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
.myan-dock__icon {
    display: flex;
    flex: none;
}
.myan-dock__svg {
    display: block;
    flex: none; /* cỡ theo width/height của từng icon (inc/dock.php: 20px, ✕ / ‹ 18px) */
}
.myan-dock__icon--close {
    display: none;
}
.myan-dock__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Nút Wishlist nổi (§8.4): in hidden (inc/saved.php), myan-saved.js hiện khi Wishlist ≥1 mẫu. ≥850 right 24, bottom 88
   (launcher 24 + 52 + 12), cao 40, "♥ Wishlist (n)" · ≤849 44×44 chỉ icon + badge số. Ẩn khi bảng mở (cả ≥850 — thiết kế
   vẽ chồng lên bảng), khi drawer / hộp tìm mở (ẩn cả Dock, quy tắc trên), ≤849 khi đang gõ. Không đảo màu trên footer
   (nền sáng + viền brand đã nổi trên nền nâu). */
html .myan-dock .myan-dock__wish {
    border-radius: var(--myan-radius);
    position: fixed;
    right: var(--myan-dock-gap);
    bottom: 88px;
    z-index: var(--myan-z-dock);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    height: 40px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--myan-brand);
    background-color: var(--myan-surface);
    color: var(--myan-link);
    font-family: var(--myan-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    box-shadow: var(--myan-dock-wish-shadow);
    transition: background-color var(--myan-dur-fade) var(--myan-ease);
}
html .myan-dock .myan-dock__wish:hover {
    background-color: var(--myan-bg);
    color: var(--myan-link);
}
html .myan-dock .myan-dock__wish[hidden],
html .myan-dock.is-open .myan-dock__wish {
    display: none;
}
.myan-dock__wish svg {
    display: block;
    flex: none;
}
.myan-dock__wish-badge {
    display: none;
}

/* Bảng mở: nút tròn 52px, icon ✕, ẩn chữ */
html .myan-dock.is-open .myan-dock__launcher {
    width: 52px;
    padding: 0;
}
.myan-dock.is-open :is(.myan-dock__icon--chat, .myan-dock__text) {
    display: none;
}
.myan-dock.is-open .myan-dock__icon--close {
    display: flex;
}

/* Bảng */
.myan-dock__layer[hidden],
.myan-dock__overlay {
    display: none;
}
.myan-dock__panel {
    border-radius: var(--myan-radius);
    position: fixed;
    right: var(--myan-dock-gap);
    bottom: 96px;
    z-index: var(--myan-z-dock);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 392px;
    max-width: calc(100vw - 2 * var(--myan-dock-gap));
    max-height: calc(100vh - 140px);
    border: 1px solid var(--myan-line);
    background-color: var(--myan-surface);
    box-shadow: var(--myan-dock-panel-shadow);
    color: var(--myan-text);
    font-family: var(--myan-sans);
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity var(--myan-dur-ui) var(--myan-ease),
        transform var(--myan-dur-ui) var(--myan-ease);
}
.myan-dock.is-open .myan-dock__panel {
    opacity: 1;
    transform: none;
}

.myan-dock__head {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--myan-line);
}
html .myan-dock .myan-dock__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--myan-ink);
    font-family: var(--myan-serif);
    font-size: 21px; /* cỡ cũ 26 ×0.8 (ContactDock 2026) */
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: var(--myan-ls-display);
    text-transform: none;
}
.myan-dock__title:focus {
    outline: none; /* focus do JS (đọc tên bảng), không phải phần tử bấm được */
}
html .myan-dock :is(.myan-dock__close, .myan-dock__back) {
    border-radius: var(--myan-radius);
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 0;
    margin: 0 -10px 0 0; /* icon 20px thẳng mép padding 20px */
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--myan-ink);
    cursor: pointer;
}
/* Nút ‹ (Bước 4, ở màn form) */
html .myan-dock .myan-dock__back {
    width: 36px;
    height: 36px;
    margin: 0 0 0 -8px;
}
html .myan-dock .myan-dock__back[hidden] {
    display: none;
}

.myan-dock__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px;
}
.myan-dock__screen {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.myan-dock__screen[hidden] {
    display: none;
}
/* Màn form custom khi myan-enquiry.js chưa nạp xong (chưa đúng kind) — Bước 6b */
.myan-dock__screen.is-loading {
    visibility: hidden;
}
html .myan-dock p {
    margin: 0;
}
.myan-dock__intro strong {
    color: var(--myan-ink);
    font-weight: 600;
}
html .myan-dock .myan-dock__eyebrow {
    color: var(--myan-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Nút "Request a Consultation" + "Chat on WhatsApp" + 2 nút Màn 3 */
html .myan-dock :is(.myan-dock__cta, .myan-dock__wa, .myan-dock__chat-btn) {
    border-radius: var(--myan-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color var(--myan-dur-ui) var(--myan-ease),
        color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-dock .myan-dock__cta {
    height: 52px;
    background-color: var(--myan-brand);
    color: var(--myan-surface);
    letter-spacing: 0.04em;
}
html .myan-dock .myan-dock__cta:hover {
    background-color: var(--myan-brand-hover);
    color: var(--myan-surface);
}
html .myan-dock :is(.myan-dock__wa, .myan-dock__chat-btn) {
    height: 50px;
    border: 1px solid var(--myan-brand);
    color: var(--myan-link);
}
html .myan-dock :is(.myan-dock__wa, .myan-dock__chat-btn):hover {
    background-color: var(--myan-brand);
    color: var(--myan-surface);
}

/* Danh sách Instagram / Email */
html .myan-dock .myan-dock__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--myan-subtle);
}
html .myan-dock .myan-dock__row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin: 0;
    border-bottom: 1px solid var(--myan-subtle);
}
html .myan-dock .myan-dock__item {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 48px;
    padding: 10px 0;
    color: var(--myan-ink);
    text-decoration: none;
}
.myan-dock__item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.myan-dock__item-main {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}
.myan-dock__item:hover .myan-dock__item-main {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.myan-dock__item-sub {
    overflow-wrap: anywhere;
    color: var(--myan-muted);
    font-size: 14px;
    line-height: 1.4;
}
html .myan-dock .myan-dock__copy {
    flex: none;
    height: 34px;
    min-height: 0;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--myan-line);
    border-radius: var(--myan-radius);
    background: transparent;
    color: var(--myan-link);
    font-family: var(--myan-sans);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
html .myan-dock .myan-dock__copy:hover {
    border-color: var(--myan-brand);
}

/* Màn choose (Bước 6a, §8.3): "How can we help you?" 15/1.55 · 2 nút full-width viền --myan-line-strong, tiêu đề serif
   22/1.15 + mô tả 14/1.45, mũi tên 18px · dòng "Just have a question?" 14px muted */
html .myan-dock .myan-dock__lead {
    font-size: 15px;
    line-height: 1.55;
}
html .myan-dock .myan-dock__kind {
    border-radius: var(--myan-radius);
    display: flex;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--myan-line-strong);
    background-color: var(--myan-surface);
    box-shadow: none;
    color: var(--myan-ink);
    font-family: var(--myan-sans);
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
    text-align: left;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    cursor: pointer; /* 6b: <button> (6a là <a>) → bỏ kiểu nút mặc định của Flatsome */
    transition:
        background-color var(--myan-dur-ui) var(--myan-ease),
        border-color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-dock .myan-dock__kind:hover {
    border-color: var(--myan-brand);
    background-color: var(--myan-bg);
    color: var(--myan-ink);
}
.myan-dock__kind-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.myan-dock__kind-title {
    color: var(--myan-ink);
    font-family: var(--myan-sans); /* ContactDock 2026: Ysabeau 500 22, không quy đổi */
    font-size: 22px;
    font-weight: 500;
    line-height: 1.15;
}
.myan-dock__kind-desc {
    color: var(--myan-text);
    font-size: 14px;
    line-height: 1.45;
}
.myan-dock__kind .myan-dock__svg {
    color: var(--myan-link);
}
html .myan-dock .myan-dock__note {
    color: var(--myan-muted);
    font-size: 14px;
    line-height: 1.5;
}
html .myan-dock .myan-dock__note a {
    color: var(--myan-link);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}
html .myan-dock .myan-dock__note a:hover {
    color: var(--myan-link-hover);
}

/* Màn 3 — đã gửi */
.myan-dock__tick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--myan-success-bg);
    color: var(--myan-success);
}
html .myan-dock .myan-dock__sent-title {
    color: var(--myan-ink);
    font-family: var(--myan-sans); /* ContactDock 2026: Ysabeau 500 26, không quy đổi */
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: normal;
}
.myan-dock__chat {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 12px;
}
html .myan-dock .myan-dock__chat-btn {
    height: 46px;
}

/* ≤849px: launcher tròn trên thanh dưới; bảng = tấm từ đáy + lớp phủ (modal) */
@media (max-width: 849px) {
    body.myan-has-dock .myan-footer__inner {
        padding-bottom: 80px; /* launcher cao 84–136px từ đáy (thanh dưới 68px) → hàng bản quyền bắt đầu từ ≥148px */
    }
    html.myan-wish-on body.myan-has-dock .myan-footer__inner {
        padding-bottom: 136px; /* nút Wishlist cao 148–192px từ đáy → hàng bản quyền bắt đầu từ ≥204px */
    }
    html .myan-dock .myan-dock__wish {
        right: 20px;
        bottom: calc(80px + env(safe-area-inset-bottom, 0px)); /* launcher 16 + 52 + 12 */
        width: 44px;
        height: 44px;
        padding: 0;
    }
    html body.myan-has-bnav .myan-dock .myan-dock__wish {
        bottom: calc(var(--myan-bnav-total) + 80px);
    }
    .myan-dock__wish-text {
        display: none; /* tên nút = aria-label */
    }
    .myan-dock__wish-badge {
        position: absolute;
        top: -7px;
        right: -7px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 9px; /* tròn (ngoại lệ radius như chấm số giỏ) */
        background-color: var(--myan-brand);
        color: var(--myan-surface);
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
    }
    html.myan-typing .myan-dock .myan-dock__wish {
        display: none;
    }
    html .myan-dock .myan-dock__launcher {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 52px;
        padding: 0;
    }
    html body.myan-has-bnav .myan-dock .myan-dock__launcher {
        bottom: calc(var(--myan-bnav-total) + 16px); /* 84px + safe-area */
    }
    .myan-dock__text {
        display: none; /* tên nút = aria-label */
    }
    html .myan-dock.is-open .myan-dock__launcher,
    html.myan-typing .myan-dock .myan-dock__launcher {
        display: none;
    }
    /* Trang Custom Designs (Bước 6a): thanh CTA dính myan_custom_bar (body.myan-has-custom-bar, chỉ ≤849) có nút "Discuss
       Your Design" mở Dock → ẩn launcher (2 nút cùng việc; launcher tròn ở bnav + 16 sẽ đè nút của thanh). Bảng vẫn có ✕. */
    html body.myan-has-custom-bar .myan-dock .myan-dock__launcher {
        display: none;
    }

    .myan-dock__overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: var(--myan-z-dock);
        background-color: var(--myan-overlay);
        opacity: 0;
        transition: opacity var(--myan-dur-ui) var(--myan-ease);
    }
    .myan-dock.is-open .myan-dock__overlay {
        opacity: 1;
    }
    .myan-dock__panel {
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-width: none;
        height: 88vh;
        height: 88dvh;
        max-height: none;
        border-width: 1px 0 0;
        border-radius: var(--myan-radius) var(--myan-radius) 0 0; /* dính đáy màn hình → chỉ 2 góc trên */
    }
    .myan-dock__body {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .myan-dock__panel,
    .myan-dock__overlay,
    html .myan-dock .myan-dock__launcher,
    html .myan-dock .myan-dock__kind,
    html .myan-dock .myan-dock__wish {
        transition: none;
    }
}

/* ---------- Form tư vấn "Request a Consultation" (footer.md 3.2 Màn 2, footer-plan Bước 4) ----------
   HTML: inc/enquiry.php (myan_enquiry_form) · JS: assets/js/myan-enquiry.js. Dùng chung Contact Dock (Màn 2) + /booking/.
   Nhãn 14px/500 ink, cách ô 6px · ô 44px, viền --myan-input-border, chữ 16px (iOS không phóng to) · khoảng cách 14px.
   Lỗi: hộp role="alert" + viền / chữ --myan-error. Ô WhatsApp / Instagram hiện bằng :has(:checked) (không cần JS).
   Ghi đè style form mặc định của Flatsome (margin-bottom 1em, label đậm, legend in hoa + viền, nút in hoa…). */
.myan-enq {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    color: var(--myan-text);
    font-family: var(--myan-sans);
    font-size: 16px;
    line-height: 1.5;
}
html .myan-enq :is(input, select, textarea, button, fieldset, label, legend, p) {
    margin: 0;
}
html .myan-enq fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
}
.myan-enq__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
html .myan-enq .myan-enq__label {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    color: var(--myan-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}
html .myan-enq .myan-enq__group > .myan-enq__label {
    margin-bottom: 6px; /* legend không nhận gap của flex */
}
html .myan-enq .myan-enq__input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--myan-input-border);
    border-radius: var(--myan-radius);
    background-color: var(--myan-surface);
    background-image: none;
    box-shadow: none;
    color: var(--myan-ink);
    font-family: var(--myan-sans);
    font-size: 16px;
    line-height: 1.4;
    transition:
        border-color var(--myan-dur-fade) var(--myan-ease),
        box-shadow var(--myan-dur-fade) var(--myan-ease);
}
html .myan-enq .myan-enq__input::placeholder {
    color: var(--myan-muted);
    opacity: 1;
}
html .myan-enq .myan-enq__input:focus {
    outline: none;
    border-color: var(--myan-focus);
    box-shadow: inset 0 0 0 1px var(--myan-focus); /* viền 2px */
    background-color: var(--myan-surface);
    color: var(--myan-ink);
}
html .myan-enq .myan-enq__textarea {
    height: auto;
    min-height: 92px; /* 3 dòng */
    padding: 10px 12px;
    line-height: 1.5;
    resize: vertical;
}

/* Select: mũi tên riêng (không dùng ảnh nền của Flatsome) */
.myan-enq__select {
    position: relative;
    display: block;
    color: var(--myan-ink);
}
.myan-enq__select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
html .myan-enq select.myan-enq__input {
    padding-right: 30px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Country + Wedding date cùng hàng; Wedding date = Month + Year (Month rộng hơn: chữ "Month" 48px, "2029" 39px).
   Khung 350px (bảng 392 / màn 390): Country 169 (đủ "United Kingdom") · Month 86 · Year 75. */
.myan-enq__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.myan-enq__pair {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 8px;
}
html .myan-enq .myan-enq__pair select.myan-enq__input {
    padding: 0 22px 0 10px;
}
.myan-enq__pair .myan-enq__select::after {
    right: 9px;
}

/* Chip "How can we help?" (JS: nút aria-pressed; không JS: radio trong label) + "Preferred contact" (radio dạng nút) */
.myan-enq__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.myan-enq__seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
html .myan-enq :is(.myan-enq__chip, .myan-enq__seg-item > span) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 0;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--myan-line);
    border-radius: var(--myan-radius);
    background-color: var(--myan-surface);
    box-shadow: none;
    color: var(--myan-ink);
    font-family: var(--myan-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color var(--myan-dur-fade) var(--myan-ease),
        background-color var(--myan-dur-fade) var(--myan-ease);
}
html .myan-enq .myan-enq__seg-item {
    display: block;
    position: relative;
    font-weight: 500;
}
html .myan-enq .myan-enq__seg-item > span {
    display: flex;
    width: 100%;
    height: 40px;
}
html .myan-enq .myan-enq__chip {
    position: relative;
}
/* radio thật: ẩn khỏi mắt nhưng vẫn focus được (bàn phím: Tab vào nhóm, mũi tên đổi lựa chọn) */
html .myan-enq :is(.myan-enq__chip, .myan-enq__seg-item) input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
html .myan-enq :is(.myan-enq__chip, .myan-enq__seg-item > span):hover {
    border-color: var(--myan-ink);
}
html
    .myan-enq
    :is(
        .myan-enq__chip[aria-pressed='true'],
        .myan-enq__chip:has(input:checked),
        .myan-enq__seg-item input:checked + span
    ) {
    border-color: var(--myan-ink);
    background-color: var(--myan-subtle);
}
html
    .myan-enq
    :is(
        .myan-enq__chip:focus-visible,
        .myan-enq__chip:has(input:focus-visible),
        .myan-enq__seg-item input:focus-visible + span
    ) {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}

/* Ô WhatsApp number / Instagram handle: chỉ hiện khi chọn kênh tương ứng */
.myan-enq__cond {
    display: none;
}
.myan-enq:has(input[name='channel'][value='whatsapp']:checked) .myan-enq__cond[data-when='whatsapp'],
.myan-enq:has(input[name='channel'][value='instagram']:checked) .myan-enq__cond[data-when='instagram'] {
    display: flex;
}
@supports not selector(:has(*)) {
    .myan-enq__cond {
        display: flex; /* trình duyệt cũ: hiện cả 2 ô (server chỉ bắt buộc ô của kênh đã chọn) */
    }
}

/* Ô đồng ý */
.myan-enq__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
html .myan-enq .myan-enq__check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--myan-brand);
    cursor: pointer;
}
/* Focus bàn phím (Bước 8a): outline chung bị CSS Flatsome của input đè → khai báo lại */
html .myan-enq .myan-enq__check input:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-enq .myan-enq__check label {
    display: block;
    color: var(--myan-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}
html .myan-enq .myan-enq__check a {
    color: var(--myan-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
html .myan-enq .myan-enq__check a:hover {
    color: var(--myan-link-hover);
}

/* Lỗi */
html .myan-enq .myan-enq__alert {
    border-radius: var(--myan-radius);
    padding: 10px 12px;
    border: 1px solid var(--myan-error);
    background-color: var(--myan-error-bg);
    color: var(--myan-error);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
html .myan-enq :is(.myan-enq__alert, .myan-enq__err):empty {
    display: none;
}
.myan-enq__alert:focus {
    outline: none; /* focus do JS để trình đọc màn hình đọc lỗi gửi */
}
html .myan-enq .myan-enq__err {
    color: var(--myan-error);
    font-size: 13px;
    line-height: 1.4;
}
html .myan-enq .is-invalid .myan-enq__input,
html .myan-enq .is-invalid .myan-enq__input:focus {
    border-color: var(--myan-error);
}
html .myan-enq .is-invalid .myan-enq__input:focus {
    box-shadow: inset 0 0 0 1px var(--myan-error);
}
html .myan-enq .is-invalid .myan-enq__check input {
    outline: 1px solid var(--myan-error);
    outline-offset: 2px;
}

.myan-enq__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
html .myan-enq .myan-enq__tz {
    color: var(--myan-muted);
    font-size: 13px;
    line-height: 1.5;
}
.myan-enq__tz[hidden] {
    display: none;
}

/* Nút gửi */
html .myan-enq .myan-enq__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    height: 52px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: var(--myan-radius);
    background-color: var(--myan-brand);
    box-shadow: none;
    color: var(--myan-surface);
    font-family: var(--myan-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: none;
    cursor: pointer;
    transition: background-color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-enq .myan-enq__submit:hover {
    background-color: var(--myan-brand-hover);
}
html .myan-enq .myan-enq__submit:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-enq .myan-enq__submit:disabled {
    opacity: 0.75;
    cursor: progress;
}

/* ---------- Form Custom Design trong Contact Dock (custom-design.md §8, Bước 6b) ----------
   HTML: inc/enquiry.php myan_enquiry_custom_form() · JS: myan-enquiry.js (kind, ảnh, Try Again).
   Dùng lại toàn bộ kiểu .myan-enq (ô 44px, chữ 16px kể cả ô design / mô tả — iOS không tự phóng to, spec §8).
   Thêm: h3 "Your contact details", vùng chọn ảnh dashed + thumbnail 64×80, dòng Switch, nút "Sending…" nền --myan-line. */
.myan-enq [hidden] {
    display: none !important; /* .myan-enq__field (flex) + ul thumbnail có hidden (ô design khi kind new) */
}
html .myan-enq .myan-enq__sub {
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--myan-subtle);
    color: var(--myan-ink);
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}
.myan-enq__photos {
    position: relative;
}
.myan-enq__file {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    opacity: 0;
}
html .myan-enq .myan-enq__drop {
    border-radius: var(--myan-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px dashed var(--myan-line-out);
    background-color: var(--myan-surface);
    color: var(--myan-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    transition:
        border-color var(--myan-dur-ui) var(--myan-ease),
        background-color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-enq .myan-enq__drop:hover,
.myan-enq__photos.is-drag .myan-enq__drop {
    border-color: var(--myan-brand);
    background-color: var(--myan-bg);
}
/* Lỗi ảnh do server báo (Bước 7: loại / dung lượng / tổng) */
html .myan-enq .myan-enq__photos.is-invalid .myan-enq__drop {
    border-color: var(--myan-error);
}
.myan-enq__file:focus-visible + .myan-enq__drop {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
.myan-enq__drop-icon {
    border-radius: var(--myan-radius);
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--myan-subtle);
    color: var(--myan-link);
}
.myan-enq__drop-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.myan-enq__drop-main {
    color: var(--myan-ink);
    font-weight: 600;
}
.myan-enq__drop-sub {
    color: var(--myan-muted);
    font-size: 13px;
}
html .myan-enq .myan-enq__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 6px 6px 0 0; /* chừa chỗ nút xóa lệch ra ngoài ảnh */
    list-style: none;
}
html .myan-enq .myan-enq__thumb {
    position: relative;
    margin: 0;
    padding: 0;
}
.myan-enq__thumb-img {
    border-radius: var(--myan-radius);
    display: block;
    box-sizing: border-box;
    width: 64px;
    height: 80px;
    overflow: hidden;
    border: 1px solid var(--myan-line);
    background-color: var(--myan-subtle);
}
.myan-enq__thumb-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* Flatsome img transition 1s */
}
.myan-enq__thumb-img--file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    color: var(--myan-muted);
}
.myan-enq__thumb-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--myan-text);
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html .myan-enq .myan-enq__thumb-x {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--myan-ink);
    box-shadow: none;
    color: var(--myan-surface);
    line-height: 1;
    cursor: pointer;
}
html .myan-enq .myan-enq__thumb-x::before {
    content: '';
    position: absolute;
    inset: -6px; /* vùng bấm 34px */
}
html .myan-enq .myan-enq__thumb-x:hover {
    background-color: var(--myan-brand);
}
html .myan-enq .myan-enq__note {
    color: var(--myan-muted);
    font-size: 13px;
    line-height: 1.5;
}
html .myan-enq .myan-enq__switch {
    color: var(--myan-text);
    font-size: 14px;
    line-height: 1.5;
}
html .myan-enq .myan-enq__switch-btn {
    display: inline;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--myan-link);
    font-family: var(--myan-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: inherit;
    letter-spacing: 0;
    text-align: left;
    text-decoration: underline;
    text-transform: none;
    text-underline-offset: 3px;
    cursor: pointer;
}
html .myan-enq .myan-enq__switch-btn:hover {
    color: var(--myan-link-hover);
}
/* Đang gửi: nền --myan-line, chữ --myan-text (§8) — chỉ form custom; /booking/ giữ kiểu cũ */
html .myan-enq--custom .myan-enq__submit:disabled {
    background-color: var(--myan-line);
    color: var(--myan-text);
    opacity: 1;
}

/* Trang /booking/ ([myan_enquiry_form]): form nằm trong trang, rộng tối đa 560px giữa cột nội dung.
   Sau khi gửi: khối "Request sent" (cùng chữ + kiểu Màn 3 của Contact Dock) thay chỗ form. */
.myan-enq-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 0;
    color: var(--myan-text);
    font-family: var(--myan-sans);
    font-size: 16px;
    line-height: 1.6;
}
.myan-enq-page .myan-enq[hidden],
.myan-enq-done[hidden] {
    display: none;
}
.myan-enq-done {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.myan-enq-done__tick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--myan-success-bg);
    color: var(--myan-success);
}
html .myan-enq-done .myan-enq-done__title {
    margin: 0;
    color: var(--myan-ink);
    font-family: var(--myan-serif); /* tiêu đề kết quả Booking 2026: Aboreto (cỡ cũ 26 ×0.8) */
    font-size: 21px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: var(--myan-ls-display);
    text-transform: none;
}
.myan-enq-done__title:focus {
    outline: none; /* focus do JS sau khi gửi (trình đọc màn hình đọc câu cảm ơn) */
}
html .myan-enq-done p {
    margin: 0;
}
html .myan-enq-done .myan-enq-done__eyebrow {
    color: var(--myan-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.myan-enq-done__chat {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 12px;
}
html .myan-enq-done .myan-enq-done__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    border: 1px solid var(--myan-brand);
    color: var(--myan-link);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color var(--myan-dur-ui) var(--myan-ease),
        color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-enq-done .myan-enq-done__btn:hover {
    background-color: var(--myan-brand);
    color: var(--myan-surface);
}
html .myan-enq-done .myan-enq-done__btn:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
.myan-enq-done .myan-dock__svg {
    display: block;
    flex: none;
}

/* Màn hẹp (≤379px, vd 320): Country và Wedding date xếp dọc để select không quá hẹp */
@media (max-width: 379px) {
    .myan-enq__row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html .myan-enq :is(.myan-enq__input, .myan-enq__chip, .myan-enq__seg-item > span, .myan-enq__submit),
    html .myan-enq-done .myan-enq-done__btn {
        transition: none;
    }
}

/* ---------- Saved (wishlist) — category.md mục 5 + 7, category-plan "Wishlist" (11/11) ----------
   HTML: inc/saved.php (nút tim trên thẻ, link "Saved (n)") + template-parts/saved/page.php (trang /saved/) · JS: assets/js/myan-saved.js.
   Nút tim: góc trên phải ảnh (2px), vùng bấm 44×44, vòng tròn kính 32px (khối "Product card"), icon 20px nét 1.5 ink;
   đã lưu → fill + nét brand (11/11).
   In sẵn hidden (không JS = không nút). Nhãn ảnh né nút (.has-save).
   Toast (custom-design.md §8.4, Bước 6a-2): ≥850 right 24, bottom 140 (trên nút Wishlist nổi 88 + 40 + 12), rộng 380 ·
   ≤849 left 12, right 76 (cạnh launcher 52 + 16 + 8), đáy ngang launcher. Trang sản phẩm / Custom: CSS trang.
   Nền ink, padding 12/14/12/16, --myan-toast-shadow. Tim tô / rỗng + chữ + "View Wishlist →" hoặc "Undo". 4 giây (JS).
   Hiệu ứng: mờ + trượt 8px; reduced-motion chỉ mờ, không trượt. */
:root {
    --myan-toast-shadow: 0 10px 28px rgba(32, 32, 32, 0.25);
}
html .myan-card__save[hidden] {
    display: none;
}
html .myan-card__save {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 4; /* trên nhãn (2) + khung ảnh lỗi (3) → vẫn bấm được khi ảnh lỗi */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--myan-ink);
    line-height: 1;
    cursor: pointer;
    transition: none; /* bỏ transition nút Flatsome → focus hiện ngay */
}
html .myan-card__save svg {
    position: relative; /* nằm trên vòng tròn kính */
    display: block;
    width: 20px;
    height: 20px;
    fill: transparent;
    transition: fill var(--myan-dur-ui) var(--myan-ease), color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-card__save[aria-pressed="true"] {
    color: var(--myan-link); /* đã lưu: nét + fill brand */
}
html .myan-card__save[aria-pressed="true"] svg {
    fill: currentColor;
}
html .myan-card.has-save .myan-card__badges {
    right: 48px; /* nhãn không chui dưới nút tim */
}

/* Trang /saved/: lưới / khối trống / lỗi bật tắt bằng hidden — .myan-grid / .myan-shop-empty có display riêng → ép ẩn */
html .myan-saved [hidden] {
    display: none;
}
/* Bỏ lưu → thẻ ở lại, mờ .6 (tải lại trang thì mất) */
html .myan-card--unsaved {
    opacity: 0.6;
    transition: opacity var(--myan-dur-ui) var(--myan-ease);
}
html .myan-saved__note {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--myan-text);
}
html .myan-saved__error:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}
html .myan-saved__retry {
    min-height: 44px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid var(--myan-ink);
    border-radius: var(--myan-radius);
    background: transparent;
    color: var(--myan-ink);
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
html .myan-saved__retry:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}

/* Toast */
.myan-toast {
    position: fixed;
    right: var(--myan-dock-gap, 24px);
    bottom: 140px;
    z-index: var(--myan-z-toast);
    box-sizing: border-box;
    width: 380px;
    max-width: calc(100vw - 2 * var(--myan-dock-gap, 24px));
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        opacity var(--myan-dur-ui) var(--myan-ease),
        transform var(--myan-dur-ui) var(--myan-ease),
        visibility 0s linear var(--myan-dur-ui);
}
.myan-toast.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto; /* chỉ hộp nhận chuột — phần còn lại của trang không bị chặn */
    transition:
        opacity var(--myan-dur-ui) var(--myan-ease),
        transform var(--myan-dur-ui) var(--myan-ease);
}
html .myan-toast__msg {
    border-radius: var(--myan-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px 12px 16px;
    background: var(--myan-ink);
    color: var(--myan-surface);
    font-family: var(--myan-sans);
    font-size: 15px;
    line-height: 1.45;
    box-shadow: var(--myan-toast-shadow);
}
.myan-toast__icon {
    display: block;
    flex: none;
}
.myan-toast__text {
    flex: 1 1 auto;
    min-width: 0;
}
html .myan-toast__link,
html .myan-toast__undo {
    flex: none;
    color: var(--myan-surface);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
html .myan-toast__undo {
    min-height: 0;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--myan-sans);
    font-size: inherit;
    line-height: inherit;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}
html .myan-toast__link:hover,
html .myan-toast__undo:hover {
    color: var(--myan-surface);
    text-decoration-thickness: 2px;
}
html .myan-toast__link:focus-visible,
html .myan-toast__undo:focus-visible {
    outline: 2px solid var(--myan-surface);
    outline-offset: 2px;
}
@media (max-width: 849px) {
    .myan-toast {
        left: 12px;
        right: 76px; /* cạnh launcher Dock (16 + 52 + 8) */
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)); /* đáy ngang launcher */
        width: auto;
        max-width: none;
    }
    body.myan-has-bnav .myan-toast {
        bottom: calc(var(--myan-bnav-total) + 16px);
    }
    html .myan-toast__msg {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html .myan-card__save svg,
    html .myan-card--unsaved {
        transition: none;
    }
    .myan-toast,
    .myan-toast.is-shown {
        transform: none; /* không trượt — chỉ mờ */
    }
}

/* ---------- Quick view — category.md mục 5 + 7, category-plan "Quick view" (11/11) ----------
   HTML: inc/quickview.php (nút trên thẻ) + template-parts/quickview/content.php (nội dung) · JS: assets/js/myan-quickview.js.
   CHỈ màn có chuột ≥850px (hover: hover, pointer: fine): nút đáy ảnh hiện khi hover / focus thẻ (nhãn ảnh nằm trên,
   đáy 64px). Hộp: <dialog> 960px, 2 cột (ảnh 3:4 + ‹ › luôn hiện | thông tin). Không có nút giỏ hàng.
   Hiệu ứng: mờ + phóng .98 → 1, --myan-dur-ui; reduced-motion: chỉ mờ. Nền tối --myan-qv-backdrop. */
:root {
    --myan-qv-backdrop: rgba(32, 32, 32, 0.45); /* lớp nền sau hộp (ink 45%) */
    --myan-qv-shadow: 0 24px 64px rgba(32, 32, 32, 0.24);
}

/* Nút trên thẻ */
html .myan-card__qv {
    display: none;
}
@media (min-width: 850px) and (hover: hover) and (pointer: fine) {
    html .myan-card__qv:not([hidden]) {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        min-height: 0;
        margin: 0;
        padding: 0 16px;
        border: 0;
        border-radius: var(--myan-radius);
        background: var(--myan-card-label-bg);
        box-shadow: none;
        color: var(--myan-ink);
        font-family: var(--myan-sans);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0;
        line-height: 1;
        text-transform: none;
        cursor: pointer;
        opacity: 0;
        transition: opacity var(--myan-dur-ui) var(--myan-ease), background-color var(--myan-dur-ui) var(--myan-ease);
    }
    /* Hiện khi thẻ đang :hover HOẶC focus đến từ bàn phím (:focus-visible trong thẻ). KHÔNG dùng :focus-within: bấm chuột
       vào tim / chấm màu / đóng hộp bằng chuột (focus trả về nút) rồi rê ra ngoài → nút phải ẩn. Trình duyệt không có :has
       → myan-quickview.js gắn .is-kbd-focus khi focus đến từ bàn phím. */
    html .myan-card:hover .myan-card__qv,
    html .myan-card.is-kbd-focus .myan-card__qv {
        opacity: 1;
    }
    @supports selector(:has(*)) {
        html .myan-card:has(:focus-visible) .myan-card__qv {
            opacity: 1;
        }
    }
    html .myan-card__qv:focus:not(:focus-visible):not(:hover),
    html .myan-card__qv:active:not(:hover) {
        outline: none; /* bỏ nền / viền focus-active dính lại (Flatsome) */
        box-shadow: none;
        background: var(--myan-card-label-bg);
    }
    html .myan-card__qv:hover {
        background: var(--myan-surface);
    }
    html .myan-card__qv:focus-visible {
        opacity: 1;
        outline: 2px solid var(--myan-ink);
        outline-offset: -5px;
        box-shadow: inset 0 0 0 3px var(--myan-card-arrow-glow);
    }
}

/* Hộp thoại (khóa cuộn: khối "Khóa cuộn", html.myan-lock + .myan-qv-lock) */
html .myan-qv-dialog {
    border-radius: var(--myan-radius);
    box-sizing: border-box;
    width: min(960px, calc(100vw - 80px));
    max-width: none;
    max-height: calc(100dvh - 80px);
    margin: auto;
    padding: 0;
    border: 0;
    background: var(--myan-surface);
    box-shadow: var(--myan-qv-shadow);
    color: var(--myan-text);
    font-family: var(--myan-sans);
    overflow: auto;
    overscroll-behavior: contain;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity var(--myan-dur-ui) var(--myan-ease), transform var(--myan-dur-ui) var(--myan-ease);
}
html .myan-qv-dialog.is-in {
    opacity: 1;
    transform: none;
}
html .myan-qv-dialog::backdrop {
    background: var(--myan-qv-backdrop);
    opacity: 0;
    transition: opacity var(--myan-dur-ui) var(--myan-ease);
}
html .myan-qv-dialog.is-in::backdrop {
    opacity: 1;
}
html .myan-qv-dialog__inner {
    position: relative;
}
html .myan-qv-dialog__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--myan-radius);
    background: transparent;
    box-shadow: none;
    color: var(--myan-ink);
    cursor: pointer;
    transition: none;
}
html .myan-qv-dialog__close svg {
    display: block;
}
html .myan-qv-dialog__close:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: -4px;
}

/* Nội dung: 2 cột */
html .myan-qv {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    align-items: start;
}
html .myan-qv__media {
    position: relative;
}
html .myan-qv .myan-card__nav:not([hidden]) {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
}
html .myan-qv__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 48px 56px 40px 40px; /* trên: chừa nút ✕ */
}
html .myan-qv__title {
    margin: 0;
    padding: 0;
    font-family: var(--myan-serif); /* theo H1 PDP 2026: Aboreto 400 27/22 lh 1.04 */
    font-size: 27px;
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: var(--myan-ls-display);
    text-transform: uppercase;
    color: var(--myan-ink);
    overflow-wrap: anywhere;
}
html .myan-qv__title a {
    color: inherit;
    text-decoration: none;
}
html .myan-qv__title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
html .myan-qv__title a:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-qv__desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: var(--myan-text);
}
html .myan-qv__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.4;
}
html .myan-qv__price {
    font-size: 19px;
    font-weight: 600;
    color: var(--myan-ink);
}
html .myan-qv__price .amount {
    color: inherit;
}
html .myan-qv__status {
    color: var(--myan-status);
}
html .myan-qv .myan-card__swatches {
    margin-top: 4px;
}
html .myan-qv__excerpt {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--myan-text);
}
html .myan-qv__excerpt p {
    margin: 0 0 0.6em;
}
html .myan-qv__excerpt p:last-child {
    margin-bottom: 0;
}
html .myan-qv__attrs {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--myan-line);
}
html .myan-qv__attr {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
}
html .myan-qv__attr dt {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--myan-muted);
    line-height: 1.7;
}
html .myan-qv__attr dd {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none; /* Flatsome in hoa dd */
    color: var(--myan-ink);
}
html .myan-qv__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 0;
}
html .myan-qv__btn {
    border-radius: var(--myan-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid var(--myan-brand);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--myan-dur-ui) var(--myan-ease), color var(--myan-dur-ui) var(--myan-ease), border-color var(--myan-dur-ui) var(--myan-ease);
}
html .myan-qv__btn--primary {
    background: var(--myan-brand);
    color: var(--myan-surface);
}
html .myan-qv__btn--primary:hover {
    background: var(--myan-brand-hover);
    border-color: var(--myan-brand-hover);
    color: var(--myan-surface);
}
html .myan-qv__btn--ghost {
    background: transparent;
    color: var(--myan-link);
}
html .myan-qv__btn--ghost:hover {
    background: var(--myan-brand);
    color: var(--myan-surface);
}
html .myan-qv__btn:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}

/* Khung xương + lỗi */
html .myan-qv--skeleton .myan-qv__media {
    background: var(--myan-tone-2);
}
html .myan-qv__bone {
    display: block;
    width: 60%;
    height: 14px;
    background: var(--myan-tone-2);
}
html .myan-qv__bone:nth-child(1) {
    width: 70%;
    height: 34px;
}
html .myan-qv__bone:nth-child(5) {
    width: 100%;
    height: 50px;
    margin-top: 24px;
}
html .myan-qv-dialog__error {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 64px 48px;
}
html .myan-qv-dialog__error-text {
    margin: 0;
    font-size: 17px;
    color: var(--myan-ink);
}
html .myan-qv-dialog__retry {
    min-height: 44px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid var(--myan-ink);
    border-radius: var(--myan-radius);
    background: transparent;
    color: var(--myan-ink);
    font-family: var(--myan-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
html .myan-qv-dialog__retry:focus-visible,
html .myan-qv-dialog__page:focus-visible {
    outline: 2px solid var(--myan-focus);
    outline-offset: 2px;
}
html .myan-qv-dialog__page {
    color: var(--myan-ink);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 850–1099: hộp hẹp → giảm đệm + cỡ tên */
@media (max-width: 1099px) {
    html .myan-qv__body {
        padding: 44px 48px 32px 28px;
    }
    html .myan-qv__title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html .myan-qv-dialog,
    html .myan-qv-dialog.is-in {
        transform: none; /* không phóng — chỉ mờ */
    }
    html .myan-card__qv:not([hidden]),
    html .myan-qv__btn {
        transition: none;
    }
}
