/**
 * Ember Lotus storefront identity and artisan product presentation
 * Fonts with full Vietnamese diacritics:
 *   brand/body = Be Vietnam Pro (thiết kế cho tiếng Việt)
 *   display    = Source Serif 4 (serif sang, Latin Extended đầy đủ)
 * (Cinzel / Cormorant Garamond hay vỡ/mất dấu ộ, ư, ế…)
 */

/* Fonts loaded once from header.blade.php (preload + display=swap) — avoid double @import download */

:root {
    /* Ember Lotus: jade, ember clay, warm brass and rice paper */
    --pv-accent: #c86c4f;
    --pv-brass: #d8b46a;
    --pv-jade: #25463f;
    --pv-accent-soft: #f0e4b8;
    --pv-cream: #f4efe6;
    --pv-cream-2: #f4efe6;
    --pv-warm: #faf8f3;
    --pv-dark: #17241f;
    --pv-dark-2: #16140f;
    --pv-ink: #26302b;
    --pv-muted: #6f695f;
    --pv-border: #e6dfd2;
    --pv-olive: #52695a;

    /* Stack always ends with Be Vietnam Pro / system so dấu never fall back to broken glyphs */
    --pv-brand: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pv-display: 'Source Serif 4', 'Be Vietnam Pro', Georgia, 'Times New Roman', serif;
    --pv-body: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --primary-color: #c86c4f !important;
    --bs-primary: #c86c4f !important;
    --bs-bg-primary: #c86c4f !important;
    --bs-primary-rgb: 200, 108, 79 !important;
    --heading-color: #26302b !important;
    --text-color: #2c2a26 !important;
    --primary-button-color: #26302b !important;
    --primary-button-background-color: #c86c4f !important;
    --top-header-background-color: #f4efe6 !important;
    --middle-header-background-color: transparent !important;
    --bottom-header-background-color: transparent !important;
    --footer-hover-color: #c86c4f !important;
    --footer-border-color: #e6dfd2 !important;
}

body,
body.lb-home-page,
.header,
.footer,
.menu,
.ps-product,
.product-cart-wrap,
input,
button,
select,
textarea {
    font-family: var(--pv-body) !important;
}

body {
    background: var(--pv-warm);
    color: var(--pv-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Better diacritic spacing for Vietnamese */
    font-feature-settings: 'kern' 1, 'liga' 1;
    font-kerning: normal;
}

h1, h2, h3, h4, h5, h6,
.pv-h2, .pv-hero__title, .pv-coll__body h3, .pv-card__body h3,
.page-title, .section-title {
    font-family: var(--pv-display) !important;
    font-weight: 600;
    color: var(--pv-ink);
    /* Source Serif optical size for headings */
    font-optical-sizing: auto;
}

/* ========== LOGO LOCKUP — Ember Lotus ========== */
.lx-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    max-width: 100%;
}

.lx-brand__mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(255, 248, 220, 0.18), transparent 65%);
    border: 1px solid rgba(200, 108, 79, 0.35);
    box-shadow: 0 0 0 4px rgba(200, 108, 79, 0.06);
}

.lx-brand__img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 1px 6px rgba(200, 108, 79, 0.3));
}

body.lb-home-page .lx-brand__mark {
    border-color: rgba(216, 180, 106, 0.45);
    box-shadow: 0 0 0 4px rgba(216, 180, 106, 0.08), 0 4px 18px rgba(0, 0, 0, 0.25);
    background: radial-gradient(circle at 40% 35%, rgba(216, 180, 106, 0.14), transparent 70%);
}

body.lb-home-page .lx-brand__img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 10px rgba(216, 180, 106, 0.45));
}

.lx-brand--lockup {
    gap: 0.75rem;
}
.lx-brand--lockup .lx-brand__lockup {
    justify-content: center;
}

.lx-brand__lockup,
.lx-brand__lockup--nav {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    line-height: 1.12;
    min-width: 0;
    gap: 0.18rem;
}

.lx-brand__name {
    font-family: var(--pv-display) !important;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #25463f !important;
    -webkit-text-fill-color: #25463f;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-shadow: none;
    white-space: nowrap;
}

.lx-brand__tag {
    font-family: var(--pv-body) !important;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a7a4a !important;
    -webkit-text-fill-color: #8a7a4a;
    opacity: 1;
    margin-top: 0;
    white-space: nowrap;
}

/* Home (dark overlay): light gold wordmark */
body.lb-home-page .lx-brand__name {
    font-size: 1.18rem;
    color: #f2dfb4 !important;
    -webkit-text-fill-color: #f2dfb4;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

body.lb-home-page .lx-brand__tag {
    letter-spacing: 0.16em;
    font-size: 0.55rem;
    color: rgba(216, 180, 106, 0.9) !important;
    -webkit-text-fill-color: rgba(216, 180, 106, 0.9);
}

/* Inner pages: deep gold on white */
body:not(.lb-home-page) .lx-brand__name {
    color: #25463f !important;
    -webkit-text-fill-color: #25463f;
}

body:not(.lb-home-page) .lx-brand__tag {
    color: #7a6a3a !important;
    -webkit-text-fill-color: #7a6a3a;
}

.lx-brand__mark-fallback {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pv-accent);
    color: var(--pv-brass);
    font-size: 1.1rem;
}

/* ========== Desktop header layout polish ========== */
@media (min-width: 1200px) {
    body .header .header-middle {
        padding: 0.65rem 0;
        min-height: 72px;
    }
    body .header .header-middle .header-wrapper {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    body .header .header-middle .header__left {
        width: auto;
        flex: 0 0 auto;
        min-width: 200px;
    }
    body .header .header-middle .header__center {
        flex: 1 1 auto;
        max-width: 520px;
        margin: 0 auto;
    }
    body .header .header-middle .header__right {
        width: auto;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    body .header .header-bottom {
        border-top: 1px solid var(--pv-border);
    }
    body .header .header-bottom .navigation {
        min-height: 46px;
    }
    body .header .menu > li > a {
        font-size: 0.82rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.04em;
        padding: 0.75rem 0.9rem !important;
    }

    /* Home: transparent bar + visible gold nav under logo row */
    body.lb-home-page .header .header-middle {
        background: transparent !important;
        padding-top: 0.85rem;
        padding-bottom: 0.35rem;
    }
    body.lb-home-page .header .header-bottom {
        background: transparent !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    body.lb-home-page .header .header-bottom .menu > li > a {
        color: rgba(255, 255, 255, 0.92) !important;
    }
    body.lb-home-page .header .header-bottom .menu > li > a:hover {
        color: #f2dfb4 !important;
    }
    /* Show main nav on home (was easy to miss on dark) */
    body.lb-home-page .header .navigation__center {
        display: flex !important;
        justify-content: center;
        width: 100%;
    }
    body.lb-home-page .header .form--quick-search {
        display: none !important;
    }
    body.lb-home-page .header-support {
        display: none !important;
    }
}

/* Mobile logo */
@media (max-width: 1199px) {
    .lx-brand {
        gap: 0.5rem;
    }
    .lx-brand__img {
        width: 36px;
        height: 36px;
    }
    .lx-brand__name {
        font-size: 0.92rem;
        letter-spacing: 0.01em;
        line-height: 1.15;
    }
    .lx-brand__tag {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
        line-height: 1.2;
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header-mobile .lx-brand__name {
        max-width: 48vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ========== Mobile header / menu (Farmart breakpoint ≤1199) ==========
   Hide desktop chrome that Bootstrap d-lg misses when CSS order/CDN fails.
*/
@media (max-width: 1199px) {
    /* Desktop one-row bar off; mobile bar on */
    body .header .lx-bar,
    body .header .header-top,
    body .header .lx-header-top-legacy,
    body .header .header-middle,
    body .header .header-bottom {
        display: none !important;
    }

    body .header.lx-header {
        position: relative;
        background: #fff !important;
        border-bottom: none;
        box-shadow: none !important;
        padding-bottom: 0;
    }

    body .header-mobile {
        display: flex !important;
    }

    /* Homepage: transparent mobile bar over hero */
    body.lb-home-page .header.lx-header {
        position: absolute;
        left: 0;
        right: 0;
        z-index: 50;
        background: transparent !important;
    }
    body.lb-home-page .header-mobile {
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }
    body.lb-home-page .header-mobile .svg-icon,
    body.lb-home-page .header-mobile svg,
    body.lb-home-page .header-mobile .lx-bar__icon {
        color: #fff !important;
        fill: #fff !important;
        stroke: #fff !important;
    }
    body.lb-home-page .header-mobile .lx-brand__name {
        color: #f2dfb4 !important;
        -webkit-text-fill-color: #f2dfb4 !important;
    }
    body.lb-home-page .header-mobile .lx-brand__tag {
        color: #d8b46a !important;
        -webkit-text-fill-color: #d8b46a !important;
    }

    /* Non-home: solid cream bar */
    body:not(.lb-home-page) .header-mobile {
        background: #fff !important;
        border-bottom: 1px solid var(--pv-border) !important;
        padding: 0.65rem 0.85rem !important;
        align-items: center;
        min-height: 56px;
    }
    body:not(.lb-home-page) .header-mobile .svg-icon,
    body:not(.lb-home-page) .header-mobile svg,
    body:not(.lb-home-page) .header-mobile .lx-bar__icon {
        color: var(--pv-ink) !important;
        fill: var(--pv-ink) !important;
    }
    body:not(.lb-home-page) .header-mobile .lx-brand__name {
        color: #25463f !important;
        -webkit-text-fill-color: #25463f !important;
        font-size: 0.9rem;
    }
    body:not(.lb-home-page) .header-mobile .lx-brand__tag {
        color: #7a6a3a !important;
        -webkit-text-fill-color: #7a6a3a !important;
        font-size: 0.48rem;
    }
    .header-mobile .lx-brand__img {
        width: 32px !important;
        height: 32px !important;
        border-radius: 0 !important;
        object-fit: contain !important;
    }
    .header-mobile .lx-brand__mark {
        width: 40px;
        height: 40px;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .header-mobile {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        width: 100%;
        gap: 0.25rem;
    }
    .header-items-mobile {
        display: flex !important;
        align-items: center;
    }
    .header-items-mobile--left {
        width: auto !important;
        flex: 0 0 auto;
        min-width: 40px;
        justify-content: flex-start;
    }
    .header-items-mobile--center {
        width: auto !important;
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
        padding: 0 0.35rem;
    }
    .header-items-mobile--right {
        width: auto !important;
        flex: 0 0 auto;
        min-width: 40px;
        justify-content: flex-end;
    }
    .header-mobile .menu-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
    }
    .header-mobile .menu-icon .svg-icon {
        font-size: 22px !important;
    }
    .header-mobile .open-search-panel {
        display: inline-flex !important;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
    }
    .header-mobile .lx-brand {
        max-width: 100%;
        gap: 0.4rem;
    }
    .header-mobile .lx-brand__lockup {
        min-width: 0;
    }
    .header-mobile .lx-brand__name,
    .header-mobile .lx-brand__tag {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 52vw;
    }

    /* Topbar compact on phone */
    .lx-topbar {
        font-size: 0.62rem;
        letter-spacing: 0.02em;
        padding: 0.4rem 0.5rem;
    }
    .lx-topbar__inner {
        gap: 0.25rem 0.5rem;
        justify-content: center;
    }

    /* Mobile drawer menu panel */
    #menu-mobile.panel--sidebar,
    #navigation-mobile.panel--sidebar {
        max-width: min(320px, 88vw);
    }
    #menu-mobile .panel__header,
    #navigation-mobile .panel__header {
        background: var(--pv-cream);
        border-bottom: 1px solid var(--pv-border);
        padding: 0.9rem 1rem;
    }
    #menu-mobile .panel__header h3,
    #navigation-mobile .panel__header h3 {
        font-family: var(--pv-display) !important;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--pv-ink) !important;
        margin: 0;
    }
    #menu-mobile .menu--mobile,
    #navigation-mobile .menu--mobile {
        list-style: none;
        margin: 0;
        padding: 0.35rem 0 1.5rem;
    }
    #menu-mobile .menu--mobile > li > a,
    #navigation-mobile .menu--mobile > li > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.1rem !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        color: var(--pv-ink) !important;
        border-bottom: 1px solid var(--pv-border);
        text-decoration: none !important;
        letter-spacing: 0.01em;
    }
    #menu-mobile .menu--mobile > li > a:hover,
    #navigation-mobile .menu--mobile > li > a:hover {
        background: var(--pv-warm);
        color: var(--pv-jade) !important;
    }
    #menu-mobile .menu--mobile .sub-menu a {
        padding: 0.65rem 1.1rem 0.65rem 1.75rem !important;
        font-size: 0.88rem !important;
        color: var(--pv-muted) !important;
    }

    /* Footer mobile dock — gold accents */
    .footer-mobile {
        border-top: 1px solid var(--pv-border);
        background: #fff !important;
        z-index: 100;
    }
    .footer-mobile .menu--footer {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .footer-mobile .menu--footer a {
        color: var(--pv-ink) !important;
    }
    .footer-mobile .menu--footer a:hover,
    .footer-mobile .menu--footer a.active {
        color: var(--pv-jade) !important;
    }
}

/* Hero / section Vietnamese titles */
.pv-hero__title,
.pv-hero__brand,
.pv-hero__line,
.pv-kicker,
.pv-label {
    font-feature-settings: 'kern' 1;
}
.pv-hero__brand {
    font-family: var(--pv-brand) !important;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.pv-hero__line {
    font-family: var(--pv-display) !important;
}

/* ========== TOPBAR cream (refined — not shouty ecom caps) ========== */
.lx-topbar {
    background: linear-gradient(180deg, #f7f3eb 0%, var(--pv-cream) 100%);
    border-bottom: 1px solid rgba(200, 108, 79, 0.18);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #5c564c;
    font-weight: 400;
    padding: 0.5rem 0;
}

.lx-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.85rem;
    text-align: center;
    line-height: 1.35;
}

.lx-topbar__item {
    color: #4a453c;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.lx-topbar__dot {
    opacity: 0.35;
    color: var(--pv-jade);
    font-weight: 400;
    user-select: none;
}

/* Destiny tool: quieter top strip matching Ba Zi page */
.lx-topbar--destiny {
    background: #0f0e0c;
    border-bottom: 1px solid rgba(216, 180, 106, 0.12);
    color: rgba(247, 244, 238, 0.55);
}
.lx-topbar--destiny .lx-topbar__item {
    color: rgba(247, 244, 238, 0.72);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}
.lx-topbar--destiny .lx-topbar__dot {
    color: rgba(216, 180, 106, 0.55);
    opacity: 1;
}

/* Inner pages: stronger logo lockup on white header */
body:not(.lb-home-page) .lx-brand__mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(168, 132, 28, 0.45);
    background: radial-gradient(circle at 40% 30%, rgba(255, 248, 220, 0.95), rgba(245, 239, 228, 0.5) 70%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 10px rgba(168, 132, 28, 0.12);
}
body:not(.lb-home-page) .lx-brand__img {
    width: 30px;
    height: 30px;
    filter: none;
}
body:not(.lb-home-page) .lx-brand__name {
    font-size: 1.12rem;
    font-weight: 600;
    color: #25463f !important;
    -webkit-text-fill-color: #25463f !important;
    letter-spacing: 0.01em;
}
body:not(.lb-home-page) .lx-brand__tag {
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    color: #7a6a3a !important;
    -webkit-text-fill-color: #7a6a3a !important;
}

/* Destiny: header sits over continuity with dark topbar */
body:not(.lb-home-page) .lx-header--oneline {
    border-bottom: 1px solid var(--pv-border) !important;
}
/* Slim breadcrumb under header on destiny */
.page-header .page-breadcrumbs {
    background: transparent;
    border: none;
    padding: 0.65rem 0 0;
}
.page-header .breadcrumb {
    margin: 0;
    font-size: 0.78rem;
    justify-content: center;
}
.page-header .breadcrumb-item a {
    color: var(--pv-muted) !important;
    text-decoration: none !important;
}
.page-header .breadcrumb-item.active span {
    color: var(--pv-jade) !important;
}
/* Hide empty title blocks if any remain */
.page-header .page-title:empty {
    display: none !important;
}

/* ========== ONE-ROW HEADER: logo | menu | actions ========== */
.lx-header--oneline {
    border: none !important;
    box-shadow: none !important;
}

.lx-bar {
    width: 100%;
}

.lx-bar__shell {
    display: grid;
    grid-template-columns: minmax(180px, 1.15fr) minmax(0, 2.4fr) minmax(140px, 0.95fr);
    align-items: center;
    gap: 1rem 1.5rem;
    min-height: 76px;
    padding: 0.65rem 0;
}

.lx-bar__brand {
    min-width: 0;
    justify-self: start;
}

.lx-bar__nav {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.lx-bar__menu {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem 0.1rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lx-bar__menu > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lx-bar__menu > li > a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    padding: 0.55rem 0.85rem !important;
    font-family: var(--pv-body) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: var(--pv-ink) !important;
    white-space: nowrap;
    position: relative;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.lx-bar__menu > li > a::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.3rem;
    height: 1px;
    background: var(--pv-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
    opacity: 0.85;
}

.lx-bar__menu > li > a:hover,
.lx-bar__menu > li.current-menu-item > a {
    color: var(--pv-jade) !important;
}

.lx-bar__menu > li > a:hover::after,
.lx-bar__menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

.lx-bar__menu .sub-toggle {
    display: inline-flex;
    margin-left: 0.15rem;
}

.lx-bar__menu .sub-menu {
    z-index: 80;
}

.lx-bar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: 0;
}

.lx-bar__lang {
    font-size: 0.72rem;
}

.lx-bar__lang a,
.lx-bar__lang span {
    font-size: 0.7rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lx-bar__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pv-ink) !important;
    border: 1px solid transparent;
    text-decoration: none !important;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.lx-bar__icon:hover {
    border-color: rgba(200, 108, 79, 0.45);
    color: var(--pv-jade) !important;
}

.lx-bar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1.1rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: var(--pv-ink) !important;
    border: 1px solid rgba(200, 108, 79, 0.75);
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lx-bar__cta:hover {
    background: var(--pv-accent);
    border-color: var(--pv-accent);
    color: #26302b !important;
}

/* Inner pages: white single-row bar */
body:not(.lb-home-page) .header.lx-header--oneline {
    background: #fff !important;
    border-bottom: 1px solid var(--pv-border) !important;
}

/* Homepage: transparent single-row over hero */
body.lb-home-page .header.lx-header--oneline {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(10, 10, 8, 0.72) 0%, rgba(10, 10, 8, 0.22) 72%, transparent 100%) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

body.lb-home-page .lx-topbar {
    display: none !important;
}

body.lb-home-page .lx-bar__menu > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.lb-home-page .lx-bar__menu > li > a:hover,
body.lb-home-page .lx-bar__menu > li.current-menu-item > a {
    color: #f2dfb4 !important;
}

body.lb-home-page .lx-bar__menu > li > a::after {
    background: #d8b46a;
}

body.lb-home-page .lx-bar__icon {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.lb-home-page .lx-bar__icon:hover {
    color: #f2dfb4 !important;
    border-color: rgba(216, 180, 106, 0.45);
}

body.lb-home-page .lx-bar__cta {
    color: #f7f4ee !important;
    border-color: rgba(216, 180, 106, 0.75);
}

body.lb-home-page .lx-bar__cta:hover {
    background: #d8b46a;
    border-color: #d8b46a;
    color: #26302b !important;
}

body.lb-home-page .lx-bar__lang a,
body.lb-home-page .lx-bar__lang span,
body.lb-home-page .lx-bar__lang li {
    color: rgba(255, 255, 255, 0.88) !important;
}

body.lb-home-page .header .lx-brand__name {
    color: #f2dfb4 !important;
    -webkit-text-fill-color: #f2dfb4 !important;
}

body.lb-home-page .header .lx-brand__tag {
    color: #d8b46a !important;
    -webkit-text-fill-color: #d8b46a !important;
}

/* Legacy multi-row Farmart chrome is gone from markup — keep kill-switches safe */
body .header .header-top,
body .header .header-middle,
body .header .header-bottom,
body .header .lx-header-top-legacy {
    display: none !important;
}

/* ========== Soft storefront: no cart / auth chrome ========== */
body.lb-hide-cart .cart--mini,
body.lb-hide-cart .btn-shopping-cart,
body.lb-hide-cart .header-wishlist,
body.lb-hide-cart .header-compare,
body.lb-hide-cart .add-to-cart-button,
body.lb-hide-cart .cart-form .product-quantity,
body.lb-hide-cart #sticky-add-to-cart,
body.lb-hide-cart .product-loop_button.wishlist-button,
body.lb-hide-cart .product-wishlist-button,
body.lb-hide-cart a[href*="/cart"],
body.lb-hide-cart a[href*="/wishlist"],
body.lb-hide-cart a[href*="/compare"] {
    display: none !important;
}

body.lb-hide-auth a[href*="/login"],
body.lb-hide-auth a[href*="/register"],
body.lb-hide-auth a[href*="/customer"],
body.lb-hide-auth a[href*="/logout"] {
    display: none !important;
}

/* Non-home header soft cream */
body:not(.lb-home-page) .header {
    background: #fff !important;
    border-bottom: 1px solid var(--pv-border);
}

body:not(.lb-home-page) .header .logo img,
body:not(.lb-home-page) .header .lx-brand__img {
    width: 42px !important;
    height: 42px !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* Sticky after scroll on home — keep dark elegant */
body.lb-home-page .header.header--sticky,
body.lb-home-page .header.is-sticky {
    background: rgba(14, 14, 12, 0.94) !important;
    backdrop-filter: blur(12px);
}

/* Mobile header — same dark overlay (Farmart uses .header-mobile) */
body.lb-home-page .header-mobile {
    position: absolute !important;
    left: 0;
    right: 0;
    z-index: 55;
    background: linear-gradient(180deg, rgba(10, 10, 8, 0.88) 0%, rgba(10, 10, 8, 0.35) 100%) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
body.lb-home-page .header-mobile .logo,
body.lb-home-page .header-mobile .lx-logo {
    background: transparent !important;
}
body.lb-home-page .header-mobile a,
body.lb-home-page .header-mobile .svg-icon,
body.lb-home-page .header-mobile svg {
    color: #fff !important;
    fill: #fff !important;
}
body.lb-home-page .header-mobile .lx-brand__name {
    color: #f2dfb4 !important;
    -webkit-text-fill-color: #f2dfb4 !important;
}
body.lb-home-page .header-mobile .lx-brand__tag {
    color: #d8b46a !important;
    -webkit-text-fill-color: #d8b46a !important;
}
body.lb-home-page .header-mobile .header-item-counter {
    background: var(--pv-accent) !important;
    color: #26302b !important;
}

/* Float chat compact gold */
#button-contact-vr {
    transform: scale(0.58) !important;
    bottom: 80px !important;
    right: 2px !important;
    z-index: 1040 !important;
}
#button-contact-vr .phone-bar {
    display: none !important;
}
#zalo-vr .phone-vr-circle-fill {
    background-color: rgba(201, 169, 97, 0.55) !important;
    box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.45) !important;
}
#zalo-vr .phone-vr-img-circle {
    background-color: #c9a961 !important;
}
#phone-vr .phone-vr-circle-fill,
#phone-vr .phone-vr-img-circle {
    background-color: #c9a961 !important;
}
a[href*='become-vendor'],
.widget-become-vendor {
    display: none !important;
}

/* ========== HERO — preview.png stage: dark split, gold type, product right ========== */
.pv-hero {
    position: relative;
    isolation: isolate;
    min-height: min(92vh, 860px);
    display: flex;
    align-items: center;
    color: #fff;
    /* topbar + absolute header clearance */
    padding: clamp(7rem, 14vh, 9rem) 0 clamp(2.75rem, 5vh, 4rem);
    overflow: visible; /* don't clip hero type */
    background: #17241f;
}

/* Full-bleed cinematic stage */
.pv-hero__stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 65% at 78% 52%, #4a3f32 0%, transparent 58%),
        radial-gradient(ellipse 42% 55% at 70% 40%, rgba(200, 108, 79, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 70% 80% at 18% 45%, #16120e 0%, #17241f 72%),
        linear-gradient(165deg, #12100d 0%, #17241f 55%, #080706 100%);
}

.pv-hero__stage-glow {
    position: absolute;
    width: min(560px, 48vw);
    height: min(560px, 48vw);
    right: 6%;
    top: 42%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 224, 160, 0.22) 0%, rgba(200, 108, 79, 0.08) 38%, transparent 68%);
    filter: blur(2px);
}

.pv-hero__stage-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 7, 6, 0.72) 0%, rgba(8, 7, 6, 0.35) 38%, rgba(8, 7, 6, 0.05) 62%, transparent 78%),
        linear-gradient(180deg, rgba(8, 7, 6, 0.45) 0%, transparent 22%, transparent 78%, rgba(8, 7, 6, 0.55) 100%);
}

.pv-hero__grid {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.25rem, 3.5vw, 2.5rem);
    align-items: center;
}

.pv-hero__copy {
    max-width: min(36rem, 100%);
    padding: 0.75rem 0.5rem 0.75rem 0;
    overflow: visible;
    z-index: 2;
}

.pv-kicker {
    font-family: var(--pv-body);
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240, 224, 160, 0.9);
    margin: 0 0 1rem;
    font-weight: 500;
    line-height: 1.45;
}

.pv-hero__title {
    margin: 0 0 0.9rem;
    overflow: visible;
}

/* Soft metallic gold — sized for "Loc Binh Store" (no clip) */
.pv-hero__brand {
    display: block;
    font-family: var(--pv-brand) !important;
    font-size: clamp(1.85rem, 4.2vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #d8b46a !important;
    background: linear-gradient(
        175deg,
        #f8efc8 0%,
        #d8b46a 28%,
        #d8b46a 58%,
        #c86c4f 78%,
        #d8b46a 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
    padding: 0.08em 0.05em 0.12em 0; /* room for descenders / glow */
    overflow: visible;
    word-break: normal;
    hyphens: none;
    max-width: 100%;
}

.pv-hero__line {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--pv-display) !important;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    line-height: 1.35;
    overflow: visible;
}

.pv-hero__sub {
    font-family: var(--pv-body) !important;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 1.5rem;
    max-width: 28rem;
    letter-spacing: 0.01em;
    overflow: visible;
}

.pv-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    margin: 0;
}

.pv-hero__cta--center {
    justify-content: center;
}

/* legacy meta (if any remain) */
.pv-hero__meta {
    display: none;
}

/* Product stage — right column */
.pv-hero__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: clamp(380px, 56vh, 600px);
    padding: 0 0 0.5rem;
}

.pv-hero__glow {
    position: absolute;
    width: min(480px, 92%);
    height: min(480px, 92%);
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(240, 224, 160, 0.32) 0%,
        rgba(200, 108, 79, 0.1) 40%,
        transparent 68%
    );
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
}

.pv-hero__figure {
    position: relative;
    z-index: 2;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    line-height: 0;
}

.pv-hero__img {
    position: relative;
    z-index: 2;
    display: block;
    max-width: min(560px, 100%);
    max-height: min(580px, 64vh);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 32px 50px rgba(0, 0, 0, 0.55));
    transform: translateY(4%);
}

/* Marble-style plinth under product (preview stand) */
.pv-hero__plinth {
    position: relative;
    z-index: 1;
    width: min(72%, 340px);
    height: 0;
    margin-top: -1.25rem;
    pointer-events: none;
}

.pv-hero__plinth-top {
    display: block;
    width: 100%;
    height: 14px;
    margin: 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(90, 88, 82, 0.95) 0%, rgba(40, 38, 34, 0.9) 55%, rgba(20, 18, 16, 0.75) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px rgba(200, 108, 79, 0.12);
    transform: scaleY(0.55);
}

.pv-hero__plinth-shadow {
    display: block;
    width: 118%;
    height: 42px;
    margin: -6px auto 0;
    margin-left: -9%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, transparent 70%);
    filter: blur(8px);
}

/* Buttons — flat gold primary + thin gold outline like preview */
.pv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.7rem;
    min-height: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 2px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.pv-btn--solid {
    background: linear-gradient(180deg, #d8b46a 0%, #d8b46a 45%, #c86c4f 100%);
    color: #26302b !important;
    border-color: #c86c4f;
    box-shadow: 0 8px 24px rgba(200, 108, 79, 0.28);
}

.pv-btn--solid:hover {
    background: linear-gradient(180deg, #f2dfb4 0%, #e0c050 50%, #c86c4f 100%);
    color: #17241f !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(200, 108, 79, 0.36);
}

.pv-btn--outline {
    background: transparent;
    color: #fff !important;
    border-color: rgba(216, 180, 106, 0.75);
}

.pv-btn--outline:hover {
    border-color: #f2dfb4;
    background: rgba(240, 224, 160, 0.08);
    color: #fff !important;
}

.pv-btn--soft {
    background: transparent;
    color: var(--pv-ink) !important;
    border-color: var(--pv-accent);
}

.pv-btn--soft:hover {
    background: var(--pv-accent);
    color: #26302b !important;
}

/* ========== TRUST ========== */
.pv-trust {
    background: #fff;
    border-bottom: 1px solid var(--pv-border);
    padding: 1.75rem 0;
}

.pv-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pv-trust__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.pv-trust__icon {
    color: var(--pv-accent);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.pv-trust__item strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pv-ink);
    margin-bottom: 0.15rem;
}

.pv-trust__item span {
    font-size: 0.8rem;
    color: var(--pv-muted);
    font-weight: 300;
}

/* ========== SECTIONS ========== */
.pv-section {
    padding: 4.75rem 0;
    background: var(--pv-warm);
}

.pv-section--soft {
    background: var(--pv-cream-2);
}

.pv-section__head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pv-section__head--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Keep homepage eyebrow labels and links readable on warm light surfaces. */
.lb-home-page .pv-label,
.lb-home-page .pv-link {
    color: #705700 !important;
}

.pv-label {
    font-family: var(--pv-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c86c4f;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.pv-h2 {
    font-family: var(--pv-display);
    font-size: clamp(2.05rem, 3.4vw, 2.75rem);
    font-weight: 600;
    color: #17241f;
    margin: 0;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.pv-h2--light {
    color: #f4efe6 !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.pv-h2--left {
    text-align: left;
}

.pv-center {
    text-align: center;
    margin-top: 1.75rem;
}

.pv-link {
    color: var(--pv-accent) !important;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-decoration: none !important;
}

/* Collections 4 cards with overlay text */
.pv-coll-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.pv-coll {
    display: block;
    text-decoration: none !important;
    color: #fff !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(14, 14, 12, 0.12);
}

.pv-coll__media {
    position: relative;
    aspect-ratio: 3/4;
    background: #26302b;
}

.pv-coll__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.55s ease;
}

.pv-coll:hover .pv-coll__media img {
    transform: scale(1.05);
}

.pv-coll__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 9, 7, 0.88) 0%, rgba(10, 9, 7, 0.15) 55%, transparent 100%);
}

.pv-coll__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.15rem 1.35rem;
    z-index: 1;
}

.pv-coll__body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.pv-coll__body p {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.pv-coll__body span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f2dfb4;
    font-weight: 700;
}

/* Mệnh circles */
.pv-menh {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto;
}

.pv-menh__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    color: inherit !important;
    gap: 0.55rem;
}

.pv-menh__circle {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201, 169, 97, 0.45);
    box-shadow: 0 10px 30px rgba(14, 14, 12, 0.08);
    background: #fff;
    transition: 0.25s ease;
}

.pv-menh__item:hover .pv-menh__circle {
    border-color: var(--pv-accent);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(201, 169, 97, 0.2);
}

.pv-menh__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pv-menh__item strong {
    font-family: var(--pv-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #17241f;
}

.pv-menh__item span {
    font-size: 0.82rem;
    color: #4a463e;
    font-weight: 400;
    max-width: 9rem;
    line-height: 1.4;
}

/* About + stats */
.pv-about {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.75fr;
    gap: 2rem;
    align-items: center;
}

.pv-about__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3a3630;
    font-weight: 400;
    margin: 0 0 1.5rem;
    max-width: 28rem;
}

.pv-about__media {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #26302b;
    box-shadow: 0 24px 60px rgba(14, 14, 12, 0.12);
}

.pv-about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pv-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}

.pv-stat {
    padding: 1rem 0;
    border-bottom: 1px solid var(--pv-border);
}

.pv-stat strong {
    display: block;
    font-family: var(--pv-display);
    font-size: 1.85rem;
    color: var(--pv-accent);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.pv-stat span {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pv-muted);
}

.pv-faq__list {
    max-width: 900px;
    margin-inline: auto;
    border-top: 1px solid var(--pv-border);
}

.pv-faq__item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--pv-border);
}

.pv-faq__item summary {
    color: var(--pv-ink);
    font-weight: 600;
    cursor: pointer;
}

.pv-faq__item p {
    margin: 0.7rem 2rem 0 0;
    color: var(--pv-muted);
}

/* Product cards */
.pv-products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.1rem;
}

.pv-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--pv-border);
    box-shadow: 0 10px 30px rgba(14, 14, 12, 0.04);
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.pv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(14, 14, 12, 0.09);
}

.pv-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: linear-gradient(180deg, #1c1a16, #2a261f);
    overflow: hidden;
}

.pv-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.pv-card:hover .pv-card__media img {
    transform: scale(1.04);
}

.site-info__item .site-info__image {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #a27a31;
}

.site-info__item .site-info__icon {
    display: block;
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pv-card__badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 1;
    background: var(--pv-accent);
    color: #26302b;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.5rem;
    border-radius: 2px;
}

.pv-card__body {
    padding: 0.95rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.pv-card__body h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.pv-card__body h3 a {
    color: #17241f !important;
    text-decoration: none !important;
}

.pv-card__body p {
    margin: 0;
    font-size: 0.84rem;
    color: #4a463e;
    font-weight: 400;
    min-height: 2.2em;
}

.pv-card__row {
    margin-top: auto;
    padding-top: 0.55rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.pv-card__price {
    font-family: var(--pv-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pv-ink);
}

.pv-card__price--soft {
    font-size: 0.88rem;
    color: var(--pv-accent);
}

.pv-card__more {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--pv-ink) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--pv-accent);
}

/* CTA */
.pv-cta {
    padding: 0 0 4.5rem;
    background: var(--pv-cream-2);
}

.pv-cta__box {
    background: linear-gradient(135deg, #141210 0%, #1f1c17 50%, #2a241c 100%);
    border-radius: 18px;
    padding: 3.25rem 1.5rem;
    text-align: center;
    color: #fff;
}

.pv-cta__box h2 {
    font-family: var(--pv-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    margin: 0 0 0.65rem;
    color: #fff;
}

.pv-cta__box p {
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* ========== Destiny guide page (premium tool UI) ========== */
/* Hide Farmart duplicate page-title when our dg-hero has H1 */
body:has(.dg-page) .page-header,
body:has(.dg-page) .page-title,
body:has(.dg-page) .ps-page__header,
body:has(.dg-page) h1.page-title {
    display: none !important;
}

.dg-page {
    background: var(--pv-warm);
    padding-bottom: 3.5rem;
}

.dg-hero {
    background:
        radial-gradient(ellipse 70% 80% at 80% 20%, rgba(200, 108, 79, 0.14) 0%, transparent 55%),
        linear-gradient(165deg, #16140f 0%, #17241f 55%, #12100c 100%);
    color: #fff;
    padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: -1.5rem;
    text-align: center;
}

.dg-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(240, 224, 160, 0.9);
    font-weight: 600;
    margin: 0 0 0.85rem;
}

.dg-title {
    font-family: var(--pv-display) !important;
    font-size: clamp(1.75rem, 4.5vw, 2.55rem);
    font-weight: 600;
    color: #f4efe6 !important;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.dg-lead {
    max-width: 40rem;
    margin: 0 auto 1.35rem;
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 400;
    padding: 0 0.75rem;
}

.dg-hero__note {
    max-width: 32rem;
    margin: 1.35rem auto 0;
    font-family: var(--pv-display) !important;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-style: italic;
    line-height: 1.5;
    color: rgba(240, 224, 160, 0.82);
    padding: 0 1rem;
}

.dg-elements {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 0.75rem;
}

.dg-el {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 4.5rem;
    padding: 0.65rem 0.75rem 0.55rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.dg-el:hover {
    border-color: rgba(216, 180, 106, 0.4);
    background: rgba(216, 180, 106, 0.06);
    transform: translateY(-2px);
}

.dg-el__dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 40% 35%, rgba(255,255,255,0.12), transparent 60%), var(--el, var(--pv-accent));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.25);
}

.dg-el__glyph {
    font-family: var(--pv-display), 'Noto Serif SC', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #f4efe6;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.dg-el__name {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.dg-el__tone {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.48);
    max-width: 5.5rem;
    text-align: center;
    line-height: 1.25;
}

.dg-wrap {
    position: relative;
    z-index: 1;
    padding-top: 0.25rem;
}

.dg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
    gap: 1.25rem;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.dg-layout--has-result {
    grid-template-columns: 1fr;
    max-width: 920px;
}

.dg-card {
    background: #fff;
    border: 1px solid var(--pv-border);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.85rem);
    box-shadow: 0 16px 40px rgba(14, 14, 12, 0.06);
}

.dg-card__head {
    margin-bottom: 1.25rem;
}

.dg-card__title {
    font-family: var(--pv-display) !important;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--pv-ink) !important;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.dg-card__sub {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pv-muted);
    line-height: 1.45;
}

.dg-alert {
    background: #fff8e8;
    border: 1px solid #d8b46a;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #5a4a18;
    font-size: 0.9rem;
}
.dg-alert p { margin: 0; }

.dg-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1rem;
}

.dg-field--full {
    grid-column: 1 / -1;
}

.dg-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #3a3630;
    margin-bottom: 0.4rem;
}
.dg-label em {
    color: var(--pv-jade);
    font-style: normal;
}

.dg-input,
.dg-select {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--pv-border);
    border-radius: 10px;
    background: var(--pv-cream-2);
    font-family: var(--pv-body) !important;
    font-size: 0.95rem;
    color: var(--pv-ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.dg-input:focus,
.dg-select:focus {
    outline: none;
    border-color: var(--pv-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200, 108, 79, 0.18);
}

.dg-input--date {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.dg-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--pv-muted);
    letter-spacing: 0.02em;
}

.dg-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 50px;
    margin-top: 1.15rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #d8b46a 0%, #d8b46a 45%, #c86c4f 100%);
    color: #26302b !important;
    font-family: var(--pv-body) !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(200, 108, 79, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dg-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(200, 108, 79, 0.35);
    color: #17241f !important;
}
.dg-submit--outline {
    background: transparent;
    border: 1px solid var(--pv-accent);
    color: var(--pv-ink) !important;
    box-shadow: none;
    letter-spacing: 0.06em;
}
.dg-submit--outline:hover {
    background: var(--pv-cream);
    color: var(--pv-ink) !important;
}
.dg-submit__arrow { font-size: 1.1rem; line-height: 1; }

.dg-disclaimer {
    margin: 1.15rem 0 0;
    padding: 0.75rem 0 0 0.9rem;
    border-left: 3px solid var(--pv-accent);
    color: var(--pv-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}
.dg-disclaimer--soft {
    margin: 0 0 1.25rem;
    background: var(--pv-warm);
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 1rem;
}

.dg-card--aside .dg-steps {
    margin: 0 0 1.35rem;
    padding-left: 0;
    list-style: none;
    color: var(--pv-ink);
    font-size: 0.92rem;
    line-height: 1.5;
    counter-reset: dgstep;
}
.dg-card--aside .dg-steps li {
    margin-bottom: 1rem;
    padding-left: 2.1rem;
    position: relative;
    counter-increment: dgstep;
}
.dg-card--aside .dg-steps li::before {
    content: counter(dgstep);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    border: 1px solid rgba(200, 108, 79, 0.55);
    color: var(--pv-jade);
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.dg-card--aside .dg-steps li strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pv-ink);
    margin-bottom: 0.2rem;
    letter-spacing: 0.02em;
}
.dg-card--aside .dg-steps li span {
    display: block;
    font-size: 0.86rem;
    color: var(--pv-muted);
    font-weight: 400;
    line-height: 1.5;
}

.dg-aside-story {
    margin: 0 0 1.15rem;
    padding: 1rem 1.1rem;
    border-left: 2px solid var(--pv-accent);
    background: linear-gradient(90deg, rgba(200, 108, 79, 0.06), transparent);
}
.dg-aside-story__quote {
    margin: 0;
    font-family: var(--pv-display) !important;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--pv-ink);
}

.dg-aside-note {
    background: var(--pv-cream-2);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.15rem;
    border: 1px solid var(--pv-border);
}
.dg-aside-note strong {
    display: block;
    font-size: 0.78rem;
    color: var(--pv-jade);
    margin-bottom: 0.35rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.dg-aside-note p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--pv-muted);
    line-height: 1.55;
}

.dg-hook__palette {
    margin: 0.85rem 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
    max-width: 36rem;
}

.dg-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--pv-muted);
    line-height: 1.4;
}

/* Result hook (P0) */
.dg-hook {
    border-radius: 14px;
    padding: 1.25rem 1.2rem 1.35rem;
    margin: -0.25rem 0 1.25rem;
    color: #fff;
    background: linear-gradient(155deg, #2a2418 0%, #12100c 70%);
    border: 1px solid rgba(216, 180, 106, 0.28);
}
.dg-hook--kim { background: linear-gradient(155deg, #5a564c 0%, #1e1c18 100%); }
.dg-hook--moc { background: linear-gradient(155deg, #3a5a36 0%, #141c12 100%); }
.dg-hook--thuy { background: linear-gradient(155deg, #2e3e4a 0%, #10161c 100%); }
.dg-hook--hoa { background: linear-gradient(155deg, #6a3240 0%, #1c1014 100%); }
.dg-hook--tho { background: linear-gradient(155deg, #8a6e1c 0%, #2a220c 100%); }

.dg-hook__kicker {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(240, 224, 160, 0.85);
    font-weight: 600;
}
.dg-hook__title {
    margin: 0 0 0.45rem;
    font-family: var(--pv-display) !important;
    font-size: clamp(1.45rem, 3.5vw, 1.9rem);
    font-weight: 600;
    color: #f4efe6 !important;
    line-height: 1.2;
}
.dg-hook__name { color: #f2dfb4; }
.dg-hook__dot { opacity: 0.5; margin: 0 0.25rem; }
.dg-hook__el { color: #fff; }
.dg-hook__sub {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}
.dg-hook__sub strong { color: #f2dfb4; font-weight: 600; }
.dg-hook__na { opacity: 0.75; }
.dg-hook__vibe {
    margin: 0 0 0.9rem;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    max-width: 36rem;
}
.dg-color-chips--lg { gap: 0.5rem; }
.dg-color-chips--lg .dg-chip { font-size: 0.82rem; padding: 0.4rem 0.85rem; }

.dg-note--tight { margin-top: 0.75rem; }

/* Hero product card */
.dg-set { margin-top: 0.25rem; }
.dg-set__label {
    margin: 1rem 0 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pv-muted);
}
.dg-hero-card {
    display: grid;
    grid-template-columns: minmax(120px, 200px) 1fr;
    gap: 1rem;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid rgba(200, 108, 79, 0.45);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #f4efe6 0%, #fff 100%);
    box-shadow: 0 12px 28px rgba(200, 108, 79, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dg-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(200, 108, 79, 0.18);
}
.dg-hero-card__media {
    position: relative;
    aspect-ratio: 1;
    background: #26302b;
}
.dg-hero-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dg-hero-card__badge {
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #d8b46a, #c86c4f);
    color: #26302b;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.dg-hero-card__body {
    padding: 1rem 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}
.dg-hero-card__name {
    margin: 0;
    font-family: var(--pv-body) !important;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pv-ink) !important;
    line-height: 1.3;
}
.dg-hero-card__price {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pv-jade);
}
.dg-hero-card__reason {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    color: var(--pv-muted);
    line-height: 1.4;
}

.dg-products--companions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dg-products--more {
    margin-top: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dg-more {
    margin-top: 1rem;
    border-top: 1px solid var(--pv-border);
    padding-top: 0.75rem;
}
.dg-more summary {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pv-jade);
    list-style: none;
}
.dg-more summary::-webkit-details-marker { display: none; }

/* Loading overlay */
.dg-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 11, 9, 0.55);
    backdrop-filter: blur(4px);
}
.dg-loading[hidden] { display: none !important; }
body.dg-loading-open { overflow: hidden; }
.dg-loading__card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    max-width: 280px;
    width: 90%;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--pv-border);
}
.dg-loading__spin {
    width: 36px;
    height: 36px;
    margin: 0 auto 1rem;
    border: 3px solid var(--pv-border);
    border-top-color: var(--pv-accent);
    border-radius: 50%;
    animation: dg-spin 0.75s linear infinite;
}
@keyframes dg-spin {
    to { transform: rotate(360deg); }
}
.dg-loading__title {
    margin: 0 0 0.35rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--pv-ink);
}
.dg-loading__sub {
    margin: 0;
    font-size: 0.8rem;
    color: var(--pv-muted);
}

/* Result */
.dg-result-top {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 1.15rem;
    margin-bottom: 1.15rem;
    align-items: stretch;
}

.dg-result-badge {
    border-radius: 14px;
    padding: 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg, #3a3428 0%, #26302b 100%);
    border: 1px solid rgba(216, 180, 106, 0.35);
    min-height: 140px;
}
.dg-result-badge--kim { background: linear-gradient(160deg, #6a665c 0%, #2e2c28 100%); }
.dg-result-badge--moc { background: linear-gradient(160deg, #4a6a42 0%, #1e2a1c 100%); }
.dg-result-badge--thuy { background: linear-gradient(160deg, #3a4a58 0%, #141a20 100%); }
.dg-result-badge--hoa { background: linear-gradient(160deg, #7a3a48 0%, #2a1418 100%); }
.dg-result-badge--tho { background: linear-gradient(160deg, #25463f 0%, #3a2e10 100%); }

.dg-result-badge__label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.35rem;
}
.dg-result-badge__value {
    font-family: var(--pv-display) !important;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    color: #f2dfb4;
}
.dg-result-badge__tone {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    opacity: 0.85;
    line-height: 1.35;
}

.dg-result-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--pv-ink);
}

.dg-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    margin: 0;
}
.dg-stats dt {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pv-muted);
    font-weight: 600;
    margin: 0 0 0.2rem;
}
.dg-stats dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pv-ink);
    line-height: 1.35;
}
.dg-stats--full { grid-column: 1 / -1; }

.dg-color-chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-weight: 500 !important;
}
.dg-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--pv-border);
    background: var(--pv-cream);
    color: var(--pv-ink);
}
.dg-chip--trang { background: #f7f5f0; border-color: #ddd6c8; }
.dg-chip--vang { background: #f5e8b8; border-color: #e0c050; color: #4a3a10; }
.dg-chip--tim { background: #f0e4f0; border-color: #c8a0c8; color: #4a284a; }
.dg-chip--xanh { background: #e4f0e4; border-color: #90b890; color: #1e3a1e; }
.dg-chip--den { background: #2a2a28; border-color: #111; color: #f2dfb4; }
.dg-chip--da-sac { background: linear-gradient(90deg, #f5e8b8, #e4f0e4, #f0e4f0); }

.dg-note,
.dg-tip {
    margin: 0.65rem 0 0;
    font-size: 0.84rem;
    color: var(--pv-muted);
    line-height: 1.45;
}
.dg-tip::before {
    content: '✦ ';
    color: var(--pv-accent);
}

.dg-lunar {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: var(--pv-muted);
}
.dg-cn {
    display: inline-block;
    margin-left: 0.35rem;
    font-weight: 500;
    color: var(--pv-muted);
    font-size: 0.9em;
}

/* Tứ trụ can chi */
.dg-pillars {
    margin: 0 0 1.25rem;
    padding: 1rem 0 0.25rem;
    border-top: 1px solid var(--pv-border);
}
.dg-pillars__title {
    font-family: var(--pv-display) !important;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    color: var(--pv-ink) !important;
}
.dg-pillars__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}
.dg-pillar {
    background: var(--pv-warm);
    border: 1px solid var(--pv-border);
    border-radius: 12px;
    padding: 0.75rem 0.55rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 7.5rem;
}
.dg-pillar--day {
    border-color: rgba(200, 108, 79, 0.65);
    background: linear-gradient(180deg, #f4efe6 0%, #f4efe6 100%);
    box-shadow: 0 6px 16px rgba(200, 108, 79, 0.12);
}
.dg-pillar__label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pv-muted);
    font-weight: 700;
}
.dg-pillar__gz {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pv-ink);
    line-height: 1.25;
    margin-top: 0.25rem;
}
.dg-pillar__cn {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pv-jade);
    letter-spacing: 0.08em;
}
.dg-pillar__wx {
    font-size: 0.78rem;
    font-weight: 600;
    color: #5a5040;
    margin-top: 0.2rem;
}
.dg-pillar__ny {
    font-size: 0.68rem;
    color: var(--pv-muted);
    line-height: 1.3;
}

@media (max-width: 767px) {
    .dg-pillars__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .dg-pillar {
        min-height: 6.5rem;
        padding: 0.65rem 0.45rem;
    }
    .dg-pillar__gz { font-size: 0.9rem; }
    .dg-pillar__cn { font-size: 1rem; }
}

.dg-products-head {
    margin: 0.5rem 0 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--pv-border);
}

.dg-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.dg-product {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid var(--pv-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--pv-warm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.dg-product:hover {
    border-color: rgba(200, 108, 79, 0.55);
    box-shadow: 0 12px 28px rgba(14, 14, 12, 0.08);
    transform: translateY(-2px);
}

.dg-product__media {
    aspect-ratio: 1;
    background: #26302b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.dg-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-product__body {
    padding: 0.75rem 0.8rem 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.dg-product__name {
    font-family: var(--pv-body) !important;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: var(--pv-ink) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dg-product__price {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pv-jade);
}
.dg-product__reason {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: var(--pv-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dg-empty {
    grid-column: 1 / -1;
    font-size: 0.92rem;
    color: var(--pv-muted);
    padding: 1rem;
    text-align: center;
}
.dg-empty a { color: var(--pv-jade); font-weight: 600; }

.dg-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--pv-border);
}
.dg-cta-row .dg-submit { width: auto; min-width: 220px; margin-top: 0; }
.dg-link {
    color: var(--pv-jade) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
}
.dg-link:hover { text-decoration: underline !important; }

/* legacy class hooks (if any remain) */
.locbinh-destiny { display: contents; }

@media (min-width: 992px) {
    .dg-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .dg-layout--has-result .dg-card--form {
        max-width: 920px;
        margin: 0 auto;
    }
}

@media (max-width: 991px) {
    .dg-layout {
        grid-template-columns: 1fr;
    }
    .dg-result-top {
        grid-template-columns: 1fr;
    }
    .dg-result-badge {
        min-height: 110px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
        justify-content: flex-start;
        text-align: left;
        padding: 1rem 1.15rem;
    }
    .dg-result-badge__value { font-size: 1.55rem; }
}

@media (max-width: 767px) {
    .dg-page { padding-bottom: 2.5rem; }
    .dg-hero { padding: 1.5rem 0 2rem; margin-bottom: -1.15rem; }
    .dg-title { font-size: 1.55rem; }
    .dg-lead { font-size: 0.9rem; margin-bottom: 1.1rem; }
    .dg-el { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
    .dg-fields { grid-template-columns: 1fr; }
    .dg-card { border-radius: 14px; padding: 1.15rem 1rem; }
    .dg-card__title { font-size: 1.2rem; }
    .dg-products { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .dg-products--more { grid-template-columns: 1fr 1fr; }
    .dg-product__name { font-size: 0.8rem; }
    .dg-product__reason { display: none; }
    .dg-cta-row { flex-direction: column; align-items: stretch; }
    .dg-cta-row .dg-submit { width: 100%; min-width: 0; }
    .dg-cta-row .dg-link { text-align: center; }
    .dg-stats { grid-template-columns: 1fr; }
    .dg-hero-card {
        grid-template-columns: 1fr;
    }
    .dg-hero-card__body {
        padding: 0.85rem 1rem 1rem;
    }
    .dg-hook { padding: 1.05rem 0.95rem 1.15rem; }
    .dg-hook__vibe { font-size: 0.92rem; }
}
.lx-404__kicker {
    font-family: var(--pv-brand);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pv-jade);
    font-size: 0.75rem;
    font-weight: 600;
}
.lx-404__title {
    font-family: var(--pv-display);
    font-size: 4rem;
    color: var(--pv-accent);
    line-height: 1;
}
.lb-price-contact {
    color: var(--pv-accent) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.product-cart-wrap,
.product-item {
    border-radius: 14px !important;
    overflow: hidden;
    border: 1px solid var(--pv-border) !important;
    box-shadow: 0 8px 24px rgba(14, 14, 12, 0.04);
}

#footer {
    background: #fff;
    border-top: 1px solid var(--pv-border);
}

/* Responsive */
@media (max-width: 1199px) {
    .pv-coll-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pv-products {
        grid-template-columns: repeat(3, 1fr);
    }
    .pv-about {
        grid-template-columns: 1fr 1fr;
    }
    .pv-stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .pv-hero {
        min-height: auto;
        padding: 6.25rem 0 2.5rem;
        align-items: stretch;
    }
    .pv-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    .pv-hero__copy {
        max-width: 36rem;
        margin: 0 auto;
        padding: 0.25rem 0 1rem;
        order: 2;
    }
    .pv-hero__sub {
        margin-left: auto;
        margin-right: auto;
    }
    .pv-hero__cta {
        justify-content: center;
    }
    .pv-hero__visual {
        min-height: 300px;
        order: 1;
        margin-bottom: -0.5rem;
    }
    .pv-hero__img {
        max-height: min(420px, 48vh);
        transform: none;
    }
    .pv-hero__stage-glow {
        right: 50%;
        transform: translate(50%, -50%);
        top: 28%;
        width: min(420px, 80vw);
        height: min(420px, 80vw);
    }
    .pv-hero__stage-vignette {
        background:
            linear-gradient(180deg, rgba(8, 7, 6, 0.5) 0%, transparent 28%, transparent 70%, rgba(8, 7, 6, 0.4) 100%);
    }
    .pv-trust__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    .pv-menh {
        grid-template-columns: repeat(3, 1fr);
    }
    .pv-about {
        grid-template-columns: 1fr;
    }
    .pv-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== Mobile typography scale (≤767) ==========
   Goals: readable body ≥15px, softer tracking (VN diacritics),
   hero brand that fits one line, touch-friendly CTAs.
*/
@media (max-width: 767px) {
    html {
        font-size: 16px; /* stable rem base */
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        font-size: 0.9375rem; /* 15px */
        line-height: 1.55;
    }

    /* Topbar: one readable line, not micro-type */
    .lx-topbar {
        font-size: 0.6875rem; /* 11px */
        letter-spacing: 0.02em;
        padding: 0.45rem 0.5rem;
        line-height: 1.35;
    }
    .lx-topbar__inner {
        gap: 0.35rem 0.65rem;
    }
    .lx-topbar__dot {
        display: none;
    }

    /* Hero copy */
    .pv-hero {
        padding: 5.5rem 0 1.75rem;
    }
    .pv-hero__copy {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
    .pv-kicker {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        line-height: 1.45;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }
    .pv-hero__brand {
        font-size: clamp(1.65rem, 7.5vw, 2.15rem) !important;
        letter-spacing: 0.01em;
        line-height: 1.2;
        padding: 0.1em 0.25rem 0.15em;
    }
    .pv-hero__line {
        font-size: clamp(0.95rem, 3.8vw, 1.15rem) !important;
        letter-spacing: 0.06em;
        margin-top: 0.4rem;
        line-height: 1.35;
        padding: 0 0.25rem;
    }
    .pv-hero__sub {
        font-size: 0.9rem;
        line-height: 1.5;
        letter-spacing: 0;
        margin-bottom: 1.25rem;
        max-width: 100%;
        padding: 0 0.75rem;
    }
    .pv-hero__cta {
        padding: 0 0.75rem 0.5rem;
        position: relative;
        z-index: 3;
    }
    /* Keep float chat from covering CTAs */
    #button-contact-vr {
        bottom: 100px !important;
    }
    .pv-hero__cta {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
    }

    /* Buttons — larger type + hit area */
    .pv-btn {
        width: 100%;
        max-width: 300px;
        min-height: 48px;
        padding: 0.85rem 1.25rem;
        font-size: 0.8125rem; /* 13px */
        letter-spacing: 0.08em;
        line-height: 1.2;
    }

    /* Section heads */
    .pv-section {
        padding: 2.75rem 0;
    }
    .pv-section__head {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    .pv-label {
        font-size: 0.6875rem;
        letter-spacing: 0.12em;
        margin-bottom: 0.4rem;
    }
    .pv-h2 {
        font-size: clamp(1.45rem, 6.5vw, 1.85rem);
        line-height: 1.25;
        letter-spacing: 0;
    }

    /* Trust strip */
    .pv-trust {
        padding: 1.25rem 0;
    }
    .pv-trust__item strong {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    .pv-trust__item span {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    /* Collections mobile: keep IMAGE + category NAME only (no sub/CTA clutter) */
    .pv-coll-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
    .pv-coll {
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(14, 14, 12, 0.1);
        overflow: hidden;
    }
    .pv-coll__media {
        aspect-ratio: 1 / 1; /* square tile — clearer on phone */
        background: #26302b;
    }
    .pv-coll__media > img {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .pv-coll__veil {
        display: block !important;
        background: linear-gradient(
            0deg,
            rgba(10, 9, 7, 0.92) 0%,
            rgba(10, 9, 7, 0.35) 42%,
            transparent 70%
        );
    }
    /* Hide subtitle + “view collection” — name only under image */
    .pv-coll__body p,
    .pv-coll__body span {
        display: none !important;
    }
    .pv-coll__body {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0.75rem 0.65rem 0.8rem;
        display: block;
    }
    .pv-coll__body::after {
        content: none;
    }
    .pv-coll__body h3 {
        font-family: var(--pv-body) !important;
        font-size: 0.8125rem; /* 13px — fits 2-col VN names */
        font-weight: 600;
        letter-spacing: 0.02em;
        line-height: 1.3;
        text-transform: none;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
        color: #fff !important;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Product cards stay 2-col */
    .pv-products {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
    .pv-card__body h3,
    .pv-products .product-name,
    .product-cart-wrap .product-title a,
    .product-cart-wrap h2 a,
    .ps-product__title,
    .product-item .product-title a {
        font-size: 0.875rem !important;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
    }
    .product-cart-wrap .product-price,
    .ps-product__price,
    .lb-price-contact {
        font-size: 0.8125rem !important;
    }

    /* Mệnh circles */
    .pv-menh {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }
    .pv-menh__circle {
        width: 80px;
        height: 80px;
    }
    .pv-menh__label,
    .pv-menh strong {
        font-size: 0.9rem;
    }
    .pv-menh span,
    .pv-menh__sub {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    /* About / stats / CTA band */
    .pv-about p,
    .pv-section p {
        font-size: 0.9375rem;
        line-height: 1.55;
    }
    .pv-stats strong,
    .pv-stats .num {
        font-size: 1.25rem;
    }
    .pv-stats span,
    .pv-stats small {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    .pv-cta__box h2 {
        font-size: clamp(1.35rem, 6vw, 1.7rem);
        line-height: 1.25;
    }
    .pv-cta__box p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .pv-link {
        font-size: 0.875rem;
        letter-spacing: 0.02em;
    }

    /* Destiny tool */
    .locbinh-destiny {
        padding: 1.25rem 1rem;
        margin: 1.25rem 0.75rem 2rem;
    }
    .locbinh-destiny h1 {
        font-size: 1.45rem;
        line-height: 1.3;
    }
    .locbinh-destiny .disclaimer {
        font-size: 0.8125rem;
        line-height: 1.45;
    }
    .locbinh-destiny-products .reason {
        font-size: 0.75rem;
    }

    /* Product detail titles */
    .page-title,
    .product-details .product-name,
    .product-detail h1,
    .product-info h1,
    h1.product-title {
        font-size: clamp(1.35rem, 6vw, 1.65rem) !important;
        line-height: 1.3 !important;
        letter-spacing: 0 !important;
    }
    .product-details,
    .product-info,
    .product-detail {
        font-size: 0.9375rem;
        line-height: 1.55;
    }

    /* Blog / content */
    .blog-detail,
    .post-detail,
    .entry-content,
    .ck-content,
    article {
        font-size: 0.975rem;
        line-height: 1.65;
    }
    .blog-detail h2,
    .post-detail h2,
    .entry-content h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    .blog-detail h3,
    .post-detail h3 {
        font-size: 1.1rem;
    }

    /* Farmart chrome that often goes too small on mobile */
    .header .menu > li > a,
    .navigation .menu > li > a {
        font-size: 0.8125rem !important;
        letter-spacing: 0.03em !important;
    }
    .breadcrumb,
    .breadcrumb-item,
    .page-header {
        font-size: 0.8125rem !important;
    }

    .pv-trust__grid {
        grid-template-columns: 1fr;
    }

    #button-contact-vr {
        transform: scale(0.52) !important;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .pv-products {
        grid-template-columns: 1fr 1fr; /* keep 2-col catalog density */
        gap: 0.55rem;
    }
    .pv-hero__brand {
        font-size: clamp(1.5rem, 7vw, 1.85rem) !important;
        letter-spacing: 0;
        line-height: 1.22;
    }
    .pv-hero__line {
        font-size: 0.9rem !important;
        letter-spacing: 0.05em;
    }
    .pv-kicker {
        font-size: 0.65rem;
        letter-spacing: 0.06em;
    }
    .pv-btn {
        font-size: 0.78rem;
        max-width: 100%;
    }
    .pv-h2 {
        font-size: 1.4rem;
    }
    .pv-coll__body {
        padding: 0.65rem 0.55rem 0.7rem;
    }
    .pv-coll__body h3 {
        font-size: 0.78rem;
        line-height: 1.28;
    }
    .lx-topbar {
        font-size: 0.625rem;
    }
}

/* Tablet — intermediate type */
@media (min-width: 768px) and (max-width: 991px) {
    .pv-hero__brand {
        font-size: clamp(2.5rem, 6vw, 3.25rem) !important;
        letter-spacing: 0.06em;
    }
    .pv-hero__line {
        font-size: 1.3rem !important;
        letter-spacing: 0.12em;
    }
    .pv-kicker {
        letter-spacing: 0.16em;
        font-size: 0.72rem;
    }
    .pv-h2 {
        font-size: clamp(1.7rem, 3vw, 2.1rem);
    }
}

/* ========== Product magic zoom (PDP) ========== */
.product-gallery.lb-product-gallery,
.product-gallery.lb-product-gallery .product-gallery__wrapper,
.product-gallery.lb-product-gallery .slick-list,
.product-gallery.lb-product-gallery .slick-track,
.product-gallery.lb-product-gallery .product-gallery__image,
.product-gallery.lb-product-gallery .img-fluid-eq {
    overflow: visible !important;
}
.lb-magic-zoom {
    position: relative;
    overflow: hidden; /* only clips lens/image scale inside box */
    cursor: crosshair;
    background: #faf8f3;
    border-radius: 12px;
    z-index: 5;
}
.lb-magic-zoom__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    margin: 0 auto;
    user-select: none;
    pointer-events: none;
    transition: transform 0.05s linear;
    will-change: transform;
}
.lb-magic-zoom.is-zooming .lb-magic-zoom__img {
    transition: none;
}
.lb-magic-zoom__hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(26, 24, 20, 0.78);
    color: #f4efe6;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    z-index: 6;
    transition: opacity 0.15s ease;
}
.lb-magic-zoom.is-zooming .lb-magic-zoom__hint {
    opacity: 0;
}
.lb-magic-zoom__lens {
    display: none;
    position: absolute;
    border: 2px solid #c86c4f;
    border-radius: 6px;
    background: rgba(200, 108, 79, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
    pointer-events: none;
    z-index: 7;
}
/* Floating pane lives on <body> — never clipped by gallery */
.lb-zoom-pane {
    position: fixed;
    display: none;
    width: 420px;
    height: 420px;
    border: 2px solid #c86c4f;
    border-radius: 14px;
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: 0 16px 48px rgba(26, 24, 20, 0.22);
    z-index: 10060;
    pointer-events: none;
}
.lb-zoom-pane.is-visible {
    display: block;
}
@media (max-width: 991px) {
    .lb-magic-zoom {
        cursor: pointer;
    }
    .lb-magic-zoom__lens,
    .lb-zoom-pane {
        display: none !important;
    }
    .lb-magic-zoom.is-zooming .lb-magic-zoom__img {
        transform: none !important;
    }
}
/* lightGallery overlay above header */
.lg-outer,
.lg-backdrop {
    z-index: 10050 !important;
}
.product-gallery.lb-product-gallery {
    position: relative;
    z-index: 3;
}

/* ========== Single-store: hide marketplace / vendor CTAs ========== */
body.lb-hide-marketplace a[href*="/stores"],
body.lb-hide-marketplace a[href*="/vendor"],
body.lb-hide-marketplace a[href*="become-a-vendor"],
body.lb-hide-marketplace a[href*="become-vendor"],
body.lb-hide-marketplace .widget-become-vendor,
body.lb-hide-marketplace .become-vendor,
body.lb-hide-marketplace .product-store,
body.lb-hide-marketplace .store-link,
body.lb-hide-marketplace .sold-by,
body.lb-hide-marketplace .product__vendor {
    display: none !important;
}


/* ========== ONE-ROW HEADER HARDEN ========== */
.lx-header--oneline .lx-bar {
    display: block !important;
    width: 100% !important;
}
.lx-header--oneline .lx-bar__shell {
    display: grid !important;
    grid-template-columns: minmax(200px, 240px) 1fr minmax(160px, 220px) !important;
    align-items: center !important;
    gap: 0.75rem 1.25rem !important;
    min-height: 72px !important;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0.55rem 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.lx-header--oneline .lx-bar__brand {
    display: flex !important;
    align-items: center !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
}
.lx-header--oneline .lx-bar__nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
}
.lx-header--oneline .lx-bar__actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
}
.lx-header--oneline .lx-bar__menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: auto !important;
    max-width: 100%;
    overflow: visible;
}
.lx-header--oneline .lx-bar__menu > li {
    display: inline-flex !important;
    float: none !important;
    width: auto !important;
}
.lx-header--oneline .lx-bar__menu > li > a {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.1em !important;
}
body.lb-home-page .lx-topbar {
    display: none !important;
}
@media (max-width: 1199px) {
    .lx-header--oneline .lx-bar {
        display: none !important;
    }
}

/* Language switcher compact in one-row header */
.lx-header--oneline .lx-bar__lang {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    display: flex !important;
    align-items: center;
}
.lx-header--oneline .lx-bar__lang > li {
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
}
.lx-header--oneline .lx-bar__lang .language-dropdown-active {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: 0.68rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.45rem;
    white-space: nowrap;
    color: inherit;
}
.lx-header--oneline .lx-bar__lang .language-dropdown {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    margin: 0 !important;
    padding: 0.4rem 0 !important;
    list-style: none !important;
    background: #111 !important;
    border: 1px solid rgba(200, 168, 107, 0.35);
    z-index: 90;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.lx-header--oneline .lx-bar__lang > li:hover .language-dropdown,
.lx-header--oneline .lx-bar__lang > li:focus-within .language-dropdown {
    display: block !important;
}
.lx-header--oneline .lx-bar__lang .language-dropdown li {
    display: block !important;
    margin: 0;
}
.lx-header--oneline .lx-bar__lang .language-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.72rem !important;
    color: #f7f4ee !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.lx-header--oneline .lx-bar__lang .language-dropdown a:hover {
    background: rgba(200, 168, 107, 0.12);
}
body:not(.lb-home-page) .lx-header--oneline .lx-bar__lang .language-dropdown {
    background: #fff !important;
    border-color: var(--pv-border);
}
body:not(.lb-home-page) .lx-header--oneline .lx-bar__lang .language-dropdown a {
    color: var(--pv-ink) !important;
}
/* hide raw language name on very tight bars — keep flag + code-like short */
.lx-header--oneline .lx-bar__lang .language-dropdown-active .svg-icon {
    width: 12px;
    height: 12px;
}

/* Speed: never block first paint on homepage */
body.lb-home-page .preloader,
body.lb-home-page #preloader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
/* Content-visibility for below-fold sections */
body.lb-home-page .pv-section,
body.lb-home-page .pv-section--soft,
body.lb-home-page .pv-cta,
body.lb-home-page .pv-products,
body.lb-home-page .pv-coll-grid {
    content-visibility: auto;
    contain-intrinsic-size: 1px 480px;
}

/* ========== Floating Zalo / phone (bottom-right) — Loc Binh polish ========== */
#button-contact-vr.lb-float-contact,
#button-contact-vr {
    right: 12px !important;
    bottom: 20px !important;
    z-index: 99990 !important;
    transform: none !important;
    margin: 0 !important;
}
#button-contact-vr .button-contact {
    margin-top: 8px !important;
}
#button-contact-vr .phone-vr {
    width: 64px !important;
    height: 64px !important;
}
#button-contact-vr .phone-vr-circle-fill {
    width: 56px !important;
    height: 56px !important;
    top: 4px !important;
    left: 4px !important;
}
#button-contact-vr .phone-vr-img-circle {
    width: 48px !important;
    height: 48px !important;
    top: 8px !important;
    left: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
#button-contact-vr .phone-vr-img-circle img {
    max-width: 28px !important;
    max-height: 28px !important;
    width: 28px !important;
    height: 28px !important;
    position: static !important;
    transform: none !important;
    object-fit: contain !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* Official Zalo blue */
#zalo-vr .phone-vr-circle-fill {
    background-color: rgba(0, 104, 255, 0.55) !important;
    box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.45) !important;
}
#zalo-vr .phone-vr-img-circle {
    background-color: #0068FF !important;
}
/* Full-badge zalo.png already has blue circle — show full icon */
#zalo-vr .phone-vr-img-circle img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
}
#zalo-vr .phone-vr-img-circle {
    background: transparent !important;
    overflow: hidden !important;
}
/* Phone matches Loc Binh gold */
#phone-vr .phone-vr-circle-fill {
    background-color: rgba(200, 108, 79, 0.45) !important;
    box-shadow: 0 0 0 0 rgba(200, 108, 79, 0.4) !important;
}
#phone-vr .phone-vr-img-circle {
    background-color: #c86c4f !important;
}
#phone-vr .phone-bar a,
.phone-bar a {
    background-color: #c86c4f !important;
}
/* Always show on mobile too */
#button-contact-vr.lb-float-contact {
    display: block !important;
}
@media (max-width: 575.98px) {
    #button-contact-vr {
        display: block !important;
        right: 6px !important;
        bottom: 14px !important;
        transform: scale(0.92) !important;
        transform-origin: bottom right !important;
    }
}

/* Destiny guide: full-bleed hero (escape theme container) */
#main-content:has(.dg-page) > .container-xl,
#main-content:has(.dg-page) > .container-xxxl {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#main-content:has(.dg-page) > .container-xl > .mb-5,
#main-content:has(.dg-page) > .container-xxxl > .mb-5 {
    margin-bottom: 0 !important;
}
.dg-page .dg-wrap {
    padding-left: max(1.25rem, calc((100% - 1080px) / 2));
    padding-right: max(1.25rem, calc((100% - 1080px) / 2));
    padding-bottom: 3rem;
}
.dg-page .dg-hero {
    margin-top: 0;
}
/* Logo + topbar spacing tighter into hero */
body:not(.lb-home-page) .lx-header--oneline .lx-bar__shell {
    min-height: 68px !important;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
}

/* ========== Footer: one clean row (brand | info | policy), no newsletter gap ========== */
#footer .lx-footer-widgets {
    overflow: hidden;
}
#footer .lx-footer-widgets .lx-footer-row {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}
#footer .lx-footer-widgets .lx-footer-col {
    flex: 1 1 0;
    width: auto !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-width: 0;
}
#footer .lx-footer-widgets .lx-footer-col--brand {
    flex: 1.5 1 0;
    min-width: 0;
}
#footer .lx-footer-widgets .lx-footer-col:not(.lx-footer-col--brand) {
    flex: 0.85 1 0;
    max-width: 220px !important;
}
#footer .lx-footer-widgets .widget {
    margin-bottom: 0 !important;
}
#footer .lx-footer-widgets .widget-title {
    font-size: 0.92rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem !important;
}
#footer .lx-footer-widgets .widget-description {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--pv-muted);
    max-width: 26rem;
    margin-bottom: 0.75rem !important;
}
#footer .lx-footer-contact {
    list-style: none;
    font-size: 0.86rem;
    line-height: 1.45;
}
#footer .lx-footer-contact li {
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
}
#footer .lx-footer-contact a {
    color: inherit;
    text-decoration: none;
}
#footer .lx-footer-contact a:hover {
    color: var(--pv-jade) !important;
}
#footer .lx-footer-muted {
    color: var(--pv-muted);
    font-size: 0.82rem;
}
#footer .lx-footer-widgets .widget-custom-menu ul,
#footer .lx-footer-widgets .widget-custom-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
#footer .lx-footer-widgets .widget-custom-menu li {
    margin: 0 0 0.4rem;
}
#footer .lx-footer-widgets .widget-custom-menu a {
    font-size: 0.86rem;
    text-decoration: none;
    color: var(--pv-muted) !important;
}
#footer .lx-footer-widgets .widget-custom-menu a:hover {
    color: var(--pv-jade) !important;
}
/* hide leftover newsletter if any */
#footer .newsletter-form,
#footer .form-widget,
#footer .widget-newsletter,
#footer [class*="newsletter"] {
    display: none !important;
}
@media (max-width: 991.98px) {
    #footer .lx-footer-widgets .lx-footer-row {
        flex-wrap: wrap;
        gap: 1.25rem 1.5rem;
    }
    #footer .lx-footer-widgets .lx-footer-col--brand {
        flex: 1 1 100%;
    }
    #footer .lx-footer-widgets .lx-footer-col:not(.lx-footer-col--brand) {
        flex: 1 1 42%;
        max-width: none !important;
    }
}
@media (max-width: 575.98px) {
    #footer .lx-footer-widgets .lx-footer-col:not(.lx-footer-col--brand) {
        flex: 1 1 46%;
    }
}


/* Accessibility contrast override for homepage eyebrow labels and links. */
body.lb-home-page .pv-label,
body.lb-home-page .pv-link {
    color: #705700 !important;
}

/* Homepage visual skin: carry the artwork-page paper, ink and champagne details.
   Scoped color, type and finish overrides only; existing homepage layout stays intact. */
body.lb-home-page {
    --pv-accent: #b26b4d;
    --pv-brass: #d7c18f;
    --pv-jade: #7d7058;
    --pv-accent-soft: #e8dec7;
    --pv-cream: #f7f4ec;
    --pv-cream-2: #f0ede5;
    --pv-warm: #f7f4ec;
    --pv-dark: #25463f;
    --pv-dark-2: #24445d;
    --pv-ink: #25463f;
    --pv-muted: #686e70;
    --pv-border: #ded9ce;
    --pv-olive: #777d6b;
    --primary-color: #25463f !important;
    --bs-primary: #25463f !important;
    --bs-bg-primary: #25463f !important;
    --bs-primary-rgb: 24, 57, 83 !important;
    --heading-color: #25463f !important;
    --text-color: #686e70 !important;
    --primary-button-color: #f7f4ec !important;
    --primary-button-background-color: #25463f !important;
    --footer-hover-color: #b26b4d !important;
    --footer-border-color: #ded9ce !important;
    background-color: #f2efe7;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.86), transparent 58%),
        linear-gradient(115deg, #ebe8df, #f5f3ec 48%, #e8e5db);
    color: #25463f;
}

body.lb-home-page .lx-header--oneline {
    background: rgba(247, 244, 236, .94) !important;
    border-bottom: 1px solid rgba(137, 116, 73, .25) !important;
    box-shadow: 0 8px 24px rgba(38, 42, 35, .07) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body.lb-home-page .lx-brand__mark {
    border-color: rgba(170, 139, 84, .42);
    background: radial-gradient(circle at 40% 30%, rgba(255,253,246,.96), rgba(239,231,213,.66) 72%);
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 10px rgba(105,84,46,.1);
}
body.lb-home-page .lx-brand__img { filter: none; }
body.lb-home-page .lx-brand__name { color: #25463f !important; -webkit-text-fill-color: #25463f !important; }
body.lb-home-page .lx-brand__tag { color: #77705f !important; -webkit-text-fill-color: #77705f !important; }
body.lb-home-page .lx-bar__menu > li > a { color: #25463f !important; }
body.lb-home-page .lx-bar__menu > li > a:hover,
body.lb-home-page .lx-bar__menu > li.current-menu-item > a { color: #7d7058 !important; }
body.lb-home-page .lx-bar__cta {
    color: #f7f4ec !important;
    background: #25463f;
    border-color: #25463f;
}
body.lb-home-page .lx-bar__cta:hover { color: #25463f !important; background: #e8dec7; border-color: #b26b4d; }

body.lb-home-page .pv-hero {
    color: #25463f;
    background-color: #f7f4ec;
    background-image:
        radial-gradient(ellipse at 76% 44%, rgba(226,214,187,.38), transparent 38%),
        linear-gradient(90deg, rgba(250,248,242,.84), rgba(250,248,242,.48) 52%, rgba(250,248,242,.7)),
        url('/themes/farmart/images/luu-ly-ornament.svg');
    background-size: auto, auto, 680px 825px;
    background-position: center, center, 78% 44%;
}
body.lb-home-page .pv-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 78% 48%, rgba(255,255,255,.45), transparent 48%);
}
body.lb-home-page .pv-kicker { color: #7d7058; }
body.lb-home-page .pv-hero__brand {
    color: #25463f !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #25463f !important;
    filter: none;
    text-shadow: none;
}
body.lb-home-page .pv-hero__line {
    color: #687174 !important;
    -webkit-text-fill-color: #687174 !important;
    text-shadow: none;
}
body.lb-home-page .pv-hero__sub { color: #626b6c; }
body.lb-home-page .pv-hero__glow {
    background: radial-gradient(circle, rgba(221,204,161,.36), rgba(201,178,126,.12) 40%, transparent 70%);
    filter: blur(8px);
}
body.lb-home-page .pv-hero__img { filter: drop-shadow(0 24px 38px rgba(55,49,37,.2)); }
body.lb-home-page .pv-btn--solid {
    color: #f7f4ec !important;
    background: #25463f;
    border-color: #25463f;
    box-shadow: 0 8px 22px rgba(37,70,63,.14);
}
body.lb-home-page .pv-btn--solid:hover { color: #25463f !important; background: #e8dec7; border-color: #b26b4d; box-shadow: 0 10px 24px rgba(70,63,48,.12); }
body.lb-home-page .pv-btn--outline { color: #25463f !important; border-color: rgba(170,139,84,.72); }
body.lb-home-page .pv-btn--outline:hover { color: #25463f !important; background: rgba(232,222,199,.44); border-color: #b26b4d; }

body.lb-home-page .pv-trust {
    color: #25463f;
    background: rgba(247,244,236,.84);
    border-bottom-color: #ded9ce;
}
body.lb-home-page .pv-trust__icon { color: #b26b4d; }
body.lb-home-page .pv-trust__item strong { color: #25463f; }
body.lb-home-page .pv-section { color: #25463f; background-color: #f7f4ec; }
body.lb-home-page .pv-section--soft { background-color: #eeece4; }
body.lb-home-page .pv-label { color: #7d7058; }
body.lb-home-page .pv-h2 { color: #25463f; font-weight: 500; }
body.lb-home-page .pv-section p { color: #686e70; }
body.lb-home-page .pv-link {
    color: #25463f !important;
    border-bottom: 1px solid rgba(170,139,84,.7);
    transition: color .2s ease, border-color .2s ease;
}
body.lb-home-page .pv-link:hover { color: #7d7058 !important; border-color: #7d7058; }
body.lb-home-page .pv-products { color: #25463f; }
body.lb-home-page .pv-card {
    color: #25463f;
    background: #faf8f2;
    border-color: rgba(137,116,73,.25);
    border-radius: 0;
    box-shadow: 0 14px 38px rgba(42,46,37,.07), 0 1px 0 rgba(255,255,255,.9) inset;
}
body.lb-home-page .pv-card:hover { box-shadow: 0 20px 48px rgba(42,46,37,.12), 0 1px 0 rgba(255,255,255,.9) inset; }
body.lb-home-page .pv-card__media { background: linear-gradient(145deg, #e8e3d8, #faf8f2 46%, #e4ded1); }
body.lb-home-page .pv-card__body h3 a { color: #25463f !important; }
body.lb-home-page .pv-card__body p { color: #686e70; }
body.lb-home-page .pv-faq__list { border-top-color: #d8d2c5; }
body.lb-home-page .pv-faq__item { border-bottom-color: #d8d2c5; }
body.lb-home-page .pv-faq__item summary { color: #25463f; }
body.lb-home-page .pv-faq__item p { color: #686e70; }

@media (max-width: 767px) {
    body.lb-home-page .pv-hero {
        background-image:
            radial-gradient(ellipse at 50% 44%, rgba(255,255,255,.54), transparent 58%),
            linear-gradient(rgba(250,248,242,.82), rgba(250,248,242,.82)),
            url('/themes/farmart/images/luu-ly-ornament.svg');
        background-size: auto, auto, 470px 570px;
        background-position: center, center, 50% 42%;
    }
}

/* Refine the homepage to the editorial product-page hierarchy. */
body.lb-home-page .header.lx-header--oneline {
    background: rgba(247, 244, 236, .96) !important;
    border-bottom: 1px solid rgba(137, 116, 73, .25) !important;
    box-shadow: 0 8px 24px rgba(38, 42, 35, .07) !important;
}
body.lb-home-page .lx-brand__name {
    color: #25463f !important;
    -webkit-text-fill-color: #25463f !important;
}
body.lb-home-page .pv-hero__brand {
    font-family: var(--pv-display) !important;
    font-size: clamp(2.3rem, 4.2vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -.025em;
}
body.lb-home-page .pv-hero__line {
    font-family: var(--pv-display) !important;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    font-weight: 400;
    letter-spacing: .035em;
    text-transform: none;
}
body.lb-home-page .pv-h2,
body.lb-home-page .pv-card__body h3 {
    font-family: var(--pv-display) !important;
    font-weight: 400;
}
body.lb-home-page .pv-card__body h3 { font-size: 1.28rem; }

/* Header controls and wordmark on the light homepage paper surface. */
body.lb-home-page .header.lx-header--oneline .lx-brand__name { color: #25463f !important; -webkit-text-fill-color: #25463f !important; text-shadow: none; }
body.lb-home-page .header.lx-header--oneline .lx-brand__tag { color: #77705f !important; -webkit-text-fill-color: #77705f !important; }
body.lb-home-page .header.lx-header--oneline .lx-bar__icon,
body.lb-home-page .header.lx-header--oneline .lx-bar__lang a,
body.lb-home-page .header.lx-header--oneline .lx-bar__lang span,
body.lb-home-page .header.lx-header--oneline .lx-bar__lang li { color: #25463f !important; }
body.lb-home-page .header.lx-header--oneline .lx-bar__icon:hover { color: #7d7058 !important; border-color: rgba(170,139,84,.45); }
@media (max-width: 1199px) {
    body.lb-home-page .header-mobile {
        background: rgba(247,244,236,.96) !important;
        border-bottom: 1px solid rgba(137,116,73,.25) !important;
        box-shadow: 0 6px 20px rgba(38,42,35,.06) !important;
    }
    body.lb-home-page .header-mobile .lx-brand__name { color: #25463f !important; -webkit-text-fill-color: #25463f !important; text-shadow: none; }
    body.lb-home-page .header-mobile .lx-brand__tag { color: #77705f !important; -webkit-text-fill-color: #77705f !important; }
    body.lb-home-page .header-mobile .menu-icon,
    body.lb-home-page .header-mobile .menu-icon .svg-icon { color: #25463f !important; fill: #25463f !important; }
}
@media (max-width: 1199px) {
    body.lb-home-page .header-mobile .menu-icon .svg-icon,
    body.lb-home-page .header-mobile .menu-icon svg,
    body.lb-home-page .header-mobile .menu-icon svg use,
    body.lb-home-page .header-mobile .menu-icon svg path {
        color: #25463f !important;
        fill: #25463f !important;
        stroke: #25463f !important;
    }
}


/* Homepage featured product carousel. */
body.lb-home-page .pv-hero__visual { isolation: isolate; }
body.lb-home-page .pv-hero__slides {
    position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
}
body.lb-home-page .pv-hero__slide {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .65s ease, visibility .65s ease;
}
body.lb-home-page .pv-hero__slide.is-active {
    position: relative; inset: auto; width: 100%; height: 100%;
    opacity: 1; visibility: visible; pointer-events: auto;
}
body.lb-home-page .pv-hero__slide:focus-visible { outline: 2px solid #b26b4d; outline-offset: -8px; }
body.lb-home-page .pv-hero__arrow {
    position: absolute; top: 50%; z-index: 3; display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0; transform: translateY(-50%);
    border: 1px solid rgba(137,116,73,.38); border-radius: 50%;
    color: #25463f; background: rgba(250,248,242,.88); font: 30px/1 Georgia, serif;
    box-shadow: 0 5px 18px rgba(37,70,63,.12); cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
body.lb-home-page .pv-hero__arrow:hover { color: #fff; background: #25463f; border-color: #25463f; }
body.lb-home-page .pv-hero__arrow:focus-visible,
body.lb-home-page .pv-hero__dot:focus-visible { outline: 2px solid #b26b4d; outline-offset: 3px; }
body.lb-home-page .pv-hero__arrow--prev { left: 12px; }
body.lb-home-page .pv-hero__arrow--next { right: 12px; }
body.lb-home-page .pv-hero__dots {
    position: absolute; right: 0; bottom: 18px; left: 0; z-index: 3;
    display: flex; justify-content: center; align-items: center; gap: 8px;
}
body.lb-home-page .pv-hero__dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px;
    background: rgba(37,70,63,.35); cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
body.lb-home-page .pv-hero__dot.is-active { width: 24px; background: #b26b4d; }
@media (max-width: 767px) {
    /* Keep the first product slide inside the phone viewport and out of the copy below. */
    body.lb-home-page .pv-hero__visual {
        width: 100%;
        min-width: 0;
        min-height: min(360px, 42vh);
        margin-bottom: 0;
        overflow: hidden;
    }
    body.lb-home-page .pv-hero__slides { width: 100%; }
    body.lb-home-page .pv-hero__slide.is-active {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    body.lb-home-page .pv-hero__img {
        max-width: calc(100vw - 40px);
        max-height: min(340px, 40vh);
        object-fit: contain;
    }
    body.lb-home-page .pv-hero__arrow { width: 38px; height: 38px; font-size: 26px; }
    body.lb-home-page .pv-hero__arrow--prev { left: 4px; }
    body.lb-home-page .pv-hero__arrow--next { right: 4px; }
    body.lb-home-page .pv-hero__dots { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    body.lb-home-page .pv-hero__slide,
    body.lb-home-page .pv-hero__dot,
    body.lb-home-page .pv-hero__arrow { transition: none; }
}

/* Keep the product lightbox inside the visible mobile viewport. */
@media (max-width: 767px) {
    .lg-backdrop { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; z-index: 10050 !important; }
    .lg-outer { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; z-index: 10051 !important; overflow: hidden !important; }
    .lg-outer .lg, .lg-outer .lg-inner { height: 100% !important; }
    .lg-outer .lg-img-wrap { padding: 48px 12px 92px !important; }
    .lg-outer .lg-image { max-width: calc(100vw - 24px) !important; max-height: calc(100vh - 140px) !important; max-height: calc(100dvh - 140px) !important; object-fit: contain; }
    .lg-outer .lg-toolbar { padding-top: env(safe-area-inset-top, 0px); height: calc(40px + env(safe-area-inset-top, 0px)); }
    .lg-outer .lg-thumb-outer { bottom: env(safe-area-inset-bottom, 0px); }
    .lg-outer .lg-actions .lg-next, .lg-outer .lg-actions .lg-prev, .lg-outer .lg-toolbar .lg-icon { touch-action: manipulation; }
}

/* Mobile homepage: keep the complete hero copy below the product photograph. */
@media (max-width: 767px) {
    body.lb-home-page .pv-hero__grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
    }

    body.lb-home-page .pv-hero__visual {
        position: relative !important;
        order: 1 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: clamp(280px, 92vw, 360px) !important;
        min-height: 0 !important;
        margin: 0 0 1.25rem !important;
        overflow: hidden !important;
    }

    body.lb-home-page .pv-hero__slides {
        position: absolute !important;
        inset: 0 !important;
        height: 100% !important;
    }

    body.lb-home-page .pv-hero__copy {
        position: relative !important;
        inset: auto !important;
        order: 2 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 36rem !important;
        margin: 0 auto !important;
        padding: 0 0.35rem 1rem !important;
        text-align: center !important;
        transform: none !important;
    }
}

/* Match DOM order: image first, hero copy second on phones. */
@media (min-width: 768px) {
    body.lb-home-page .pv-hero__visual { grid-column: 2; grid-row: 1; }
    body.lb-home-page .pv-hero__copy { grid-column: 1; grid-row: 1; }
}
