﻿@import url("/data/plugin/fontawesome581pro/fontawesome581pro.css");
/* ============================================================================
   Style.css — template Guest HOA TUOI BAO PHUC (HOABP) — V1.0 · 30/09/2026
   ----------------------------------------------------------------------------
   Dung tu mockup "Mockup web Bao Phuc" (bo nhan dien A V1.2) tren khung
   template Banh Thuy Khue. Font: Lora (tieu de) + Be Vietnam Pro (noi dung),
   nap bang <link> trong Layout.cshtml.

   ⚠ VI SAO RULE NAM NGOAI @layer
     Dong khai bao thu tu layer duoi day GIU NGUYEN theo chuan khung. Nhung
     OS.js tu nap OS.css SAU tep nay, va CSS khong layer luon thang MOI rule
     trong layer bat ke do cu the — template BTK da vap hai lan (trang Cam nang
     ra chu tran, Cart.css chay nho mot dau ngoac dong som). Nen toan bo rule
     cua template de NGOAI layer va dung selector theo lop (bp-* / az-template-*)
     de khong phu thuoc thu tu nap.
   ⚠ Mau: CHI dung bien --bp-* / --az-template-* khai o :root. rgba() chi cho
     bong do va lop phu.
   ============================================================================ */
@layer reset, tokens, base, layout, components, template, utilities, overrides;

:root {
    color-scheme: light;
    /* 6 bien khung (giu ten cua BTK de cac man dung chung doc duoc) */
    --az-template-bg: #F7F1E6;
    --az-template-text: #2B2B2B;
    --az-template-accent: #14273D;
    --az-template-danger: #1F4D3A;
    --az-template-danger-dark: #173B2C;
    --az-template-gold: #C9A24A;
    /* bang mau Bao Phuc */
    --bp-green: #1F4D3A;
    --bp-green-dark: #173B2C;
    --bp-green-tint: #E6EEE7;
    --bp-cream: #F7F1E6;
    --bp-white: #FFFFFF;
    --bp-gold: #C9A24A;
    --bp-gold-soft: #E8C46B;
    --bp-gold-pale: #F2E3B3;
    --bp-gold-tint: #F4EBD3;
    --bp-gold-line: #E7D9B0;
    --bp-night: #14273D;
    --bp-ink: #2B2B2B;
    --bp-muted: #5E584C;
    --bp-line: #E3DACA;
    --bp-field: #D9CFBC;
    --bp-dash: #CDBF9F;
    --bp-red: #A8322D;
    --bp-cream-90: rgba(247, 241, 230, .9);
    --bp-cream-70: rgba(247, 241, 230, .7);
    --bp-gold-45: rgba(201, 162, 74, .45);
    /* chu, bo goc, bong */
    --bp-font: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
    --bp-font-title: Lora, Georgia, 'Times New Roman', serif;
    --bp-r-btn: 999px;
    --bp-r-card: 16px;
    --bp-r-box: 18px;
    --bp-r-input: 12px;
    --bp-input-h: 46px;
    --az-input-height: 46px;
    --bp-shadow-card: 0 6px 18px rgba(31, 77, 58, .06);
    --bp-shadow-pop: 0 12px 30px rgba(20, 39, 61, .18);
    --bp-wrap: 1200px;
    --bp-gutter: 16px;
    --bp-navbar-h: 62px;
}

/* ---------------------------------------------------------------- nen */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.bp-body {
    margin: 0;
    padding: 0;
    background: var(--bp-cream);
    color: var(--bp-ink);
    font-family: var(--bp-font);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
}
body.bp-body *, body.bp-body *::before, body.bp-body *::after { box-sizing: border-box; }
body.bp-body a { color: var(--bp-green); text-decoration: none; }
body.bp-body a:hover { color: var(--bp-green-dark); }
body.bp-body img { max-width: 100%; }
body.bp-body h1, body.bp-body h2, body.bp-body h3 { font-family: var(--bp-font-title); color: var(--bp-green); line-height: 1.25; margin: 0; }
body.bp-body p { margin: 0; }
body.bp-body ul { margin: 0; padding: 0; }
body.bp-body input, body.bp-body select, body.bp-body textarea, body.bp-body button { font-family: inherit; }

/* OS core an loader bang .az-hide — template phai tu khai */
.az-hide { display: none !important; }
.az-sr-only {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.az-template-schema { display: none; }
.bp-skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; padding: 10px 16px; border-radius: var(--bp-r-btn); background: var(--bp-white); color: var(--bp-green); font-weight: 600; }
.bp-skip:focus { left: 12px; }
.bp-wrap { width: min(var(--bp-wrap), calc(100% - 2 * var(--bp-gutter))); margin-left: auto; margin-right: auto; }
.bp-main { display: block; min-height: 40vh; }

/* ---------------------------------------------------------------- nut */
.bp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 22px; border-radius: var(--bp-r-btn);
    border: 1.5px solid var(--bp-green); background: var(--bp-green); color: var(--bp-cream);
    font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent; user-select: none;
}
body.bp-body a.bp-btn { color: var(--bp-cream); }
.bp-btn:hover, body.bp-body a.bp-btn:hover { background: var(--bp-green-dark); border-color: var(--bp-green-dark); color: var(--bp-cream); }
.bp-btn:focus-visible { outline: 3px solid var(--bp-gold-soft); outline-offset: 2px; }
.bp-btn .fal, .bp-btn .far, .bp-btn .fas { font-size: 17px; }
.bp-btn-outline, body.bp-body a.bp-btn-outline { background: transparent; color: var(--bp-green); }
.bp-btn-outline:hover, body.bp-body a.bp-btn-outline:hover { background: var(--bp-green-tint); color: var(--bp-green-dark); border-color: var(--bp-green); }
.bp-btn-gold, body.bp-body a.bp-btn-gold { background: var(--bp-gold); border-color: var(--bp-gold); color: var(--bp-night); }
.bp-btn-gold:hover, body.bp-body a.bp-btn-gold:hover { background: var(--bp-gold-soft); border-color: var(--bp-gold-soft); color: var(--bp-night); }
.bp-btn-cream, body.bp-body a.bp-btn-cream { background: transparent; border-color: var(--bp-cream-70); color: var(--bp-cream); }
.bp-btn-cream:hover, body.bp-body a.bp-btn-cream:hover { background: rgba(247, 241, 230, .12); border-color: var(--bp-cream); color: var(--bp-cream); }
.bp-btn-white, body.bp-body a.bp-btn-white { background: var(--bp-white); border-color: var(--bp-line); color: var(--bp-green); }
.bp-btn-s { height: 38px; padding: 0 16px; font-size: 14px; }
.bp-btn-l { height: 52px; padding: 0 26px; font-size: 16px; }
.bp-btn-block { display: flex; width: 100%; }

/* ---------------------------------------------------------------- nhan */
.bp-pill {
    display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; flex-shrink: 0;
    padding: 4px 10px; border-radius: var(--bp-r-btn);
    background: var(--bp-green); color: var(--bp-cream);
    font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; line-height: 1.3;
}
.bp-pill-gold { background: var(--bp-gold); color: var(--bp-night); }
.bp-pill-night { background: var(--bp-night); color: var(--bp-gold-soft); }
.bp-pill-soft { background: var(--bp-green-tint); color: var(--bp-green); }
.bp-pill-line { background: var(--bp-white); color: var(--bp-green); border: 1.5px solid var(--bp-green); }

/* ---------------------------------------------------------------- tieu de khoi */
.bp-divider { display: block; width: 150px; height: auto; margin: 0 auto; }
.bp-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 18px; }
.bp-head h2 { font-size: 24px; font-weight: 700; }
.bp-head p { font-size: 14px; color: var(--bp-muted); max-width: 620px; }
.bp-head-t { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bp-head-more { display: none; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.bp-more { display: flex; justify-content: center; margin-top: 16px; }
.bp-sec { padding-top: 28px; }
.bp-h2 { font-size: 20px; }

/* ---------------------------------------------------------------- dai tien ich (may tinh) */
.bp-topbar { display: none; background: var(--bp-green-dark); color: var(--bp-cream); font-size: 13px; }
.bp-topbar .bp-wrap { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bp-topbar-l { display: flex; gap: 22px; align-items: center; }
.bp-topbar-l span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bp-topbar-l i { color: var(--bp-gold); font-size: 14px; }
.bp-topbar-r { display: flex; gap: 20px; align-items: center; }
body.bp-body .bp-topbar-r a { color: var(--bp-cream); font-size: 13px; white-space: nowrap; }
body.bp-body .bp-topbar-r a:hover { color: var(--bp-gold-soft); }

/* ---------------------------------------------------------------- dau trang */
.az-template-header.bp-header { position: sticky; top: 0; z-index: 900; background: var(--bp-green); color: var(--bp-cream); box-shadow: 0 2px 10px rgba(20, 39, 61, .12); }
.bp-header-row { height: 60px; display: flex; align-items: center; gap: 4px; }
.bp-iconbtn, .bp-menubtn {
    width: 44px; height: 44px; flex-shrink: 0; border: 0; padding: 0; background: transparent;
    color: var(--bp-cream); display: inline-flex; align-items: center; justify-content: center;
    font-size: 23px; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent;
}
.bp-menubtn { margin-left: -10px; }
.bp-iconbtn:hover, .bp-menubtn:hover { background: rgba(247, 241, 230, .1); }
.bp-logo { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 0; }
body.bp-body a.bp-logo, body.bp-body a.bp-logo:hover { color: var(--bp-cream); }
.bp-logo-seal { display: none; width: 64px; height: 64px; }
.bp-logo-mark { display: block; width: 32px; height: 32px; }
.bp-logo-text { display: flex; flex-direction: column; line-height: 1; }
.bp-logo-kicker { font-size: 8.5px; letter-spacing: 3px; color: var(--bp-gold); font-weight: 500; }
.bp-logo-name { font-family: var(--bp-font-title); font-weight: 700; font-size: 19px; letter-spacing: .5px; margin-top: 3px; white-space: nowrap; }
.bp-logo-sub { display: none; font-size: 10.5px; letter-spacing: 1.5px; color: var(--bp-gold); margin-top: 6px; white-space: nowrap; }
.bp-header-sp { flex: 1; }
/* ⚠ hai lop: .bp-search (dinh nghia SAU, display:flex) khong duoc lat lai rule an nay tren dien thoai */
.bp-search.bp-header-search { display: none; }
.bp-hotline { display: none; }

/* o tim kiem (dung chung dau trang, trang chu, ngan keo, trang tim kiem) */
.bp-search { position: relative; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 16px; border-radius: var(--bp-r-btn); background: var(--bp-white); border: 1.5px solid var(--bp-line); }
.bp-search > i { color: var(--bp-muted); font-size: 18px; flex-shrink: 0; }
.bp-search input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--bp-ink); padding: 0; -webkit-appearance: none; appearance: none; }
.bp-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.bp-search input[type="search"]::placeholder { color: var(--bp-muted); opacity: .85; }
.bp-search button[type="submit"] { height: 36px; padding: 0 16px; border-radius: var(--bp-r-btn); border: 0; background: var(--bp-green); color: var(--bp-cream); font-size: 14px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.bp-search button[type="submit"]:hover { background: var(--bp-green-dark); }
.bp-search:focus-within { border-color: var(--bp-green); box-shadow: 0 0 0 3px rgba(31, 77, 58, .12); }

/* gio hang tren dau trang */
.az-template-cart.bp-cart { position: relative; flex-shrink: 0; }
.bp-cartbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; border-radius: var(--bp-r-btn); font-weight: 600; font-size: 14.5px; }
body.bp-body a.bp-cartbtn, body.bp-body a.bp-cartbtn:hover { color: var(--bp-cream); }
.bp-cartbtn > i { font-size: 23px; }
.bp-cartbtn-label { display: none; }
.bp-cartcount {
    position: absolute; top: 4px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--bp-gold); color: var(--bp-night); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
/* khay "Da them vao gio" (V1.3) — CO DINH tren man hinh; noi dung + bat/tat do script.js _cartPop
   ⚠ Truoc V1.3 khay tha xuong DUOI nut gio dau trang (absolute): may tinh dau trang khong dinh nen khach
     dang cuon giua trang bam "Them vao gio" khong thay khay, khong biet bam tiep vao dau (phan hoi that 30/09).
   ⚠ Dien thoai: ngay tren thanh day (--bp-navbar-h) · may tinh (>= 1024): goc phai, top = --bp-pop-top. */
.az-template-cartalert.bp-cartpop {
    position: fixed; z-index: 1000; left: 12px; right: 12px; bottom: calc(var(--bp-navbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
    max-width: 440px; margin: 0 auto;
    display: none; flex-direction: column; gap: 12px; padding: 14px 14px 12px;
    border-radius: var(--bp-r-box); border: 1px solid var(--bp-line); background: var(--bp-white); color: var(--bp-ink);
    box-shadow: 0 18px 44px rgba(20, 39, 61, .28); font-size: 14px;
}
.az-template-cartalert.bp-cartpop.active { display: flex; animation: bp-up .22s ease-out; }
.bp-cartpop-head { display: flex; align-items: center; gap: 10px; }
.bp-cartpop-head b { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--bp-green); }
.bp-cartpop-ok { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--bp-green); color: var(--bp-cream); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.bp-cartpop .fa-times { flex-shrink: 0; padding: 6px; margin: -6px -4px -6px 0; color: var(--bp-muted); font-size: 16px; cursor: pointer; }
.bp-cartpop-item { display: flex; align-items: center; gap: 12px; }
.bp-cartpop-item img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--bp-cream); }
.bp-cartpop-item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bp-cartpop-item b { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-cartpop-item small { font-size: 12.5px; color: var(--bp-muted); }
.bp-cartpop-act { display: flex; align-items: center; gap: 14px; }
.bp-cartpop-act .bp-btn { flex: 1; min-width: 0; padding: 0 16px; }
body.bp-body a.bp-cartpop-more { flex-shrink: 0; padding: 8px 2px; font-size: 14px; font-weight: 600; color: var(--bp-green); text-decoration: underline; text-underline-offset: 3px; }
/* so tren nut gio nhay khi vua them (dau trang + cot cong cu may tinh) */
.bp-bump { animation: bp-bump .6s ease-out; }
@keyframes bp-bump { 0% { transform: scale(1); } 30% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes bp-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* menu nhom hoa (may tinh) */
.bp-groupnav { display: none; border-top: 1px solid rgba(201, 162, 74, .3); }
.bp-groupnav .bp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bp-groupnav-list { display: flex; gap: 34px; align-items: center; overflow: hidden; }
body.bp-body .bp-groupnav-list a {
    height: 52px; padding-top: 3px; display: flex; align-items: center; white-space: nowrap;
    color: var(--bp-cream); font-size: 15px; font-weight: 500; border-bottom: 3px solid transparent;
}
body.bp-body .bp-groupnav-list a:hover { color: var(--bp-gold-soft); }
body.bp-body .bp-groupnav-list a.on { font-weight: 700; border-bottom-color: var(--bp-gold); }
.bp-groupnav-sign { display: inline-flex; align-items: center; gap: 8px; color: var(--bp-gold-soft); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; white-space: nowrap; }

/* ---------------------------------------------------------------- ngan keo menu */
.az-template-menudim { position: fixed; inset: 0; z-index: 1090; background: rgba(20, 39, 61, .62); animation: bp-fade .2s ease-out; }
@keyframes bp-fade { from { opacity: 0; } to { opacity: 1; } }
.az-template-panelmenu.bp-drawer {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 1100; width: min(340px, 88vw);
    display: flex; flex-direction: column; background: var(--bp-cream); box-shadow: 12px 0 30px rgba(0, 0, 0, .18);
    transform: translateX(-105%); transition: transform .25s ease-out; visibility: hidden;
}
.az-template-panelmenu.bp-drawer.active { transform: none; visibility: visible; }
.bp-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; background: var(--bp-green); }
.bp-drawer-close { width: 40px; height: 40px; border: 0; background: transparent; color: var(--bp-cream); font-size: 22px; cursor: pointer; }
.bp-drawer-search { margin: 12px 16px 0; height: 44px; }
.bp-drawer-body { flex: 1; overflow-y: auto; padding: 6px 16px 10px; -webkit-overflow-scrolling: touch; }
body.bp-body a.bp-drawer-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--bp-line); color: var(--bp-ink); }
.bp-drawer-item > i:first-child { width: 20px; text-align: center; color: var(--bp-green); font-size: 18px; }
.bp-drawer-item > span { flex: 1; display: flex; flex-direction: column; font-size: 15px; font-weight: 700; }
.bp-drawer-item > span small { font-size: 12px; font-weight: 400; color: var(--bp-muted); }
.bp-drawer-item > i:last-child { color: var(--bp-gold); font-size: 14px; }
.bp-drawer-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 0; }
body.bp-body .bp-drawer-groups a { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--bp-line); border-radius: 12px; background: var(--bp-white); color: var(--bp-ink); }
.bp-drawer-groups img, .bp-drawer-groups .bp-noimg { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; background: var(--bp-green-tint); }
.bp-drawer-groups span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bp-drawer-groups b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-drawer-groups small { font-size: 11.5px; color: var(--bp-muted); }
.bp-drawer-sub { padding: 2px 0 8px 32px; display: flex; flex-direction: column; }
body.bp-body .bp-drawer-sub a { padding: 6px 0; color: var(--bp-muted); font-size: 14px; }
body.bp-body .bp-drawer-sub a:hover { color: var(--bp-green); }
.bp-drawer-foot { padding: 12px 16px 16px; border-top: 1px solid var(--bp-line); display: flex; flex-direction: column; gap: 8px; }
.bp-noimg { display: inline-flex; align-items: center; justify-content: center; }
.bp-noimg img { width: 70%; height: 70%; }

/* ---------------------------------------------------------------- hoa tiet nen xanh */
.bp-hoatiet { position: absolute; inset: 0; pointer-events: none; background-image: url("images/bp-hoatiet.svg"); background-size: 88px 88px; opacity: .10; }

/* ---------------------------------------------------------------- dai thuong hieu (hero) */
.bp-hero { position: relative; overflow: hidden; background: var(--bp-green); color: var(--bp-cream); padding: 22px 0 18px; }
.bp-hero > .bp-wrap { position: relative; }
.bp-hero-grid { display: flex; flex-direction: column; gap: 14px; }
.bp-hero-text { display: flex; flex-direction: column; gap: 14px; }
.bp-kicker { font-size: 11px; letter-spacing: 2.2px; color: var(--bp-gold); font-weight: 600; }
body.bp-body .bp-hero h1 { font-size: 27px; line-height: 1.22; color: var(--bp-cream); font-weight: 700; text-wrap: pretty; }
.bp-slogan { font-family: var(--bp-font-title); font-style: italic; font-size: 16px; color: var(--bp-gold-soft); }
.bp-hero-lead { display: none; font-size: 16.5px; line-height: 1.6; color: var(--bp-cream-90); max-width: 540px; }
.bp-hero-lead b { color: var(--bp-cream); }
.bp-hero-cta { display: none; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.bp-hero-media { display: none; }
.bp-stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.bp-stats li { padding: 12px 12px 11px; border: 1px solid var(--bp-gold-45); border-radius: 14px; background: rgba(23, 59, 44, .55); }
.bp-stats b { display: block; font-family: var(--bp-font-title); font-size: 21px; color: var(--bp-gold-soft); line-height: 1.1; white-space: nowrap; }
.bp-stats span { display: block; font-size: 12.5px; margin-top: 4px; line-height: 1.35; color: var(--bp-cream); }
.bp-home-search { padding-top: 14px; }

/* ---------------------------------------------------------------- nhom hoa (trang chu) */
.bp-groups { padding-top: 12px; }
.bp-groups .bp-head { display: none; }
.bp-groups-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--bp-gutter)); padding: 0 var(--bp-gutter) 6px; -webkit-overflow-scrolling: touch; }
.bp-groups-list::-webkit-scrollbar { display: none; }
body.bp-body .bp-groups-list a { flex: 0 0 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--bp-ink); text-align: center; }
.bp-groups-ring { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; border: 2px solid var(--bp-gold); background: var(--bp-white); display: block; flex-shrink: 0; }
.bp-groups-ring img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-groups-ring.bp-noimg img { width: 64%; height: 64%; object-fit: contain; }
.bp-groups-list b { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.bp-groups-list small { display: none; font-size: 13px; color: var(--bp-muted); }

/* ---------------------------------------------------------------- luoi + the san pham */
.az-template-product.bp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-card.az-template-item {
    position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0;
    padding: 10px; border-radius: var(--bp-r-card); border: 1px solid var(--bp-line);
    background: var(--bp-white); box-shadow: var(--bp-shadow-card);
}
.bp-card .az-template-image { position: relative; }
.bp-card .az-template-image > a { display: block; position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--bp-cream); }
.bp-card .az-template-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.bp-card:hover .az-template-image img { transform: scale(1.03); }
.bp-card-badge { position: absolute; left: 10px; top: 10px; z-index: 1; }
.bp-card .az-template-name { min-height: 38px; }
body.bp-body .bp-card .az-template-name a {
    color: var(--bp-ink); font-size: 14px; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.bp-body .bp-card .az-template-name a:hover { color: var(--bp-green); }
.bp-card-spec { font-size: 12.5px; color: var(--bp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-card .az-template-price, .bp-pd-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.bp-card .az-template-price b { font-size: 17px; font-weight: 700; color: var(--bp-green); white-space: nowrap; }
.bp-card .az-template-price small { font-size: 12.5px; color: var(--bp-muted); }
.bp-card-none { font-size: 13px; color: var(--bp-muted); font-style: italic; }

/* cum [- 1 +] + nut them (the danh sach + trang chi tiet) */
.bp-card .az-template-book { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.bp-card .az-template-minus, .bp-card .az-template-plus,
.bp-pd-book .az-template-minus, .bp-pd-book .az-template-plus {
    width: 30px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    color: var(--bp-green); cursor: pointer; font-size: 14px; user-select: none; -webkit-tap-highlight-color: transparent;
    background: var(--bp-white); border: 1.5px solid var(--bp-line);
}
.bp-card .az-template-minus, .bp-pd-book .az-template-minus { border-right: 0; border-radius: var(--bp-r-btn) 0 0 var(--bp-r-btn); }
.bp-card .az-template-plus, .bp-pd-book .az-template-plus { border-left: 0; border-radius: 0 var(--bp-r-btn) var(--bp-r-btn) 0; margin-left: -6px; }
.bp-card .az-template-book input[type="text"], .bp-pd-book input[type="text"] {
    width: 28px; height: 34px; margin-left: -6px; flex-shrink: 0; padding: 0; border: 1.5px solid var(--bp-line); border-left: 0; border-right: 0;
    border-radius: 0; background: var(--bp-white); text-align: center; font-size: 15px; font-weight: 600; color: var(--bp-ink); outline: 0;
    -webkit-appearance: none; appearance: none;
}
.bp-card .az-template-book input.incart, .bp-pd-book input.incart { color: var(--bp-green); }
.bp-card .az-template-order {
    flex: 1; min-width: 0; height: 34px; border-radius: var(--bp-r-btn); background: var(--bp-green); color: var(--bp-cream);
    display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent; transition: background-color .15s;
}
.bp-card .az-template-order:hover { background: var(--bp-green-dark); }
.bp-card .az-template-order i { font-size: 15px; }
.bp-add-l { display: none; }
.az-template-order.az-soldout, .bp-card .az-template-order.az-soldout { background: var(--bp-line); color: var(--bp-muted); cursor: not-allowed; }
/* V1.5: the HET HANG (moi co man hinh, ca mau khong co bien the) — an cum [- 1 +], nut "Tạm hết hàng" chiem ca hang.
   Truoc day tren dien thoai chu tran ra ngoai nut; mau het hang khong dat duoc nen o so luong cung khong con y nghia. */
.bp-card .az-template-book[data-soldout="1"] .az-template-minus,
.bp-card .az-template-book[data-soldout="1"] .az-template-plus,
.bp-card .az-template-book[data-soldout="1"] input[type="text"] { display: none; }
/* V1.4b: mau chua co gia (gia theo ngay) - nut goi tiem bao gia thay cum dat hang (khong cho dat 0d) */
.bp-card-call { margin-top: auto; }
.bp-card .bp-card-call .bp-btn { height: 34px; padding: 0 10px; font-size: 13px; gap: 6px; }
.bp-card .bp-card-call .bp-btn .fal { font-size: 15px; }
.bp-pd-call { display: flex; gap: 10px; flex-wrap: wrap; }
.bp-pd-call .bp-btn { flex: 1 1 140px; }

/* ---------------------------------------------------------------- lich hoa sap toi */
.bp-lich { margin-top: 30px; background: var(--bp-gold-tint); border-top: 1px solid var(--bp-gold-line); border-bottom: 1px solid var(--bp-gold-line); padding: 18px 0; }
.bp-lich[hidden] { display: none; }
.bp-lich-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 12px; }
.bp-lich-title { display: flex; align-items: center; gap: 8px; color: var(--bp-green); font-family: var(--bp-font-title); font-weight: 700; font-size: 19px; }
.bp-lich-title i { font-size: 20px; }
.bp-lich-lead { font-size: 13px; color: var(--bp-muted); }
.bp-lich-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.bp-lich-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--bp-line); background: var(--bp-white); }
.bp-lich-date { flex: 0 0 58px; height: 62px; border-radius: 12px; background: var(--bp-green); color: var(--bp-cream); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bp-lich-date span { font-size: 10.5px; letter-spacing: .5px; opacity: .85; text-transform: uppercase; }
.bp-lich-date b { font-family: var(--bp-font-title); font-size: 20px; line-height: 1.1; }
.bp-lich-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bp-lich-name { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bp-lich-name b { font-size: 15px; color: var(--bp-ink); }
.bp-lich-body > span { font-size: 13px; color: var(--bp-muted); line-height: 1.4; }

/* ---------------------------------------------------------------- khoi ban si + cau chuyen */
.bp-duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 28px; }
.bp-sales { position: relative; overflow: hidden; border-radius: var(--bp-r-box); background: var(--bp-night); color: var(--bp-cream); padding: 20px 18px; }
.bp-sales .bp-hoatiet { opacity: .07; }
.bp-sales-in { position: relative; display: flex; flex-direction: column; gap: 10px; }
body.bp-body .bp-sales h2 { font-size: 22px; color: var(--bp-gold-pale); }
.bp-sales p { font-size: 14px; line-height: 1.55; color: var(--bp-cream-90); }
.bp-sales-act { display: flex; gap: 10px; flex-wrap: wrap; }
.bp-story { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 20px 18px; border-radius: var(--bp-r-box); border: 1px solid var(--bp-line); background: var(--bp-white); }
.bp-story img { width: 132px; height: 132px; flex-shrink: 0; display: block; }
.bp-story-body { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.bp-story-kicker { font-size: 11.5px; letter-spacing: 2px; color: var(--bp-gold); font-weight: 700; }
body.bp-body .bp-story h2 { font-size: 22px; }
.bp-story p { font-size: 14.5px; line-height: 1.6; color: var(--bp-muted); }
.bp-story a.bp-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- the bai viet */
.bp-news-list { display: flex; flex-direction: column; gap: 10px; }
body.bp-body a.bp-news-card { display: flex; align-items: center; gap: 12px; overflow: hidden; border-radius: var(--bp-r-card); border: 1px solid var(--bp-line); background: var(--bp-white); color: var(--bp-ink); }
.bp-news-thumb { display: block; width: 108px; height: 96px; flex-shrink: 0; background: var(--bp-cream); }
.bp-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-news-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 10px 0; min-width: 0; }
.bp-news-body b { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-news-sum { display: none; font-size: 13.5px; color: var(--bp-muted); line-height: 1.5; }
body.bp-body a.bp-news-card:hover b { color: var(--bp-green); }

/* ---------------------------------------------------------------- khoi co tieu de */
.bp-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--bp-r-box); border: 1px solid var(--bp-line); background: var(--bp-white); }
.bp-box-title { display: flex; align-items: center; gap: 8px; color: var(--bp-green); font-family: var(--bp-font-title); font-weight: 700; font-size: 18px; }
.bp-box-title i { font-size: 19px; }
.bp-box p { font-size: 14px; line-height: 1.6; color: var(--bp-muted); }
.bp-rows { display: flex; flex-direction: column; }
.bp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--bp-line); font-size: 14px; }
.bp-row:last-child { border-bottom: 0; }
.bp-row > span { color: var(--bp-muted); flex: 1 1 auto; min-width: 0; }
.bp-row > b { text-align: right; color: var(--bp-ink); font-weight: 600; max-width: 62%; }

/* ---------------------------------------------------------------- chinh sach ban hang */
.bp-policy { padding: 28px 0 0; }
.bp-policy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bp-policy-item { display: flex; gap: 12px; align-items: flex-start; }
.bp-policy-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bp-green-tint); color: var(--bp-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 19px; }
.bp-policy-item b { display: block; font-size: 15px; color: var(--bp-ink); }
.bp-policy-item span { font-size: 13.5px; color: var(--bp-muted); line-height: 1.5; }

/* ---------------------------------------------------------------- chan trang */
.az-template-footer.bp-footer { position: relative; overflow: hidden; background: var(--bp-green); color: var(--bp-cream); padding: 28px 0 24px; margin-top: 32px; }
.bp-footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.bp-footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; }
.bp-footer-lockup { display: flex; align-items: center; gap: 14px; }
.bp-footer-lockup img { width: 76px; height: 76px; display: block; flex-shrink: 0; }
.bp-footer-name { font-family: var(--bp-font-title); font-weight: 700; font-size: 22px; letter-spacing: .5px; line-height: 1.15; }
.bp-footer-sub { font-size: 12px; color: var(--bp-gold); letter-spacing: 1px; margin-top: 2px; }
.bp-footer-slogan { font-family: var(--bp-font-title); font-style: italic; color: var(--bp-gold-soft); font-size: 14px; margin-top: 4px; }
.bp-contact { display: flex; flex-direction: column; gap: 8px; }
.bp-contact div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.bp-contact i { color: var(--bp-gold); font-size: 16px; width: 18px; text-align: center; margin-top: 2px; flex-shrink: 0; }
body.bp-body .bp-contact a { color: inherit; }
.bp-footer-title { font-size: 12px; letter-spacing: 1.6px; color: var(--bp-gold); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.bp-footer ul { list-style: none; }
body.bp-body .bp-footer ul a { display: flex; align-items: center; gap: 6px; padding: 4px 0; color: var(--bp-cream); font-size: 14px; }
body.bp-body .bp-footer ul a:hover { color: var(--bp-gold-soft); }
.bp-footer ul a i { color: var(--bp-gold); font-size: 12px; }
.bp-footer-bottom { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(201, 162, 74, .35); display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: rgba(247, 241, 230, .8); }

/* ---------------------------------------------------------------- thanh lien he nhanh (dien thoai) */
.az-template-navfooter.bp-navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; height: calc(var(--bp-navbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--bp-night); border-top: 2px solid var(--bp-gold); }
.bp-navbar ul { list-style: none; height: var(--bp-navbar-h); display: flex; }
.bp-navbar li { flex: 1; display: flex; }
body.bp-body .bp-navbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--bp-cream); font-size: 11.5px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.bp-navbar a i { font-size: 21px; }
body.bp-body .bp-navbar a:active { color: var(--bp-gold-soft); }
body.bp-body.bp-has-navbar { padding-bottom: calc(var(--bp-navbar-h) + env(safe-area-inset-bottom, 0px)); }

/* cong cu lien he (may tinh) */
.azdesk-tool.bp-desktool { display: none; }

/* ---------------------------------------------------------------- bang chon kenh tu van */
.azchat-sheet { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.azchat-sheet.az-hide { display: none !important; }
.azchat-bg { position: absolute; inset: 0; background: rgba(20, 39, 61, .62); }
.azchat-box { position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; background: var(--bp-cream); box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); animation: bp-up .22s ease-out; }
@keyframes bp-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.azchat-box::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: var(--bp-dash); align-self: center; }
.azchat-title { font-family: var(--bp-font-title); font-size: 19px; font-weight: 700; color: var(--bp-green); padding: 4px 2px 2px; }
body.bp-body a.azchat-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--bp-line); background: var(--bp-white); color: var(--bp-ink); }
.azchat-item > i, .azchat-item > img { width: 44px; height: 44px; border-radius: 14px; background: var(--bp-green-tint); color: var(--bp-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 21px; object-fit: contain; }
.azchat-item > span { flex: 1; display: flex; flex-direction: column; }
.azchat-item > span b { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.azchat-item > span i { font-style: normal; font-size: 12.5px; color: var(--bp-muted); }
body.bp-body a.azchat-cancel { height: 46px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--bp-muted); }

/* ---------------------------------------------------------------- thong bao (script.js _toastSelf / _blockAlert) */
#azToastWrap { position: fixed; left: 50%; bottom: calc(var(--bp-navbar-h) + 18px); transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.aztoast { padding: 12px 16px; border-radius: 14px; background: var(--bp-night); color: var(--bp-cream); font-size: 14px; line-height: 1.45; box-shadow: var(--bp-shadow-pop); pointer-events: auto; animation: bp-up .2s ease-out; }
.aztoast.ok { background: var(--bp-green); }
.aztoast.bad { background: var(--bp-red); }
.aztoast.out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.azblock { position: fixed; inset: 0; z-index: 3100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 39, 61, .62); }
.azblock-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--bp-r-box); background: var(--bp-white); box-shadow: var(--bp-shadow-pop); }
.azblock-title { font-family: var(--bp-font-title); font-size: 19px; font-weight: 700; color: var(--bp-red); }
.azblock-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; color: var(--bp-ink); }
.azblock-ok { height: 46px; border: 0; border-radius: var(--bp-r-btn); background: var(--bp-green); color: var(--bp-cream); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }

/* ---------------------------------------------------------------- hop thoai khung (AZ.Confirm / AZ.Alert / AZ.Prompt)
   ⚠ OS.dialog.js CO san tren trang khach (tier1) nhung dinh dang cua no nam trong OS.css, ma khach chua
     dang nhap chay che do LITE: KHONG nap OS.css. Hop hoi van dung du DOM nhung khong mot dong style ->
     roi xuong CUOI trang, nam duoi thanh day co dinh: bam "Bo khoi gio" ma nhu khong co gi xay ra
     (ca that 30/09/2026). Template BTK da gap va sua trong Cart.css (khoi "HOP THOAI"); Cart.css HOABP
     viet lai nen mat khoi do.
   ⚠ DOM that (OS.dialog.js AZ.Modal._render + _markAsDialog): .az-modal > .az-modal-bg + .az-modal-container
     (.az-modal-close · h2.az-modal-title · .az-modal-main > [name=Content] · .az-modal-button > a[name=Ok] +
     a[name=Cancel].red). Ten lop NGUYEN VAN — doi ten la vo. Dat o Style.css vi hop mo duoc o MOI
     trang; tien to body.bp-body de thang dinh dang OS.css khi khach DA dang nhap (OS.css co nap).
   ⚠ z-index tren moi lop co dinh cua template (dau trang 900 · ngan keo 1100 · toast 3000 · azblock 3100)
     va tren nhan vat tro ly. margin:auto giu hop o giua ca khi khung lo gan display:block. */
body.bp-body .az-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
body.bp-body .az-modal-bg { position: absolute; inset: 0; background: rgba(20, 39, 61, .62); }
body.bp-body .az-modal-container { position: relative; z-index: 1; width: min(420px, 100%); max-width: 100%; max-height: calc(100% - 32px); margin: auto; display: flex; flex-direction: column; padding: 20px 20px 18px; border-radius: var(--bp-r-box); background: var(--bp-white); color: var(--bp-ink); box-shadow: var(--bp-shadow-pop); text-align: left; overflow: hidden; animation: bp-up .2s ease-out; }
/* ⚠ V1.3 — OS.dialog.js (doc ban that 30/09) gan THANG tren khung style="width:400px|80%;height:150px"
     (Alert/Confirm 150, Prompt 300) roi danh dau lop az-modal-dialog de OS.css tu gian chieu cao. Trang LITE
     khong co OS.css -> hop KET o 150px, cat mat noi dung (ca that V1.2: chi thay nua dong cau hoi). Ghi de
     bang !important (thang style inline), CHI cho hop hoi/bao — popup iframe (AZ.PopupUrl) khong co lop nay. */
body.bp-body .az-modal-container.az-modal-dialog { width: min(420px, 100%) !important; height: auto !important; max-height: calc(100% - 16px) !important; }
body.bp-body .az-modal-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--bp-muted); font-size: 22px; line-height: 32px; text-align: center; cursor: pointer; }
body.bp-body .az-modal-close::before { content: "\00d7"; }
body.bp-body .az-modal-close:hover { background: var(--bp-green-tint); color: var(--bp-green); }
body.bp-body .az-modal-main { flex: 1 1 auto; min-height: 0; overflow: auto; font-size: 15px; line-height: 1.6; color: var(--bp-ink); text-align: left; }
body.bp-body .az-modal-title { margin: 0 36px 8px 0; padding: 0; font-family: var(--bp-font-title); font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--bp-green); text-align: left !important; }
body.bp-body .az-modal-main input, body.bp-body .az-modal-main textarea { width: 100%; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--bp-field); border-radius: var(--bp-r-input); background: var(--bp-white); color: var(--bp-ink); font-size: 15px; }
body.bp-body .az-modal-main input { height: var(--bp-input-h); }
body.bp-body .az-modal-button { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
body.bp-body .az-modal-button button, body.bp-body .az-modal-button a { flex: 1 1 120px; min-height: 46px; margin: 0; padding: 10px 18px; border: 1px solid var(--bp-line); border-radius: var(--bp-r-btn); background: var(--bp-white); color: var(--bp-ink) !important; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; }
/* nut DAU la hanh dong chinh (OS.dialog.js xep Ok truoc, Cancel sau — theo BTK) */
body.bp-body .az-modal-button button:first-child, body.bp-body .az-modal-button a:first-child { border-color: var(--bp-green); background: var(--bp-green); color: var(--bp-cream) !important; }
body.bp-body .az-modal-button button:first-child:hover, body.bp-body .az-modal-button a:first-child:hover { border-color: var(--bp-green-dark); background: var(--bp-green-dark); }

/* ---------------------------------------------------------------- duong dan */
.bp-bc { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; padding-top: 12px; }
body.bp-body .bp-bc a { color: var(--bp-muted); }
body.bp-body .bp-bc a:hover { color: var(--bp-green); }
.bp-bc .bp-bc-sep { color: var(--bp-dash); }
.bp-bc [aria-current] { color: var(--bp-ink); }

/* ---------------------------------------------------------------- the chon (chip) */
.bp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--bp-gutter)); padding: 14px var(--bp-gutter) 4px; -webkit-overflow-scrolling: touch; }
.bp-chips::-webkit-scrollbar { display: none; }
body.bp-body .bp-chip { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: var(--bp-r-btn); display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; background: var(--bp-white); color: var(--bp-ink); border: 1px solid var(--bp-line); white-space: nowrap; }
body.bp-body .bp-chip:hover { border-color: var(--bp-green); color: var(--bp-green); }
body.bp-body .bp-chip.on { background: var(--bp-green); color: var(--bp-cream); border-color: var(--bp-green); }
.bp-chip small { font-size: 12px; opacity: .75; font-weight: 600; }

/* ---------------------------------------------------------------- trang nhom hoa */
.bp-cat-head { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
body.bp-body .bp-cat-head h1 { font-size: 28px; }
.bp-cat-head p { font-size: 14px; color: var(--bp-muted); max-width: 760px; }
.bp-cat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 14px; }
.bp-cat-side { display: flex; flex-direction: column; gap: 16px; order: 2; }
.bp-cat-side .bp-side-groups { display: none; }
.bp-cat-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bp-sortbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; color: var(--bp-muted); }
.bp-sortbar b { color: var(--bp-ink); }
.bp-sortbar label { display: flex; align-items: center; gap: 6px; color: var(--bp-ink); white-space: nowrap; }
.bp-sortbar select { height: 36px; padding: 0 12px; border-radius: var(--bp-r-btn); border: 1px solid var(--bp-line); background: var(--bp-white); color: var(--bp-ink); font-size: 13.5px; font-family: inherit; }
.bp-side-list { display: flex; flex-direction: column; gap: 2px; }
body.bp-body .bp-side-list a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; color: var(--bp-ink); }
body.bp-body .bp-side-list a.on { background: var(--bp-green-tint); font-weight: 700; }
body.bp-body .bp-side-list a:hover { background: var(--bp-green-tint); }
.bp-side-list img, .bp-side-list .bp-noimg { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; background: var(--bp-green-tint); }
.bp-side-list span { flex: 1; font-size: 14.5px; }
.bp-side-list small { font-size: 12.5px; color: var(--bp-muted); }
.bp-callbox { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--bp-r-box); background: var(--bp-night); color: var(--bp-cream); }
.bp-callbox b { font-family: var(--bp-font-title); font-size: 18px; color: var(--bp-gold-pale); }
.bp-callbox span { font-size: 13.5px; line-height: 1.5; color: var(--bp-cream-90); }
.bp-empty { padding: 28px 18px; border-radius: var(--bp-r-box); border: 2px dashed var(--bp-dash); background: var(--bp-white); color: var(--bp-muted); text-align: center; font-size: 14.5px; line-height: 1.6; }

/* phan trang */
.az-template-page { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 18px 0 4px; }
body.bp-body .az-template-page a { min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--bp-r-btn); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--bp-line); background: var(--bp-white); color: var(--bp-ink); font-weight: 600; font-size: 14px; }
body.bp-body .az-template-page li.on a, body.bp-body .az-template-page a.disabled { background: var(--bp-green); border-color: var(--bp-green); color: var(--bp-cream); pointer-events: none; }

/* ---------------------------------------------------------------- trang chi tiet hoa */
.bp-pd { padding-top: 12px; }
.bp-pd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.bp-pd-media { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bp-pd-photo.az-template-image { position: relative; border-radius: 20px; overflow: hidden; background: var(--bp-white); aspect-ratio: 1 / 1; border: 1px solid var(--bp-line); }
.bp-pd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.bp-pd-photo .bp-pill { position: absolute; right: 12px; top: 12px; }
.bp-pd-note { font-size: 12px; color: var(--bp-muted); margin: 0 2px; }
.azprod-gallery { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.azprod-gallery::-webkit-scrollbar { display: none; }
.azprod-thumb { flex: 0 0 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--bp-white); }
.azprod-thumb.active { border-color: var(--bp-green); }
.azprod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-pd-buy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
body.bp-body .bp-pd-buy h1 { font-size: 26px; }
.bp-pd-code { font-size: 13px; color: var(--bp-muted); }
.bp-pd-code b { color: var(--bp-ink); }
.bp-pd-price b { font-size: 28px; font-weight: 700; color: var(--bp-green); white-space: nowrap; }
.bp-pd-price small { font-size: 14px; color: var(--bp-muted); }
.bp-pd-book.az-template-book { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bp-pd-book .az-template-minus, .bp-pd-book .az-template-plus { width: 38px; height: 46px; font-size: 15px; }
.bp-pd-book .az-template-plus { margin-left: -10px; }
.bp-pd-book input[type="text"] { width: 36px; height: 46px; margin-left: -10px; font-size: 16px; }
.bp-pd-book .az-template-order, .bp-pd-book .bp-addcart { flex: 1 1 140px; }
.bp-pd-book .az-template-order.bp-btn { cursor: pointer; }
.bp-pd-note-sold { font-size: 13.5px; color: var(--bp-red); }
.bp-trust { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--bp-r-card); border: 1px solid var(--bp-line); background: var(--bp-white); }
.bp-trust div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--bp-ink); }
.bp-trust i { color: var(--bp-green); font-size: 17px; width: 20px; text-align: center; margin-top: 1px; flex-shrink: 0; }
.bp-pd-info .bp-row > b { max-width: 60%; }
.bp-pd-more { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.bp-pd-remark { font-size: 14.5px; line-height: 1.7; color: var(--bp-ink); }
.bp-pd-remark img { height: auto; border-radius: 12px; }
.bp-pd-remark .bp-prose { font-size: 14.5px; line-height: 1.7; }
.az-template-vary > label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.az-template-vary ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.az-template-vary li { height: 38px; padding: 0 14px; border-radius: var(--bp-r-btn); border: 1.5px solid var(--bp-line); background: var(--bp-white); display: inline-flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 600; }
.az-template-vary li.on { border-color: var(--bp-green); background: var(--bp-green-tint); color: var(--bp-green); }
/* V1.5: o bien the theo ma tran (mau / bang mau) — anh nho cua o, ten dai tu xuong dong, ten o dang chon dung canh nhan,
   khoi chon duoc khoanh do + hien loi nhac khi khach bam dat ma chua chon (script.js them lop is-ask),
   o may chu vua tu choi (script.js them lop is-off) mo di va khong bam duoc. */
.az-template-vary > label b { font-weight: 700; color: var(--bp-green); }
.az-template-vary li { gap: 8px; height: auto; min-height: 38px; max-width: 100%; padding: 4px 14px; line-height: 1.25; border-radius: 19px; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.az-template-vary li img { width: 28px; height: 28px; margin-left: -8px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: var(--bp-cream); }
.az-template-vary li:hover { border-color: var(--bp-green); }
.az-template-vary li:focus-visible { outline: 3px solid var(--bp-gold-soft); outline-offset: 2px; }
.az-template-vary li.is-off { opacity: .45; text-decoration: line-through; cursor: not-allowed; pointer-events: none; }
/* (bo chon phai du manh de thang "body.bp-body p { margin: 0 }") */
.az-template-vary .bp-vary-ask { display: none; margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--bp-red); }
.az-template-vary.is-ask { outline: 2px solid var(--bp-red); outline-offset: 4px; border-radius: var(--bp-r-input); }
.az-template-vary.is-ask .bp-vary-ask { display: block; }

/* ---------------------------------------------------------------- trang tim kiem */
.bp-searchpage { padding-top: 14px; }
body.bp-body .bp-searchpage h1 { font-size: 24px; margin-top: 16px; }
.bp-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bp-green-tint); color: var(--bp-ink); font-size: 13.5px; line-height: 1.45; margin: 10px 0 16px; }
.bp-hint i { color: var(--bp-green); font-size: 17px; margin-top: 1px; }

/* ---------------------------------------------------------------- bai gioi thieu / chinh sach */
.bp-article { max-width: 780px; margin: 0 auto; padding: 12px 2px 0; display: flex; flex-direction: column; gap: 14px; }
body.bp-body .bp-article h1 { font-size: 27px; }
.bp-sapo { font-size: 16px; line-height: 1.6; font-weight: 500; color: var(--bp-ink); }
.bp-prose { font-size: 15px; line-height: 1.75; color: var(--bp-ink); overflow-wrap: anywhere; }
/* V1.4: tang do uu tien - "body.bp-body p { margin: 0 }" (0,1,2) dang de len quy tac nay (0,1,0) -> doan van dinh lien nhau */
body.bp-body .bp-prose > * + * { margin-top: 12px; }
body.bp-body .bp-prose h2 { font-size: 21px; margin-top: 24px; }
body.bp-body .bp-prose h3 { font-size: 18px; margin-top: 18px; }
/* V1.4: them body.bp-body — "body.bp-body ul { padding: 0 }" (0,1,2) tung thang rule nay (0,1,1): dau cham trong bai viet /
   mo ta san pham lot ra ngoai mep khung */
body.bp-body .bp-prose ul, body.bp-body .bp-prose ol { padding-left: 22px; }
.bp-prose li + li { margin-top: 6px; }
.bp-prose img { height: auto; border-radius: 14px; }
/* V1.4b: anh chen tu trinh soan (ghi style="width:..;height:.." tren the) khong bi keo dan tren dien thoai; video / bang khong tran ngang */
body.bp-body .bp-prose img { max-width: 100%; height: auto !important; }
body.bp-body .bp-prose iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
/* V1.4c: bang trong mo ta duoc template boc .bp-table-wrap -> cuon ngang trong khung, bang giu dang bang (khong display:block) */
.bp-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
.bp-table-wrap table { overflow-wrap: normal; word-break: normal; }
/* V1.4b: khoi .bp-box.bp-prose da cach doan bang gap (flex) -> khong cong them margin; khoi san pham trong bai viet giu 18px */
body.bp-body .bp-box.bp-prose > * + * { margin-top: 0; }
body.bp-body .bp-prose > .az-artprod { margin-top: 18px; }
body.bp-body .bp-prose a { color: var(--bp-green); text-decoration: underline; text-underline-offset: 2px; }
.bp-prose table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--bp-white); border-radius: 14px; overflow: hidden; }
.bp-prose th, .bp-prose td { padding: 9px 12px; border-bottom: 1px solid var(--bp-line); text-align: left; vertical-align: top; }
.bp-prose th { background: var(--bp-green-tint); color: var(--bp-green); }
.bp-others { margin-top: 8px; padding: 6px 16px 4px; border-radius: var(--bp-r-card); border: 1px solid var(--bp-line); background: var(--bp-white); }
.bp-others b { display: block; padding: 10px 0 6px; font-size: 12.5px; letter-spacing: 1.4px; color: var(--bp-gold); }
.bp-others ul { list-style: none; }
.bp-others li { border-top: 1px solid var(--bp-line); }
body.bp-body .bp-others a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; color: var(--bp-ink); font-size: 14.5px; }
.bp-others a i { color: var(--bp-gold); }

/* ---------------------------------------------------------------- cam nang */
.bp-newspage { padding-top: 10px; }
body.bp-body .bp-newspage h1 { font-size: 28px; }
.bp-newspage > p { font-size: 14px; color: var(--bp-muted); margin-top: 6px; }
.bp-newsgrid { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.bp-hotbanner { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding: 18px; border-radius: var(--bp-r-box); background: var(--bp-green); color: var(--bp-cream); }
.bp-hotbanner b { font-family: var(--bp-font-title); font-size: 19px; position: relative; }
.bp-hotbanner span { font-size: 14px; color: var(--bp-cream-90); position: relative; }
.bp-hotbanner .bp-btn { position: relative; align-self: flex-start; }
.bp-art-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--bp-muted); }
.bp-art-hero { border-radius: var(--bp-r-box); overflow: hidden; background: var(--bp-white); }
.bp-art-hero img { width: 100%; height: auto; display: block; }
.bp-cta { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--bp-r-box); background: var(--bp-gold-tint); border: 1px solid var(--bp-gold-line); }
.bp-cta b { font-family: var(--bp-font-title); font-size: 19px; color: var(--bp-green); }
.bp-cta span { font-size: 14px; color: var(--bp-muted); }
.bp-cta-act { display: flex; gap: 10px; flex-wrap: wrap; }
.az-news-pricegroup { font-size: 18px; margin-top: 20px; }
.az-news-pricetable td:nth-child(2) { white-space: nowrap; font-weight: 600; color: var(--bp-green); }
body.bp-body a.az-news-buy { display: inline-flex; height: 32px; padding: 0 12px; white-space: nowrap; align-items: center; border-radius: var(--bp-r-btn); background: var(--bp-green); color: var(--bp-cream); font-size: 13px; font-weight: 600; text-decoration: none; }
/* bang gia [[BANG_GIA_SAN_PHAM]]: cot gia + nut khong xuong dong, cot ten chiu co */
.bp-prose table.az-news-pricetable th, .bp-prose table.az-news-pricetable td { padding: 9px 8px; }
.bp-prose table.az-news-pricetable td:nth-child(2), .bp-prose table.az-news-pricetable td:nth-child(3) { width: 1%; white-space: nowrap; }
/* khoi dat hoa giua bai ([[SANPHAM:X]]) — markup chung voi AZ.ArticleProduct */
.az-artprod { margin: 18px 0; padding: 16px; border-radius: var(--bp-r-box); background: var(--bp-white); border: 1px solid var(--bp-line); }
.az-artprod-title { font-family: var(--bp-font-title); font-weight: 700; font-size: 18px; color: var(--bp-green); margin-bottom: 12px; }
/* dien thoai: moi mau mot HANG (anh trai · ten, gia, dat hoa phai) — 3 mau khong le mot o */
.az-artprod-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.az-artprod .item { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "img name" "img price" "img book"; column-gap: 12px; row-gap: 4px; align-items: start; }
.az-artprod .item + .item { padding-top: 12px; border-top: 1px solid var(--bp-line); }
.az-artprod .image { grid-area: img; }
.az-artprod .image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }
.az-artprod .name { grid-area: name; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--bp-ink); }
.az-artprod .image a { display: block; }
.az-artprod .name a, .az-artprod .name a:hover { color: inherit; text-decoration: none; }
.az-artprod .price { grid-area: price; font-weight: 700; color: var(--bp-green); }
.az-artprod .price sup { font-size: inherit; vertical-align: baseline; top: 0; }
.az-artprod .book { grid-area: book; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.az-artprod .minus, .az-artprod .plus { width: 32px; height: 32px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--bp-line); border-radius: 50%; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--bp-green); background: var(--bp-white); -webkit-user-select: none; user-select: none; }
.az-artprod .book input { width: 38px; height: 32px; flex-shrink: 0; padding: 0; text-align: center; border: 1.5px solid var(--bp-line); border-radius: 8px; font-size: 14px; -moz-appearance: textfield; appearance: textfield; }
.az-artprod .book input::-webkit-outer-spin-button, .az-artprod .book input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.az-artprod .order { height: 34px; padding: 0 14px; margin-left: 4px; border-radius: var(--bp-r-btn); background: var(--bp-green); color: var(--bp-cream); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.az-artprod .order:hover { background: var(--bp-green-dark); }
/* V1.5: mau co bien the trong bai viet -> nut la lien ket sang trang mau ("Chọn loại") */
body.bp-body .az-artprod a.order, body.bp-body .az-artprod a.order:hover { color: var(--bp-cream); text-decoration: none; }
.az-artprod .book.is-link .order { margin-left: 0; }

/* ---------------------------------------------------------------- lien he */
.bp-contactpage { padding-top: 10px; display: flex; flex-direction: column; gap: 12px; }
body.bp-body .bp-contactpage h1 { font-size: 28px; }
.bp-contactpage > p { font-size: 14px; color: var(--bp-muted); }
.bp-bigtel { font-family: var(--bp-font-title); font-size: 28px; font-weight: 700; color: var(--bp-green); letter-spacing: .5px; }
.bp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bp-box .bp-contact div { color: var(--bp-ink); }

/* ================================================================ MAY TINH BANG >= 768 */
@media (min-width: 768px) {
    .az-template-product.bp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .bp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bp-lich-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bp-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-story { flex-direction: row; text-align: left; align-items: center; }
    .bp-story-body { align-items: flex-start; }
    .bp-news-list, .bp-newsgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .bp-policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
    .bp-footer-brand { grid-column: auto; }
    .bp-footer-bottom { flex-direction: row; justify-content: space-between; }
    /* may tinh bang tro len: ba the doc canh nhau */
    .az-artprod-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .az-artprod .item { display: flex; flex-direction: column; gap: 6px; }
    .az-artprod .item + .item { padding-top: 0; border-top: 0; }
    .az-artprod .book { flex-wrap: wrap; }
    .az-artprod .order { flex: 1 1 100%; margin: 4px 0 0; }
    .bp-hotbanner { flex-direction: row; align-items: center; justify-content: space-between; }
    .bp-hotbanner .bp-btn { align-self: center; }
}

/* ================================================================ MAY TINH >= 1024 */
@media (min-width: 1024px) {
    :root { --bp-gutter: 24px; }
    body.bp-body.bp-has-navbar { padding-bottom: 0; }
    .az-template-navfooter.bp-navbar { display: none; }

    /* dau trang */
    .bp-topbar { display: block; }
    .bp-header-row { height: 96px; gap: 32px; }
    .bp-menubtn, .bp-searchbtn { display: none; }
    .bp-logo { gap: 14px; }
    .bp-logo-seal { display: block; }
    .bp-logo-mark { display: none; }
    .bp-logo-kicker { font-size: 11px; letter-spacing: 3.6px; }
    .bp-logo-name { font-size: 27px; letter-spacing: .6px; margin-top: 5px; }
    .bp-logo-sub { display: block; }
    .bp-header-sp { display: none; }
    .bp-search.bp-header-search { display: flex; flex: 1; max-width: 470px; height: 46px; border: 0; padding-left: 18px; }
    .bp-hotline { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
    body.bp-body a.bp-hotline, body.bp-body a.bp-hotline:hover { color: var(--bp-cream); }
    .bp-hotline-ico { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(201, 162, 74, .7); display: flex; align-items: center; justify-content: center; color: var(--bp-gold-soft); font-size: 18px; }
    .bp-hotline small { display: block; font-size: 12px; color: rgba(247, 241, 230, .85); line-height: 1.2; }
    .bp-hotline b { display: block; font-size: 17px; letter-spacing: .3px; line-height: 1.2; }
    .bp-cartbtn { width: auto; height: 46px; padding: 0 16px; border: 1.5px solid rgba(247, 241, 230, .6); }
    .bp-cartbtn > i { font-size: 20px; }
    .bp-cartbtn-label { display: inline; }
    .bp-cartcount { position: static; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px; font-size: 12px; }
    .bp-groupnav { display: block; }
    .az-template-header.bp-header { position: relative; }

    /* hero */
    .bp-hero { padding: 60px 0 56px; }
    .bp-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
    .bp-hero-text { gap: 18px; }
    .bp-kicker { font-size: 12px; letter-spacing: 2.6px; }
    body.bp-body .bp-hero h1 { font-size: 48px; line-height: 1.14; }
    .bp-slogan { font-size: 21px; }
    .bp-hero-lead { display: block; }
    .bp-hero-cta { display: flex; }
    .bp-hero-media { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 253px 253px; gap: 14px; }
    .bp-hero-media > span { display: block; border-radius: 22px; overflow: hidden; background: var(--bp-white); border: 1px solid rgba(201, 162, 74, .35); }
    .bp-hero-media > span:first-child { grid-row: span 2; }
    .bp-hero-media > span img { width: 100%; height: 100%; object-fit: cover; display: block; }
    /* ⚠ hai lop: rule anh o tren (span img) khong duoc keo huy hieu ra 100% khung */
    .bp-hero-media > .bp-hero-badge { position: absolute; left: -36px; bottom: 34px; width: 164px; height: auto; display: block; }
    .bp-stats { gap: 16px; margin-top: 44px; }
    .bp-stats li { padding: 14px 16px; }
    .bp-stats b { font-size: 23px; }
    .bp-stats span { font-size: 13px; }
    .bp-home-search { display: none; }

    /* khoi tieu de */
    .bp-sec { padding-top: 56px; }
    .bp-head { flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: left; margin-bottom: 22px; gap: 20px; }
    .bp-head-t { align-items: flex-start; }
    .bp-head .bp-divider { margin: 0; width: 130px; }
    body.bp-body .bp-head h2 { font-size: 32px; line-height: 1.2; }
    .bp-head p { font-size: 15px; }
    .bp-head-more { display: inline-flex; font-size: 15px; }
    .bp-more { display: none; }
    .bp-head.bp-head-c { flex-direction: column; align-items: center; text-align: center; }
    .bp-head.bp-head-c .bp-head-t { align-items: center; }
    .bp-head.bp-head-c .bp-divider { margin: 0 auto; width: 150px; }

    /* nhom hoa: 7 o tron */
    .bp-groups { padding-top: 56px; }
    .bp-groups .bp-head { display: flex; }
    .bp-groups-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; overflow: visible; }
    body.bp-body .bp-groups-list a { flex: none; gap: 8px; }
    .bp-groups-ring { width: 128px; height: 128px; margin-bottom: 4px; }
    .bp-groups-list b { font-size: 16px; }
    .bp-groups-list small { display: block; }

    /* luoi + the */
    .az-template-product.bp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
    .bp-card.az-template-item { padding: 14px; }
    .bp-card .az-template-name { min-height: 43px; }
    body.bp-body .bp-card .az-template-name a { font-size: 16px; }
    .bp-card .az-template-price b { font-size: 19px; }
    .bp-card .az-template-minus, .bp-card .az-template-plus { width: 36px; height: 40px; font-size: 15px; }
    .bp-card .az-template-book input[type="text"] { width: 32px; height: 40px; }
    .bp-card .az-template-order { height: 40px; font-size: 14px; gap: 6px; }
    .bp-card .bp-card-call .bp-btn { height: 40px; font-size: 14px; }
    .bp-card .az-template-book { gap: 8px; }
    .bp-add-s { display: none; }
    .bp-add-l { display: inline; }

    /* lich hoa */
    .bp-lich { margin-top: 60px; padding: 36px 0; }
    .bp-lich-title { font-size: 30px; gap: 10px; }
    .bp-lich-title i { font-size: 28px; }
    .bp-lich-lead { font-size: 15px; }
    .bp-lich-head { margin-bottom: 18px; }
    .bp-lich-list { gap: 16px; }

    .bp-duo { gap: 24px; padding-top: 60px; }
    .bp-sales { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
    .bp-sales-in { gap: 14px; }
    body.bp-body .bp-sales h2 { font-size: 30px; }
    .bp-sales p { font-size: 15.5px; line-height: 1.6; }
    .bp-story { padding: 28px 32px; }
    .bp-story img { width: 168px; height: 168px; }
    body.bp-body .bp-story h2 { font-size: 28px; }

    .bp-news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    body.bp-body .bp-news-list a.bp-news-card { flex-direction: column; align-items: stretch; }
    .bp-news-list .bp-news-thumb { width: 100%; height: 230px; }
    .bp-news-list .bp-news-body { padding: 0 16px 18px; }
    .bp-news-list .bp-news-body b { font-size: 17px; }

    .bp-policy { padding: 56px 0 16px; }
    .az-template-footer.bp-footer { margin-top: 48px; }
    .bp-policy .bp-box { padding: 32px; gap: 22px; border-radius: 20px; }
    .bp-policy .bp-box-title { font-size: 26px; }
    .bp-policy-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
    .bp-policy-item { flex-direction: column; gap: 10px; }
    .bp-policy-ico { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
    .bp-policy-item b { font-size: 16px; }
    .bp-policy-item span { font-size: 14px; line-height: 1.55; }

    .az-template-footer.bp-footer { padding: 52px 0 28px; margin-top: 0; }
    .bp-footer-lockup img { width: 84px; height: 84px; }
    .bp-footer-name { font-size: 23px; white-space: nowrap; }
    .bp-footer-bottom { margin-top: 34px; font-size: 13px; }

    /* cong cu lien he ben phai */
    .azdesk-tool.bp-desktool { display: flex; position: fixed; right: 28px; bottom: 120px; z-index: 800; flex-direction: column; gap: 14px; }
    .bp-desktool-ico { position: relative; }
    .bp-desktool-cart .bp-desktool-ico { background: var(--bp-green); color: var(--bp-cream); }
    .bp-desktool-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bp-gold); color: var(--bp-night); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; box-shadow: 0 2px 6px rgba(20, 39, 61, .25); }
    /* khay "Da them vao gio": goc phai, ngay duoi dau trang khi dau trang con trong man (JS dat --bp-pop-top) */
    .az-template-cartalert.bp-cartpop { left: auto; right: 24px; bottom: auto; top: var(--bp-pop-top, 16px); width: 380px; max-width: calc(100% - 48px); margin: 0; }
    .az-template-cartalert.bp-cartpop.active { animation-name: bp-pop; }
    body.bp-body a.bp-desktool-item { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--bp-night); }
    .bp-desktool-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--bp-night); color: var(--bp-gold-soft); display: flex; align-items: center; justify-content: center; font-size: 21px; box-shadow: 0 8px 20px rgba(20, 39, 61, .22); border: 1.5px solid rgba(201, 162, 74, .6); transition: transform .15s; }
    body.bp-body a.bp-desktool-item:hover .bp-desktool-ico { transform: translateY(-2px); }
    .bp-desktool-label { font-size: 11.5px; font-weight: 600; background: rgba(247, 241, 230, .95); padding: 1px 8px; border-radius: var(--bp-r-btn); }
    #azToastWrap { bottom: 28px; }
    .azchat-sheet { align-items: center; }
    .azchat-box { border-radius: 22px; padding-bottom: 20px; }

    /* trang nhom */
    body.bp-body .bp-cat-head h1 { font-size: 40px; }
    .bp-cat-head { padding: 14px 0 12px; }
    .bp-cat-head p { font-size: 15.5px; }
    .bp-cat-chips { display: none; }
    .bp-cat-grid { grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 14px; }
    .bp-cat-side { order: 0; position: sticky; top: 20px; }
    .bp-cat-side .bp-side-groups { display: flex; }
    .bp-cat-main .az-template-product.bp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bp-sortbar { font-size: 14px; }

    /* trang chi tiet */
    .bp-pd { padding-top: 20px; }
    .bp-pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding-top: 22px; }
    .bp-pd-photo.az-template-image { border-radius: 24px; }
    .bp-pd-buy { gap: 16px; }
    body.bp-body .bp-pd-buy h1 { font-size: 38px; line-height: 1.2; }
    .bp-pd-code { font-size: 14px; }
    .bp-pd-price { padding: 14px 0; border-top: 1px solid var(--bp-line); border-bottom: 1px solid var(--bp-line); }
    .bp-pd-price b { font-size: 36px; }
    .bp-pd-price small { font-size: 16px; }
    .bp-pd-book.az-template-book { flex-wrap: nowrap; gap: 12px; }
    .bp-trust { padding: 18px; gap: 12px; border-radius: var(--bp-r-box); }
    .bp-pd-more { padding-top: 32px; }

    /* tim kiem / bai viet / lien he */
    .bp-searchpage h1 { font-size: 32px; }
    .bp-searchpage .bp-search { max-width: 640px; }
    .bp-chips { margin: 0; padding: 14px 0 4px; flex-wrap: wrap; overflow: visible; }
    body.bp-body .bp-article h1 { font-size: 38px; }
    .bp-article { padding-top: 20px; gap: 18px; }
    .bp-sapo { font-size: 17px; }
    .bp-prose { font-size: 16px; }
    body.bp-body .bp-newspage h1 { font-size: 40px; }
    .bp-newsgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    body.bp-body .bp-newsgrid a.bp-news-card { flex-direction: column; align-items: stretch; }
    .bp-newsgrid .bp-news-thumb { width: 100%; height: 220px; }
    .bp-newsgrid .bp-news-body { padding: 0 16px 18px; }
    .bp-newsgrid .bp-news-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .bp-contactpage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .bp-contactpage > .bp-cp-head, .bp-contactpage > .bp-cp-wide { grid-column: 1 / -1; }
    body.bp-body .bp-contactpage h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    body.bp-body *, body.bp-body *::before, body.bp-body *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* V1.4 — khoi "Mo ta" o trang chi tiet: noi dung chu tiem soan trong admin (Product.Description).
   .bp-box p (muted, 14px) thang .bp-prose (cung do uu tien thap hon) -> dat lai mau / co chu cho doan trong khoi mo ta. */
.bp-pd-desc .bp-prose p, .bp-pd-desc .bp-prose li { font-size: 15px; line-height: 1.7; color: var(--bp-ink); }
.bp-pd-desc .bp-prose h2, .bp-pd-desc .bp-prose h3 { color: var(--bp-green); font-family: var(--bp-font-title); }
.bp-pd-desc .bp-prose img { max-width: 100%; }

/* ---------------------------------------------------------------- V1.6 · 17/10/2026
   Khoi mua vu dau trang chu (.bp-mua: Homepage.cshtml tu doi theo ngay) + lien ket bai o the Lich hoa (.bp-lich-more).
   Nen xanh dem + chu kem, nut vang dong / vien kem (bien the "vang dong tren xanh dem" cua bo nhan dien). */
.bp-mua { margin-top: 18px; }
.bp-mua-in { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--bp-r-box); background: var(--bp-night); color: var(--bp-cream); }
.bp-mua-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bp-mua-kicker { font-size: 11px; letter-spacing: 1.6px; font-weight: 600; text-transform: uppercase; color: var(--bp-gold-soft); }
body.bp-body .bp-mua h2 { font-size: 21px; color: var(--bp-cream); }
.bp-mua p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bp-cream-90); }
.bp-mua-act { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-mua .bp-btn { height: auto; min-height: 46px; padding: 10px 18px; line-height: 1.25; white-space: normal; text-align: center; }
.bp-lich-more { align-self: flex-start; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--bp-green); text-decoration: underline; text-underline-offset: 2px; }
body.bp-body a.bp-lich-more { color: var(--bp-green); }
@media (min-width: 768px) {
    .bp-mua-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; }
    .bp-mua-text { max-width: 640px; }
    .bp-mua-act { flex: 0 0 auto; flex-direction: column; align-items: stretch; }
}
@media (min-width: 1024px) {
    .bp-mua { margin-top: 28px; }
    .bp-mua-in { padding: 30px 36px; }
    body.bp-body .bp-mua h2 { font-size: 28px; }
    .bp-mua p { font-size: 15px; }
}

/* ---------------------------------------------------------------- V1.7 (02/11/2026): kenh Shopee + Facebook (hoc kinglux.vn) */
.bp-btn .fab { font-size: 16px; }
.bp-drawer-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.bp-drawer-social .bp-btn { height: 42px; padding: 0 12px; font-size: 14px; }
/* V1.7a: phai thang "body.bp-body p { margin: 0 }" (0,1,2) -> bo chon (0,3,2) ; ban V1.7 ".bp-footer-follow" (0,1,0) khong an */
body.bp-body .bp-footer p.bp-footer-follow { margin-top: 16px; }
.bp-footer ul.bp-footer-social a i { width: 16px; text-align: center; font-size: 14px; }
.bp-contact .fab { width: 16px; text-align: center; }
.bp-kenh { padding-top: 24px; }
.bp-kenh-in { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--bp-r-box); border: 1px solid var(--bp-gold-line); background: var(--bp-gold-tint); }
.bp-kenh-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--bp-green); color: var(--bp-cream); display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.bp-kenh-t { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-kenh-t strong { font-family: var(--bp-font-title); font-size: 19px; color: var(--bp-green); line-height: 1.3; }
.bp-kenh-t span { font-size: 14px; line-height: 1.55; color: var(--bp-muted); }
.bp-kenh-act { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 768px) {
    .bp-kenh-in { flex-direction: row; align-items: center; gap: 18px; padding: 20px 24px; }
    .bp-kenh-act { flex-shrink: 0; }
}
@media (min-width: 1024px) {
    .bp-kenh { padding-top: 40px; }
    .bp-kenh-t strong { font-size: 21px; }
}
