/* ==========================================================================
   Bao Bì Nhật Thái – main stylesheet (mobile-first)
   ========================================================================== */

:root {
    --brand: #005724;
    --brand-600: #0a6b32;
    --brand-700: #00461d;
    --brand-900: #032615;
    --brand-50: #eef6f0;
    --brand-100: #d7eadd;
    --accent: #f5a524;
    --accent-600: #e08e0b;
    --zalo: #0068ff;
    --ink: #10231a;
    --ink-2: #33463c;
    --muted: #5d6d64;
    --line: #e2e8e4;
    --bg: #ffffff;
    --bg-soft: #f5f8f6;

    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(16, 35, 26, .06), 0 1px 3px rgba(16, 35, 26, .08);
    --shadow: 0 10px 30px -12px rgba(16, 35, 26, .18);
    --shadow-lg: 0 24px 60px -20px rgba(3, 38, 21, .35);
    --container: 1240px;
    --gutter: 16px;
    --header-h: 64px;
    --topbar-h: 34px;
    --sticky-h: calc(var(--header-h) + var(--topbar-h)); /* topbar + header cố định */
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --topbar-h: 38px; } }
@media (min-width: 1100px) { :root { --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    /* clip (không phải hidden): hidden biến body thành khung cuộn riêng → position:sticky của header mất tác dụng */
    overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; margin: 0;
    z-index: 1000; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon-zalo { width: 1.5em; height: 1.5em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 46px; padding: .7em 1.4em;
    border: 2px solid transparent; border-radius: 999px;
    font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center;
    transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--lg { min-height: 54px; padding: .85em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 87, 36, .55); }
.btn--accent { background: var(--accent); color: var(--brand-900); }
.btn--accent:hover { background: var(--accent-600); color: var(--brand-900); box-shadow: 0 8px 20px -8px rgba(224, 142, 11, .6); }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--ghost { background: var(--brand-50); color: var(--brand); }
.btn--ghost:hover { background: var(--brand-100); color: var(--brand-700); }
.btn--zalo { background: var(--zalo); color: #fff; }
.btn--zalo:hover { background: #0054d1; color: #fff; }

.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: transparent; color: var(--ink);
    transition: background .2s;
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand); }
.icon-btn .icon { width: 22px; height: 22px; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.kicker {
    display: inline-flex; align-items: center; gap: .5em;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand); margin-bottom: .75rem;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.kicker--light { color: var(--accent); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 768px) { .card { padding: 32px; } }

/* ---------- Khối cố định: topbar + header (PC & mobile) ---------- */
.site-top { position: sticky; top: 0; z-index: 100; }
.admin-bar .site-top { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .site-top { top: 0; } } /* admin bar WP không cố định trên mobile */

/* ---------- Topbar ---------- */
.topbar { background: var(--brand-900); color: rgba(255, 255, 255, .82); font-size: .78rem; }
.topbar__inner { display: flex; gap: 16px; align-items: center; height: var(--topbar-h); }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: inherit; white-space: nowrap; }
.topbar__item .icon { width: 14px; height: 14px; color: var(--accent); }
.topbar a.topbar__item:hover { color: #fff; }
.topbar__phone { font-weight: 700; color: #fff; }
.topbar__email { margin-left: auto; }
.topbar__email span { overflow: hidden; text-overflow: ellipsis; }
/* Mobile: chỉ hotline + email; địa chỉ & giờ làm việc hiện khi đủ rộng */
.topbar__addr, .topbar__hours { display: none; }
@media (min-width: 900px) {
    .topbar { font-size: .82rem; }
    .topbar__inner { gap: 28px; }
    .topbar__addr { display: inline-flex; }
    .topbar__item .icon { width: 15px; height: 15px; }
}
@media (min-width: 1100px) { .topbar__hours { display: inline-flex; } }
@media (min-width: 1280px) { .topbar__phone { display: none; } } /* PC lớn: hotline đã có trên header */

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.site-top.is-scrolled .site-header { box-shadow: 0 6px 24px -12px rgba(16, 35, 26, .25); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: block; flex-shrink: 0; }
.brand__logo { height: 42px; width: auto; }
@media (min-width: 1100px) { .brand__logo { height: 56px; } }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-hotline { display: none; align-items: center; gap: 10px; padding: 0 8px; color: var(--ink); }
.header-hotline__icon {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand-50); color: var(--brand);
}
.header-hotline__icon .icon { width: 18px; height: 18px; }
.header-hotline__text { display: flex; flex-direction: column; line-height: 1.2; }
.header-hotline__text small { font-size: .72rem; color: var(--muted); }
.header-hotline__text strong { font-size: 1.02rem; color: var(--brand); }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; min-height: 42px; padding: .55em 1.2em; } }
@media (min-width: 1280px) { .header-hotline { display: flex; } }

/* ---------- Navigation: mobile drawer ---------- */
.main-nav {
    position: fixed; inset: 0 0 0 auto; z-index: 200;
    width: min(360px, 88vw); height: 100dvh;
    background: #fff; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
    /* Không đẩy ra ngoài viewport (translateX 100%) vì sẽ làm trang tràn ngang trên mobile */
    opacity: 0; visibility: hidden; pointer-events: none;
    clip-path: inset(0 0 0 100%);
    transition: clip-path .35s var(--ease), opacity .25s, visibility .35s;
}
/* inset trái âm: để lộ bóng làm tối màn hình (clip-path cắt cả box-shadow) */
.main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; clip-path: inset(0 0 0 -100vmax); }
.main-nav__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.main-nav__head img { height: 40px; width: auto; }
.main-nav__foot { display: grid; gap: 10px; padding: 20px; margin-top: auto; border-top: 1px solid var(--line); }
.main-nav .menu { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; flex: 1; }
.main-nav .menu li { position: relative; }
.main-nav .menu a {
    display: block; padding: 13px 56px 13px 20px;
    color: var(--ink); font-weight: 600; font-size: 1rem;
}
.main-nav .menu a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { color: var(--brand); }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 0 0 8px; display: none; background: var(--bg-soft); }
.main-nav .sub-menu a { padding: 10px 20px 10px 36px; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.main-nav .sub-menu .sub-menu a { padding-left: 52px; }
.main-nav li.is-open > .sub-menu { display: block; }
.submenu-toggle {
    position: absolute; top: 4px; right: 8px; width: 42px; height: 42px;
    display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 50%;
}
.submenu-toggle .icon { transition: transform .25s; }
li.is-open > .submenu-toggle .icon { transform: rotate(180deg); }

/*
 * Drawer nằm trong .site-header (z-index 100 + backdrop-filter = stacking context riêng),
 * nên z-index của drawer không thể vượt .nav-backdrop bên ngoài. Khi mở: nâng cả header
 * lên trên backdrop, bỏ backdrop-filter (để position:fixed tính theo viewport), và làm tối
 * màn hình bằng bóng của drawer. Backdrop chỉ còn nhiệm vụ bắt chạm bên ngoài để đóng.
 */
.nav-backdrop { position: fixed; inset: 0; z-index: 150; background: transparent; }
body.nav-open { overflow: hidden; }
body.nav-open .site-top { z-index: 300; }
body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.main-nav.is-open { box-shadow: 0 0 0 100vmax rgba(3, 38, 21, .45), var(--shadow-lg); }

/* ---------- Navigation: desktop ---------- */
@media (min-width: 1100px) {
    .nav-toggle, .main-nav__head, .main-nav__foot, .submenu-toggle { display: none !important; }
    .main-nav {
        position: static; width: auto; height: auto; opacity: 1; visibility: visible; pointer-events: auto; clip-path: none;
        box-shadow: none; background: transparent; flex-direction: row; margin-left: 24px;
    }
    .main-nav .menu { display: flex; gap: 2px; padding: 0; overflow: visible; }
    .main-nav .menu > li > a {
        padding: 10px 14px; border-radius: 999px; font-size: .95rem;
        display: flex; align-items: center; gap: 4px;
    }
    .main-nav .menu > li > a:hover,
    .main-nav .menu > .current-menu-item > a,
    .main-nav .menu > .current-menu-ancestor > a { background: var(--brand-50); }
    .main-nav .menu > .menu-item-has-children > a::after {
        content: ""; width: 7px; height: 7px; margin-left: 4px; margin-top: -3px;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6;
    }
    .main-nav .sub-menu {
        display: block; position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
        padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
        transition: opacity .2s, transform .2s var(--ease), visibility .2s;
    }
    .main-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
    .main-nav li:hover > .sub-menu,
    .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
    .main-nav .sub-menu a { padding: 9px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
    .main-nav .sub-menu a:hover { background: var(--brand-50); }
    /* Cấp 3: kế thừa ẩn/hiện từ cha – nếu đặt visible thì vẫn bắt hover khi cha đang ẩn */
    .main-nav .sub-menu .sub-menu { position: static; opacity: 1; visibility: inherit; pointer-events: inherit; transform: none; box-shadow: none; border: 0; padding: 0 0 4px; min-width: 0; background: transparent; }
    .main-nav .sub-menu .sub-menu a { padding: 6px 14px 6px 26px; font-size: .86rem; color: var(--muted); }
    /* Mega menu cho menu nhiều mục con */
    .main-nav .menu > li.is-mega > .sub-menu {
        display: grid; grid-template-columns: repeat(3, minmax(210px, 1fr)); gap: 4px 12px;
        width: max-content; max-width: min(820px, 90vw); left: 50%; transform: translate(-50%, 8px);
    }
    .main-nav .menu > li.is-mega:hover > .sub-menu,
    .main-nav .menu > li.is-mega:focus-within > .sub-menu { transform: translate(-50%, 0); }
    .main-nav .menu > li.is-mega > .sub-menu > li > a { font-weight: 600; color: var(--ink); }
    .nav-backdrop { display: none !important; }
}

/* ---------- Search overlay ---------- */
.search-overlay {
    position: fixed; inset: 0; z-index: 300; background: rgba(3, 38, 21, .6);
    padding-top: 12vh; animation: fade .2s;
}
.search-overlay__form {
    display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius-lg);
    padding: 8px 8px 8px 20px; box-shadow: var(--shadow-lg); max-width: 720px; margin: 0 auto;
}
.search-overlay__form > .icon { color: var(--muted); }
.search-overlay__form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.1rem; padding: 12px 0; background: transparent; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section--tight { padding-block: 32px 56px; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand-900); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.section--brand::before {
    content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 165, 36, .18), transparent 65%);
}
.section--brand .section-title, .section--brand h3 { color: #fff; }
@media (min-width: 900px) { .section { padding-block: 88px; } .section--tight { padding-block: 40px 80px; } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); margin: 0; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1000px 500px at 100% 0%, var(--brand-50), transparent 60%),
        linear-gradient(180deg, #fff, var(--bg-soft));
    padding-block: 32px 48px;
}
.hero__inner { display: grid; gap: 32px; align-items: center; }
.hero__title { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .4em; }
.hero__text { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.hero__badges .icon { color: var(--brand); width: 20px; height: 20px; }
.hero__media { position: relative; }
.hero__media img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero__float {
    position: absolute; left: 12px; bottom: -18px;
    display: flex; align-items: center; gap: 12px;
    background: #fff; color: var(--ink); padding: 10px 18px 10px 10px; border-radius: 999px; box-shadow: var(--shadow);
}
.hero__float small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.2; }
.hero__float strong { color: var(--brand); font-size: 1.05rem; }
.hero__float-icon {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: var(--brand-900); animation: pulse 2s infinite;
}
@media (min-width: 900px) {
    .hero { padding-block: 64px 96px; }
    .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
    .hero__actions .btn { flex: 0 0 auto; }
    .hero__media img { aspect-ratio: 5 / 4; border-radius: 32px 32px 32px 120px; }
    .hero__float { left: -24px; bottom: 32px; }
}

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--ink); }
.cat-card__media { aspect-ratio: 1; background: var(--brand-50); display: grid; place-items: center; overflow: hidden; color: var(--brand); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card__media > .icon { width: 40px; height: 40px; }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.cat-card__name { font-weight: 700; font-size: .95rem; line-height: 1.35; }
.cat-card__count { font-size: .8rem; color: var(--muted); }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } .cat-card__body { padding: 16px 18px 18px; } .cat-card__name { font-size: 1.02rem; } }

/* ---------- About / features ---------- */
.about { display: grid; gap: 32px; align-items: center; }
.about__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.about__content > p { color: var(--muted); font-size: 1.05rem; }
.features { display: grid; gap: 16px; margin: 24px 0 28px; }
.feature { display: flex; gap: 14px; }
.feature h3 { font-size: 1rem; margin-bottom: .2em; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }
.feature__icon {
    display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
    background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.feature__icon .icon { width: 24px; height: 24px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; gap: 20px 24px; } }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.1fr; gap: 64px; } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } .product-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.product-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
    position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.product-card__media { aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand-100); background: var(--brand-50); }
.product-card__placeholder .icon { width: 48px; height: 48px; color: var(--brand); opacity: .4; }
.product-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); margin-bottom: 4px; }
.product-card__title { font-size: .92rem; line-height: 1.4; margin: 0 0 10px; font-weight: 700; }
.product-card__title a { color: var(--ink); }
.product-card__title a::after { content: ""; position: absolute; inset: 0; } /* cả card là link */
.product-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--brand); }
.product-card__more .icon { width: 1em; height: 1em; transition: transform .2s; }
.product-card:hover .product-card__more .icon { transform: translateX(4px); }
@media (min-width: 768px) { .product-card__body { padding: 16px 18px 18px; } .product-card__title { font-size: 1rem; } }

/* ---------- Post cards ---------- */
/* Tin tức: luôn 2 tin / hàng. Mobile: thẻ dọc gọn; PC: thẻ ngang (ảnh trái, chữ phải) */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .post-grid { gap: 20px; } }
@media (min-width: 1000px) { .post-grid { gap: 28px; } }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 12px 12px 14px; display: flex; flex-direction: column; }
.post-card__date { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); }
.post-card__date .icon { width: 13px; height: 13px; }
.post-card__title { font-size: .92rem; line-height: 1.4; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a { color: var(--ink); }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:hover { color: var(--brand); }
.post-card__excerpt { display: none; font-size: .92rem; color: var(--muted); margin: 8px 0 0; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) {
    .post-card__body { padding: 18px 20px 22px; }
    .post-card__date { font-size: .8rem; }
    .post-card__title { font-size: 1.05rem; margin-top: 8px; }
    .post-card__excerpt { display: -webkit-box; }
}
@media (min-width: 1000px) {
    .post-card { flex-direction: row; }
    .post-card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 210px; }
    .post-card__body { flex: 1; justify-content: center; padding: 22px 24px; }
    .post-card__title { font-size: 1.12rem; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; position: relative; }
.step {
    counter-increment: step; position: relative;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius); padding: 24px;
}
.step::before {
    content: "0" counter(step); position: absolute; top: 16px; right: 20px;
    font-size: 2.4rem; font-weight: 800; color: rgba(255, 255, 255, .08); line-height: 1;
}
.step__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: var(--brand-900); margin-bottom: 16px; }
.step__icon .icon { width: 26px; height: 26px; }
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; font-size: .92rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* ---------- Quote CTA ---------- */
.quote { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 60%, var(--brand-900) 100%); color: rgba(255, 255, 255, .85); padding-block: 56px; position: relative; overflow: hidden; }
.quote::after {
    content: ""; position: absolute; left: -120px; bottom: -220px; width: 480px; height: 480px; border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, .04);
}
.quote__inner { display: grid; gap: 32px; position: relative; z-index: 1; }
.quote h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.quote__points { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.quote__points li { display: flex; align-items: center; gap: 10px; }
.quote__points .icon { color: var(--accent); }
.quote__phone { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.quote__phone:hover { color: #fff; }
.quote__phone > span:first-child { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--brand-900); animation: pulse 2s infinite; }
.quote__phone small { display: block; font-size: .8rem; opacity: .75; }
.quote__phone strong { font-size: 1.4rem; }
.quote__form { color: var(--ink-2); }
@media (min-width: 900px) { .quote { padding-block: 88px; } .quote__inner { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; } }

/* ---------- Forms (CF7) ---------- */
.wpcf7 form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.wpcf7 label, .form-label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.wpcf7 input[type="text"], .wpcf7 input[type="tel"], .wpcf7 input[type="email"], .wpcf7 input[type="number"],
.wpcf7 select, .wpcf7 textarea, .search-inline input {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    padding: 12px 14px; min-height: 48px;
    border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 110px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus, .search-inline input:focus {
    outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(0, 87, 36, .1);
}
.wpcf7-submit {
    width: 100%; min-height: 54px; border: 0; border-radius: 999px;
    background: var(--accent); color: var(--brand-900); font-weight: 700; font-size: 1rem;
    transition: background .2s, transform .2s;
}
.wpcf7-submit:hover { background: var(--accent-600); transform: translateY(-1px); }
.wpcf7-spinner { display: block; margin: 8px auto 0; }
.wpcf7-not-valid-tip { font-size: .82rem; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.form-title { font-size: 1.3rem; margin-bottom: 4px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }

.search-inline { display: flex; gap: 8px; max-width: 560px; margin: 0 0 32px; }
.search-inline input { flex: 1; min-width: 0; }

/* ---------- Page hero & breadcrumb ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-50), #fff); padding-block: 20px 28px; border-bottom: 1px solid var(--line); }
.page-hero__title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 800; margin: 8px 0 0; }
.page-hero__desc { color: var(--muted); max-width: 760px; margin-top: 10px; }
.page-hero__desc p:last-child { margin: 0; }
@media (min-width: 900px) { .page-hero { padding-block: 32px 44px; } }

.breadcrumb ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before { content: "/"; opacity: .45; margin-right: 2px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.page-hero .breadcrumb ol { padding-top: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0; padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; transition: all .2s;
}
.chip:hover, .chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Shop layout ---------- */
.shop { display: grid; gap: 24px; padding-block: 24px 64px; }
.shop__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: .92rem; }
.shop__bar p { margin: 0; }
.shop__sidebar-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 12px; }
.shop__sidebar-title .icon { color: var(--brand); }
.cat-tree { list-style: none; margin: 0; padding: 0; }
.cat-tree ul { list-style: none; margin: 0; padding: 0 0 6px 14px; display: none; border-left: 2px solid var(--brand-100); margin-left: 14px; }
.cat-tree li.is-open > ul, .cat-tree li:hover > ul { display: block; }
.cat-tree a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.cat-tree > li > a { font-weight: 600; }
.cat-tree a span { font-size: .78rem; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 1px 8px; align-self: center; }
.cat-tree a:hover { background: var(--brand-50); color: var(--brand); }
.cat-tree a.is-active { background: var(--brand); color: #fff; }
.cat-tree a.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
.sidebar-cta { margin-top: 24px; padding: 22px; border-radius: var(--radius); background: var(--brand-900); color: rgba(255, 255, 255, .8); }
.sidebar-cta h3 { color: #fff; font-size: 1.1rem; }
.sidebar-cta p { font-size: .9rem; }

@media (max-width: 1023px) {
    /* Mobile: danh mục thành dải chip cuộn ngang */
    .shop__sidebar-title, .sidebar-cta { display: none; }
    .cat-tree { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
    .cat-tree::-webkit-scrollbar { display: none; }
    .cat-tree li { flex-shrink: 0; }
    .cat-tree ul, .cat-tree li:hover > ul, .cat-tree li.is-open > ul { display: none; }
    .cat-tree a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; white-space: nowrap; font-size: .88rem; }
}
@media (min-width: 1024px) {
    .shop { grid-template-columns: 270px 1fr; gap: 40px; padding-block: 40px 88px; }
    .shop__sidebar { position: sticky; top: calc(var(--sticky-h) + 20px); align-self: start; max-height: calc(100vh - var(--sticky-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
}

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pagination .page-numbers {
    display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px;
    border: 1px solid var(--line); color: var(--ink); font-weight: 600; background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .dots { border: 0; background: transparent; }

.empty { text-align: center; padding: 56px 20px; background: var(--bg-soft); border-radius: var(--radius-lg); }
.empty > .icon { width: 48px; height: 48px; color: var(--brand); opacity: .5; margin-bottom: 12px; }
.empty p { color: var(--muted); max-width: 440px; margin-inline: auto; }

/* ---------- Single product ---------- */
.product { display: grid; gap: 28px; padding-bottom: 40px; }
.product__main-img {
    aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft);
    border: 1px solid var(--line); display: grid; place-items: center;
}
.product__main-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.product__main-img img.is-loading { opacity: .3; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.product__thumbs::-webkit-scrollbar { display: none; }
.product__thumbs button {
    flex: 0 0 72px; aspect-ratio: 1; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
    transition: border-color .2s;
}
.product__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs button.is-active, .product__thumbs button:hover { border-color: var(--brand); }
.product__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.product__cats a { font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }
.product__cats a:hover { background: var(--brand); color: #fff; }
.product__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 800; }
.product__lead { color: var(--muted); font-size: 1.02rem; }
.product__points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.product__points li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.product__points .icon { color: #fff; background: var(--brand); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.product__price { padding: 14px 18px; border-radius: var(--radius); background: var(--bg-soft); border: 1px dashed var(--brand-100); margin-bottom: 20px; }
.product__price strong { color: var(--brand); font-size: 1.25rem; }
.product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product__actions .btn:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .product { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-bottom: 64px; }
    .product__gallery { position: sticky; top: calc(var(--sticky-h) + 20px); }
    .product__thumbs button { flex-basis: 84px; }
    .product__actions { display: flex; flex-wrap: wrap; }
    .product__actions .btn:first-child { grid-column: auto; }
}

.product-detail { display: grid; gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.product-detail__heading { font-size: 1.4rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 3px solid var(--brand); display: inline-block; }
@media (min-width: 1000px) {
    .product-detail { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
    .product-detail__aside > * { position: sticky; top: calc(var(--sticky-h) + 20px); }
}

.contact-box { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--line); }
.contact-box h3 { font-size: 1.15rem; }
.contact-box p { font-size: .92rem; color: var(--muted); }
.contact-box > a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.contact-box > a:not(.btn) .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.contact-box > a small { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }
.contact-box .btn { margin-bottom: 12px; }

.related { padding-block: 56px 72px; }
.related .section-title { margin-bottom: 24px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tags a { font-size: .85rem; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.tags a:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Prose (nội dung bài viết) ---------- */
.prose { color: var(--ink-2); font-size: 1.02rem; line-height: 1.8; overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.08rem; margin: 1.4em 0 .5em; }
.prose h2 span, .prose h3 span, .prose h4 span { font-size: inherit !important; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: var(--radius); display: inline-block; vertical-align: middle; }
.prose .aligncenter, .prose img.aligncenter { display: block; margin: 1.2em auto; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose figure { margin: 1.5em 0; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text, .prose figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose blockquote { margin: 1.5em 0; padding: 16px 24px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--brand-50); color: var(--ink); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) { .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 1em auto; } }

/* ---------- Article ---------- */
.article { padding-bottom: 40px; }
.article__head { max-width: 860px; padding-block: 8px 28px; }
.article__cat { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px; background: var(--brand-50); margin-bottom: 14px; }
.article__title { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.6rem); font-weight: 800; }
.article__meta { display: flex; gap: 20px; color: var(--muted); font-size: .9rem; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta .icon { width: 16px; height: 16px; }
.article__layout { display: grid; gap: 40px; }
.article__cover { margin: 0 0 32px; }
.article__cover img { width: 100%; border-radius: var(--radius-lg); }
.article__aside { display: grid; gap: 24px; align-content: start; }
.mini-list h3 { font-size: 1.05rem; margin-bottom: 12px; }
.mini-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; line-height: 1.4; }
.mini-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.mini-item:hover { color: var(--brand); }
@media (min-width: 1000px) {
    .article__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
    .article__aside { position: sticky; top: calc(var(--sticky-h) + 20px); align-self: start; }
}

.page-content { max-width: 900px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 16px; margin-bottom: 40px; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.contact-card h2 { font-size: 1.1rem; margin: 14px 0 6px; }
.contact-card p { margin: 0 0 4px; color: var(--muted); font-size: .94rem; }
.contact-card a { font-weight: 700; }
.contact-card small { color: var(--muted); }
.contact-main { display: grid; gap: 24px; }
.contact-main h2 { font-size: 1.4rem; }
.contact-main__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius-lg); }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } .contact-main { grid-template-columns: 1.1fr 1fr; gap: 32px; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; max-width: 640px; }
.notfound__code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--muted); }
.notfound .search-inline { margin: 24px auto; }
.notfound__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #041d11; color: rgba(255, 255, 255, .68); font-size: .93rem; padding-top: 56px; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: var(--accent); }
.site-footer__grid { display: grid; gap: 36px; padding-bottom: 40px; }
.site-footer__about img { height: 64px; width: auto; margin-bottom: 16px; }
.site-footer__title { color: #fff; font-size: 1.02rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.site-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--accent); }
.contact-list, .link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.contact-list strong { color: rgba(255, 255, 255, .9); font-weight: 600; }
.link-list a { display: inline-block; padding: 2px 0; }
.link-list .sub-menu { display: none; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s; }
.social a:hover { background: var(--accent); color: var(--brand-900); }
.social .icon { width: 20px; height: 20px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0 90px; font-size: .85rem; text-align: center; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
    .site-footer { padding-top: 80px; }
    .site-footer__grid { grid-template-columns: 1.3fr 1.5fr 1fr 1fr; gap: 48px; }
    .site-footer__bottom { padding-bottom: 18px; }
}

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: none; flex-direction: column; gap: 12px; }
.float-contact__btn {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); transition: transform .2s;
}
.float-contact__btn:hover { transform: scale(1.08); color: #fff; }
.float-contact__btn .icon { width: 26px; height: 26px; }
.float-contact__btn .icon-zalo { width: 34px; height: 34px; }
.float-contact__btn--zalo { background: var(--zalo); }
.float-contact__btn--phone { background: var(--brand); animation: pulse-brand 2s infinite; }
@media (min-width: 1000px) { .float-contact { display: flex; } }

.mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .2);
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; min-height: 60px; font-size: .72rem; font-weight: 600; color: var(--ink-2); }
.mobile-bar a .icon { width: 22px; height: 22px; color: var(--brand); }
.mobile-bar a .icon-zalo { color: var(--zalo); width: 26px; height: 26px; }
.mobile-bar__cta { background: var(--accent); color: var(--brand-900) !important; }
.mobile-bar__cta .icon { color: var(--brand-900) !important; }
@media (min-width: 1000px) { .mobile-bar { display: none; } }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, .6); } 70% { box-shadow: 0 0 0 14px rgba(245, 165, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); } }
@keyframes pulse-brand { 0% { box-shadow: 0 0 0 0 rgba(0, 87, 36, .55); } 70% { box-shadow: 0 0 0 16px rgba(0, 87, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 87, 36, 0); } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Cột grid không bị nội dung cuộn ngang (thumbs, chips) kéo rộng */
.product > *, .shop > *, .product-detail > *, .article__layout > *, .contact-main > *, .hero__inner > *, .about > *, .quote__inner > * { min-width: 0; }

/* Icon Zalo trên nền xanh: bong bóng trắng, chữ xanh */
.btn--zalo, .float-contact__btn--zalo, .main-nav__foot .btn--ghost { --zalo-text: var(--zalo); }
.main-nav__foot .btn--ghost .icon-zalo { color: var(--zalo); --zalo-text: #fff; }
/* Trang Liên hệ đã có tiêu đề riêng cho form */
.contact-main__form .form-head { display: none; }
