/* Font tự lưu trên web (không tải từ Google) – nhanh hơn trên điện thoại */
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/be-vietnam-pro-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/be-vietnam-pro-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lora';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/lora-vietnamese-600-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Lora';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/lora-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lora';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/lora-vietnamese-700-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Lora';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/lora-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lora';font-style:italic;font-weight:600;font-display:swap;src:url(../fonts/lora-vietnamese-600-italic.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Lora';font-style:italic;font-weight:600;font-display:swap;src:url(../fonts/lora-latin-600-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Đặc Sản Sa Đéc – giao diện cửa hàng
   Màu: sông Tiền (xanh rêu), gạch lò (đỏ đất), hoa Sa Đéc (vàng), giấy gạo (kem) */
:root {
    --cream: #FBF6EC;
    --paper: #FFFFFF;
    --rice: #F4ECDC;
    --ink: #2A2823;
    --muted: #6F685C;
    --line: #E8DEC9;
    --river: #1F5E55;
    --river-dark: #164740;
    --river-soft: #E3EFEC;
    --brick: #B4432C;
    --brick-dark: #93341F;
    --sun: #F2B530;
    --ok: #2F7D4F;
    --err: #B4432C;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(42, 40, 35, .05), 0 6px 20px rgba(42, 40, 35, .06);
    --serif: 'Lora', Georgia, serif;
    --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: var(--river); text-decoration: none; }
a:hover { color: var(--brick); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding-top: 28px; padding-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt { margin-top: 32px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px;
    border: 1.5px solid transparent; font-weight: 600; cursor: pointer; text-align: center; transition: .15s; line-height: 1.3; }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--river); color: var(--river); }
.btn-outline:hover { background: var(--river); color: #fff; }
.btn-sun { background: var(--sun); color: #3A2A05; }
.btn-sun:hover { background: #e3a514; color: #3A2A05; }
.btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--river); }
.btn-sm { padding: 7px 12px; font-size: .9rem; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: .88rem; }
.link-btn:hover { color: var(--brick); }

/* ---------- Đầu trang ---------- */
.notice-bar { background: var(--river-dark); color: #F6EBD3; text-align: center; font-size: .85rem; padding: 6px 12px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand img { max-height: 46px; width: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--river);
    background-image: repeating-linear-gradient(180deg, transparent 0 6px, rgba(251,246,236,.85) 6px 8px);
    box-shadow: inset 0 0 0 3px var(--sun); }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.search:focus-within { border-color: var(--river); }
.search input { flex: 1; border: 0; background: transparent; padding: 9px 16px; outline: none; min-width: 0; }
.search button { border: 0; background: transparent; padding: 0 14px; color: var(--river); cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.hotline { display: flex; flex-direction: column; line-height: 1.15; color: var(--ink); }
.hotline small { color: var(--muted); font-size: .75rem; }
.hotline strong { color: var(--brick); }
.cart-link { position: relative; color: var(--river); display: flex; padding: 6px; }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--brick); color: #fff; font-size: .72rem; font-weight: 700;
    min-width: 19px; height: 19px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.5rem; padding: 0 4px; cursor: pointer; color: var(--river); }
.cat-nav { border-top: 1px solid var(--line); background: var(--paper); }
.cat-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; padding: 10px 12px; color: var(--ink); font-weight: 500; font-size: .93rem; border-bottom: 2.5px solid transparent; }
.cat-nav a:hover, .cat-nav a.on { color: var(--river); border-bottom-color: var(--sun); }

.flash-wrap { padding-top: 14px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-weight: 500; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.flash.ok { background: #E6F2EA; color: #1E5A35; border: 1px solid #BFDCC9; }
.flash.err { background: #FBEAE5; color: #8E2E1B; border: 1px solid #F0C5B9; display: block; }
.flash-link { font-weight: 700; color: inherit; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { background: var(--river); color: #F6EBD3; overflow: hidden; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--sun); margin-bottom: 10px; }
.hero h1 { color: #FFF8E8; font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 16px; }
.hero h1 em { color: var(--sun); font-style: italic; }
.hero .lead { font-size: 1.08rem; max-width: 520px; color: #E7DDC6; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { position: relative; height: 300px; }
.hero-art .sun { position: absolute; top: 6px; right: 12%; width: 92px; height: 92px; border-radius: 50%; background: var(--sun); opacity: .95; }
/* Giàn phơi hủ tiếu: các tấm bánh trắng trên giàn tre */
.rack { position: absolute; z-index: 1; inset: 70px 0 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; transform: skewY(-6deg); }
.rack span { background:
        repeating-linear-gradient(90deg, rgba(42,40,35,.09) 0 1px, transparent 1px 9px),
        linear-gradient(180deg, #FFF9EC, #F1E6CE);
    border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,.18); border-top: 5px solid #C9A46A; }
.rack span:nth-child(2n) { transform: translateY(14px); }

/* ---------- Banner ---------- */
.banners { position: relative; background: var(--river); }
.banner-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.banner-track::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; width: 100%; min-width: 0; max-width: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: block; aspect-ratio: 16 / 6; min-height: 220px; color: #fff; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-text { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 28px; padding-top: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,.55)); max-width: none; }
.banner-text h2 { color: #fff; font-size: clamp(1.4rem, 3.5vw, 2.4rem); margin: 0 0 4px; max-width: 1200px; }
.banner-text p { margin: 0; max-width: 640px; }
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.banner-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.banner-dots button.on { background: var(--sun); width: 22px; border-radius: 6px; }

/* ---------- Cam kết ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -26px; position: relative; z-index: 2; }
.trust > div { background: var(--paper); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-left: 4px solid var(--sun); }
.trust strong { display: block; color: var(--river); font-size: .98rem; }
.trust span { font-size: .85rem; color: var(--muted); }

/* ---------- Tiêu đề khối ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; position: relative; padding-left: 14px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--brick); }
.section-head a { font-weight: 600; font-size: .93rem; white-space: nowrap; }

/* ---------- Danh mục ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tile { background: var(--paper); border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow); color: var(--ink); transition: .15s; }
.cat-tile:hover { transform: translateY(-2px); color: var(--river); }
.cat-tile img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.cat-initial { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--river); background: var(--river-soft);
    background-image: repeating-linear-gradient(180deg, transparent 0 8px, rgba(31,94,85,.08) 8px 10px); }
.cat-tile strong { display: block; font-size: .95rem; line-height: 1.3; }
.cat-tile small { color: var(--muted); }

/* ---------- Thẻ sản phẩm ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(42,40,35,.06), 0 12px 28px rgba(42,40,35,.10); }
.card-img { position: relative; aspect-ratio: 1; background: var(--rice); display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-off { position: absolute; top: 10px; left: 10px; background: var(--brick); color: #fff; font-weight: 700; font-size: .8rem; padding: 3px 8px; border-radius: 6px; }
.badge-out { position: absolute; inset: auto 0 0 0; background: rgba(42,40,35,.75); color: #fff; text-align: center; font-size: .85rem; padding: 5px; font-weight: 600; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--sans); font-size: .97rem; font-weight: 600; margin: 0; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--river); }
.card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { color: var(--brick); font-weight: 700; font-size: 1.08rem; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.card-sold { font-size: .8rem; color: var(--muted); }
.card-body form, .card-body > .btn { margin-top: auto; }
.card-body .btn { width: 100%; }

/* ---------- Câu chuyện ---------- */
.story { background: var(--river); color: #EADFC6; margin: 24px 0; }
.story-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.story h2 { color: #FFF8E8; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.story .prose p { color: #EADFC6; }
.story-strands { height: 260px; border-radius: 18px;
    background:
        repeating-linear-gradient(90deg, rgba(42,40,35,.10) 0 1px, transparent 1px 7px),
        linear-gradient(160deg, #FFF9EC, #EFE2C4);
    box-shadow: 14px 14px 0 var(--sun); }

/* ---------- Bài viết ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); }
.post-card:hover { color: var(--river); }
.post-img { aspect-ratio: 16/10; background: var(--rice); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 14px 16px 18px; }
.post-body time { font-size: .8rem; color: var(--muted); }
.post-body h3 { font-size: 1.08rem; margin: 4px 0 6px; color: inherit; }
.post-body p { font-size: .9rem; color: var(--muted); margin: 0; }
.article h1 { margin-top: 6px; }
.article-cover { border-radius: var(--radius); margin: 10px 0 20px; width: 100%; }
.prose { font-size: 1.02rem; }
.prose img { border-radius: 10px; margin: 14px 0; height: auto; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 10px; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }

/* ---------- Danh sách / lọc ---------- */
.crumbs { font-size: .87rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--river); }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.list-head h1 { margin: 0; }
.list-head p { margin: 4px 0 0; }
.sort-form label { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
select, input[type=text], input[type=tel], input[type=email], input[type=number], input[type=search], textarea {
    border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--paper); width: 100%; outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--river); }
.sort-form select { width: auto; }
.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 28px 0 8px; }
.pager a, .pager span { min-width: 38px; padding: 7px 12px; border-radius: 9px; background: var(--paper); border: 1px solid var(--line); text-align: center; color: var(--ink); font-size: .93rem; }
.pager .cur { background: var(--river); color: #fff; border-color: var(--river); }
.pager .off { color: #bbb; }
.pager .dots { border: 0; background: none; }

/* ---------- Chi tiết sản phẩm ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; background: var(--paper); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.pd-main { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--rice); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs button { flex: 0 0 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--rice); }
.pd-thumbs button.on { border-color: var(--river); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 8px; }
.pd-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.stars { color: var(--sun); letter-spacing: 1px; }
.stars span { color: var(--muted); letter-spacing: 0; }
.pd-price { display: flex; align-items: baseline; gap: 10px; background: var(--cream); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.pd-price .price { font-size: 1.75rem; }
.pd-price .unit { color: var(--muted); }
.pd-short { color: #4a463e; }
.pd-short p:last-child { margin-bottom: 0; }
.pd-buy { margin: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.variant-label { font-weight: 600; font-size: .93rem; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; background: var(--paper); }
.variant input:checked + span { border-color: var(--river); background: var(--river-soft); color: var(--river); font-weight: 600; }
.variant input:focus-visible + span { outline: 2px solid var(--sun); }
.variant.out span { color: #aaa; text-decoration: line-through; cursor: not-allowed; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); flex-shrink: 0; }
.qty button { width: 38px; border: 0; background: var(--cream); cursor: pointer; font-size: 1.2rem; color: var(--river); }
.qty input { width: 48px; border: 0; text-align: center; border-radius: 0; padding: 8px 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-note { font-size: .85rem; color: var(--muted); margin: 0; min-height: 1em; }
.out-box { background: #FBEAE5; color: #8E2E1B; padding: 14px; border-radius: 10px; font-weight: 500; }
.out-box a { display: block; margin-top: 6px; font-weight: 700; }
.pd-perks { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: .92rem; }
.pd-tabs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 22px; align-items: start; }
.pd-section { background: var(--paper); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); }
.review { border-bottom: 1px solid var(--line); padding: 12px 0; }
.review-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .93rem; }
.review-head time { color: var(--muted); font-size: .8rem; margin-left: auto; }
.review p { margin: 6px 0 0; }
.review-form { margin-top: 16px; }
.review-form summary { cursor: pointer; font-weight: 600; color: var(--river); padding: 8px 0; }
.review-form form { display: grid; gap: 10px; margin-top: 8px; }
.rating-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-pick input { position: absolute; opacity: 0; }
.rating-pick label { font-size: 1.8rem; color: #ddd; cursor: pointer; line-height: 1; }
.rating-pick input:checked ~ label, .rating-pick label:hover, .rating-pick label:hover ~ label { color: var(--sun); }
.form-row { display: grid; gap: 12px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- Giỏ hàng & thanh toán ---------- */
.empty-box { background: var(--paper); padding: 48px 20px; border-radius: 18px; text-align: center; box-shadow: var(--shadow); }
.cart-layout, .checkout { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.cart-lines { background: var(--paper); border-radius: 18px; padding: 8px 20px; box-shadow: var(--shadow); position: relative; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl-img img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; background: var(--rice); }
.cl-name { font-weight: 600; color: var(--ink); }
.cl-variant { font-size: .87rem; color: var(--muted); }
.cl-price { font-size: .9rem; color: var(--muted); }
.cl-warn { color: var(--err); font-size: .85rem; font-weight: 500; }
.cl-qty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cl-total { font-weight: 700; min-width: 96px; text-align: right; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 8px; }
.summary { background: var(--paper); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); position: sticky; top: 130px; }
.summary h2 { font-size: 1.2rem; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 6px; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; background: var(--river-soft); padding: 9px 12px; border-radius: 10px; font-size: .9rem; }
.totals { margin: 14px 0 16px; }
.totals > div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .disc dd { color: var(--ok); }
.totals .grand { border-top: 1.5px solid var(--line); margin-top: 6px; padding-top: 12px; }
.totals .grand dt { color: var(--ink); font-weight: 700; }
.totals .grand dd { color: var(--brick); font-size: 1.35rem; }
.mini-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-lines li { display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.mini-lines img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.mini-lines span { flex: 1; }
.mini-lines small { display: block; color: var(--muted); }
.mini-lines em { color: var(--muted); font-style: normal; }
.checkout-form { display: grid; gap: 16px; }
.checkout-form fieldset { border: 0; margin: 0; background: var(--paper); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.checkout-form legend { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.checkout-form label, .lookup-form label { display: grid; gap: 5px; font-weight: 500; font-size: .92rem; }
.pay-option { display: flex !important; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--river); background: var(--river-soft); }
.pay-option input { margin-top: 4px; accent-color: var(--river); }
.pay-option small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- Đặt hàng thành công / tra cứu ---------- */
.success-box { text-align: center; background: var(--paper); border-radius: 18px; padding: 32px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.order-code { font-size: 1.3rem; color: var(--brick); letter-spacing: .04em; }
.bank-box { background: var(--paper); border: 2px dashed var(--sun); border-radius: 18px; padding: 22px; margin-bottom: 18px; }
.bank-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: center; }
.bank-grid .qr { width: 260px; height: auto; border-radius: 10px; background: #fff; }
.bank-grid dl { margin: 0; }
.bank-grid dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.bank-grid dt { color: var(--muted); }
.bank-grid dd { margin: 0; text-align: right; }
.order-detail { background: var(--paper); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.order-meta p { margin: 4px 0; font-size: .93rem; }
.status-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 16px; }
.step { padding: 5px 11px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: .83rem; font-weight: 500; }
.step.done { background: var(--river); color: #fff; }
.step.cancelled { background: #FBEAE5; color: var(--err); }
.lookup-form { background: var(--paper); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.my-orders { padding-left: 1.2em; }
.my-orders li { margin-bottom: 6px; }
.tag { background: var(--river-soft); color: var(--river); padding: 2px 8px; border-radius: 6px; font-size: .82rem; }

/* ---------- Chân trang ---------- */
.site-footer { background: #22201B; color: #CFC6B3; margin-top: 40px; padding-top: 40px; font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #FFF8E8; margin-bottom: 8px; }
.footer-title { color: var(--sun); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #E9E0CB; display: block; margin-bottom: 6px; }
.site-footer p a { display: inline; }
.site-footer a:hover { color: var(--sun); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.socials a { display: inline-block; border: 1px solid #4A463C; padding: 4px 10px; border-radius: 8px; }
.footer-bottom { border-top: 1px solid #3A372F; margin-top: 30px; padding-top: 16px; padding-bottom: 20px; font-size: .82rem; color: #8F8776; }

.mobile-bar { display: none; }
.float-zalo { position: fixed; right: 18px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #0068FF; color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; box-shadow: 0 6px 18px rgba(0,104,255,.4); z-index: 50; }
.float-zalo:hover { color: #fff; transform: scale(1.05); }

/* ---------- Điện thoại & máy tính bảng ---------- */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .hotline { display: none; }
    .cart-layout, .checkout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .pd-tabs { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    body { font-size: 15px; padding-bottom: 64px; }
    .header-row { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
    .menu-btn { display: block; }
    .brand-text { font-size: 1.12rem; }
    .brand-mark { width: 32px; height: 32px; }
    .header-actions { margin-left: auto; }
    .search { order: 5; flex-basis: 100%; max-width: none; }
    .cat-nav { display: none; }
    .cat-nav.open { display: block; }
    .cat-nav.open .wrap { flex-direction: column; padding: 6px 16px 10px; }
    .cat-nav.open a { border-bottom: 1px solid var(--line); }
    .hero-inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 54px; }
    .hero-art { display: none; }
    .trust { grid-template-columns: 1fr 1fr; margin-top: -22px; gap: 8px; }
    .trust > div { padding: 10px 12px; }
    .cat-grid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; scrollbar-width: none; }
    .cat-grid::-webkit-scrollbar { display: none; }
    .cat-tile { flex: 0 0 118px; padding: 12px 8px; }
    .cat-tile img, .cat-initial { width: 60px; height: 60px; font-size: 1.6rem; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-body { padding: 10px; }
    .card-title { font-size: .9rem; }
    .price { font-size: 1rem; }
    .post-grid { grid-template-columns: 1fr; }
    .story-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; padding-bottom: 36px; }
    .story-strands { height: 120px; }
    .pd { grid-template-columns: 1fr; padding: 14px; gap: 18px; }
    .pd-section { padding: 18px; }
    .form-row.two, .form-row.three { grid-template-columns: 1fr; }
    .cart-lines { padding: 4px 14px; }
    .cart-line { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info total" "img qty qty"; gap: 8px 12px; }
    .cl-img { grid-area: img; } .cl-img img { width: 64px; height: 64px; }
    .cl-info { grid-area: info; } .cl-total { grid-area: total; min-width: 0; align-self: start; }
    .cl-qty { grid-area: qty; flex-direction: row; justify-content: space-between; }
    .bank-grid { grid-template-columns: 1fr; justify-items: center; }
    .bank-grid dl { width: 100%; }
    .footer-cols { grid-template-columns: 1fr; gap: 20px; }
    .float-zalo { display: none; }
    .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--paper); border-top: 1px solid var(--line);
        box-shadow: 0 -4px 16px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); }
    .mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font-size: .72rem; color: var(--ink); position: relative; }
    .mobile-bar svg { width: 22px; height: 22px; color: var(--river); }
    .mobile-bar .cart-count { top: 2px; right: calc(50% - 22px); }
    .zalo-badge { background: #0068FF; color: #fff; font-size: .62rem; font-weight: 700; border-radius: 6px; padding: 3px 5px; line-height: 1; margin: 2px 0 3px; }
}

/* ---------- 1.2.0: thanh trên cùng, nút nổi, chatbot, fanpage ---------- */
.notice-bar { padding: 0; }
.notice-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.notice-text { flex: 1; text-align: left; }
.notice-links { display: flex; gap: 14px; white-space: nowrap; }
.notice-links a { color: #F6EBD3; font-weight: 500; }
.notice-links a:hover { color: var(--sun); }
.notice-hot { color: var(--sun) !important; font-weight: 700 !important; }
.footer-cols { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.fb-embed iframe { display: block; margin-bottom: 8px; }

.float-zalo { display: none !important; }
.fab-stack { position: fixed; right: 18px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: transform .15s; padding: 0; }
.fab:hover { transform: scale(1.06); color: #fff; }
.fab svg { width: 24px; height: 24px; }
.fab-label { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); background: #22201B; color: #fff; font-size: .8rem; font-weight: 600;
    padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; }
.fab-top { width: 42px; height: 42px; background: rgba(42,40,35,.75); }
.fab-top svg { width: 20px; height: 20px; }
.fab-call { background: var(--brick); animation: fab-ring 2.4s infinite; }
.fab-msg { background: #0A7CFF; }
.fab-zalo { background: #0068FF; }
.zalo-text { font-weight: 800; font-size: .82rem; letter-spacing: -.01em; }
.fab-chat { width: 60px; height: 60px; background: var(--river); box-shadow: 0 8px 22px rgba(31,94,85,.45); }
.fab-chat svg { width: 28px; height: 28px; }
.fab-chat .ico-close { display: none; }
.fab-stack.chat-open .fab:not(.fab-chat) { display: none; }
.fab-chat.open .ico-open { display: none; }
.fab-chat.open .ico-close { display: block; }
.fab-chat.open .fab-dot { display: none; }
.fab-dot { position: absolute; top: 4px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--sun); border: 2px solid #fff; }
@keyframes fab-ring { 0%, 100% { box-shadow: 0 6px 16px rgba(0,0,0,.18), 0 0 0 0 rgba(180,67,44,.45); } 50% { box-shadow: 0 6px 16px rgba(0,0,0,.18), 0 0 0 12px rgba(180,67,44,0); } }
@media (prefers-reduced-motion: reduce) { .fab-call { animation: none; } }

.chat { position: fixed; right: 18px; bottom: 96px; z-index: 75; width: 370px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 120px);
    background: var(--paper); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--river); color: #fff; }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head small { display: block; font-size: .74rem; color: #CFE3DE; line-height: 1.3; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: var(--cream);
    background-image: repeating-linear-gradient(180deg, transparent 0 6px, rgba(31,94,85,.25) 6px 8px); box-shadow: inset 0 0 0 3px var(--sun); }
.chat-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; background: var(--cream); display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.45; white-space: pre-line; word-wrap: break-word; }
.msg a { color: inherit; text-decoration: underline; }
.msg-bot { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.msg-me { align-self: flex-end; background: var(--river); color: #fff; border-bottom-right-radius: 4px; }
.msg-typing { display: inline-flex; gap: 4px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: #B9B1A2; animation: chat-dot 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; } .msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chat-products { align-self: stretch; display: grid; gap: 6px; }
.chat-product { display: flex; gap: 10px; align-items: center; background: var(--paper); border-radius: 12px; padding: 7px; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chat-product:hover { color: var(--river); }
.chat-product img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--rice); flex-shrink: 0; }
.chat-product strong { display: block; font-size: .86rem; line-height: 1.3; }
.chat-product span { color: var(--brick); font-weight: 700; font-size: .86rem; }
.chat-product em { color: var(--muted); font-style: normal; font-size: .78rem; margin-left: 6px; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-actions a { background: var(--river-soft); color: var(--river); font-weight: 600; font-size: .84rem; padding: 6px 11px; border-radius: 999px; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: var(--cream); border-top: 1px solid var(--line); scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex-shrink: 0; border: 1.5px solid var(--river); background: var(--paper); color: var(--river); border-radius: 999px; padding: 5px 11px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.chat-quick button:hover { background: var(--river); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border-radius: 999px; padding: 9px 14px; }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brick); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-form button:disabled { opacity: .5; }
.chat-foot { display: flex; justify-content: center; gap: 14px; padding: 0 12px 10px; font-size: .78rem; }
.chat-foot a { color: var(--muted); }

@media (max-width: 760px) {
    .notice-links { display: none; }
    .notice-text { text-align: center; }
    .fab-stack { right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); gap: 8px; }
    .hide-mobile { display: none !important; }
    .fab-label { display: none; }
    .fab { width: 46px; height: 46px; }
    .fab-chat { width: 54px; height: 54px; }
    .chat { right: 0; left: 0; bottom: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; z-index: 90; }
    .chat-form input { font-size: 16px; } /* tránh iPhone tự phóng to */
}

/* =====================================================================
   1.4.0: Giao diện ngày lễ
   ===================================================================== */
.preview-bar { background: #22201B; color: #fff; text-align: center; font-size: .85rem; padding: 6px 12px; position: relative; z-index: 80; }
.preview-bar a { color: var(--sun); font-weight: 700; margin-left: 8px; }
.holiday-ribbon { background: var(--brick); color: #fff; text-align: center; font-weight: 600; font-size: .9rem; padding: 7px 0;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 12px, transparent 12px 24px); }
.hero-art .deco { display: none; position: absolute; z-index: 2; }

/* Hạt rơi (tuyết, hoa mai, cánh hoa, sao) */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 65; overflow: hidden; }
.fx { position: absolute; top: -40px; will-change: transform; animation: fx-fall linear infinite; user-select: none; line-height: 1; }
@keyframes fx-fall {
    0% { transform: translate3d(0, -40px, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate3d(var(--drift, 40px), 105vh, 0) rotate(var(--spin, 360deg)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fx-layer { display: none; } }

/* ---------- Giáng sinh ---------- */
body.theme-noel { --river: #1E5B3A; --river-dark: #14402A; --river-soft: #E1F0E6; --brick: #C0392B; --brick-dark: #992D22; --sun: #F4D35E; --cream: #FBF7F2; }
.theme-noel .site-header { border-bottom: 0; }
.theme-noel .site-header::after { content: ''; display: block; height: 10px;
    background: radial-gradient(circle at 10px 4px, #F4D35E 3px, transparent 4px) 0 0 / 40px 10px,
                radial-gradient(circle at 30px 6px, #E74C3C 3px, transparent 4px) 0 0 / 40px 10px,
                linear-gradient(#14402A, #14402A) 0 2px / 100% 1px no-repeat;
    background-color: var(--paper); }
.theme-noel .hero { background: linear-gradient(180deg, #14402A, #1E5B3A); }
.theme-noel .hero-art .sun { background: #FFF8E1; box-shadow: 0 0 40px rgba(255,248,225,.6); }
.theme-noel .hero-art .deco { display: block; width: 34px; height: 34px; border-radius: 50%; top: 40px; }
.theme-noel .hero-art .deco::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 60px; background: rgba(255,255,255,.5); }
.theme-noel .hero-art .deco::after { content: ''; position: absolute; left: 50%; top: -6px; width: 12px; height: 8px; margin-left: -6px; background: #C9A46A; border-radius: 2px; }
.theme-noel .deco-1 { left: 8%; background: radial-gradient(circle at 35% 35%, #FF8A80, #C0392B); }
.theme-noel .deco-2 { left: 30%; top: 70px !important; background: radial-gradient(circle at 35% 35%, #FFF3B0, #E0B22F); }
.theme-noel .deco-3 { left: 54%; top: 30px !important; background: radial-gradient(circle at 35% 35%, #FFFFFF, #C9D6DF); }
.theme-noel .fx { color: #fff; text-shadow: 0 0 4px rgba(120,150,170,.8); }

/* ---------- Tết ---------- */
body.theme-tet { --river: #A61B1B; --river-dark: #7E1212; --river-soft: #FBE3D9; --brick: #D62828; --brick-dark: #A61B1B; --sun: #F6C445; --cream: #FFF6E5; }
.theme-tet .hero { background: radial-gradient(circle at 80% 30%, #C62828, #8E1414 70%); }
.theme-tet .hero h1 em { color: #FFD966; }
.theme-tet .hero-art .deco { display: block; width: 46px; height: 58px; top: 10px; border-radius: 45% 45% 40% 40%;
    background: radial-gradient(circle at 50% 40%, #FF5A4E, #C1121F 70%); box-shadow: 0 0 22px rgba(255,90,78,.5); }
.theme-tet .hero-art .deco::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 50px; margin-left: -1px; background: #F6C445; }
.theme-tet .hero-art .deco::after { content: ''; position: absolute; left: 50%; top: 100%; width: 6px; height: 22px; margin-left: -3px;
    background: repeating-linear-gradient(90deg, #F6C445 0 1px, transparent 1px 2px); }
.theme-tet .deco-1 { left: 4%; }
.theme-tet .deco-2 { left: 28%; top: 40px !important; transform: scale(.8); }
.theme-tet .deco-3 { right: 0; left: auto; top: 120px !important; transform: scale(.7); }
.theme-tet .rack span { border-top-color: #F6C445; }
.theme-tet .fx { color: #F6C445; text-shadow: 0 0 3px rgba(190,120,0,.6); }
.theme-tet .section-head h2::before { background: var(--sun); }
.theme-tet .card .badge-off { background: #D62828; }

/* ---------- Trung Thu ---------- */
body.theme-trungthu { --river: #2B2D5C; --river-dark: #1D1F44; --river-soft: #E7E8F5; --brick: #E2711D; --brick-dark: #B8560F; --sun: #F9C74F; --cream: #FBF6EC; }
.theme-trungthu .hero { background:
        radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 15%, #fff, transparent),
        radial-gradient(1px 1px at 80% 50%, #fff, transparent), radial-gradient(1px 1px at 40% 70%, #fff, transparent),
        linear-gradient(180deg, #1D1F44, #2B2D5C); }
.theme-trungthu .hero-art .sun { width: 130px; height: 130px; top: -10px; background: radial-gradient(circle at 40% 40%, #FFF8D6, #F9D77E); box-shadow: 0 0 60px rgba(249,215,126,.6); }
.theme-trungthu .hero-art .deco { display: block; width: 40px; height: 50px; top: 30px; border-radius: 40%;
    background: radial-gradient(circle at 50% 45%, #FFB25B, #E2711D 70%); box-shadow: 0 0 26px rgba(255,160,60,.6); }
.theme-trungthu .hero-art .deco::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 60px; background: rgba(255,255,255,.35); }
.theme-trungthu .deco-1 { left: 6%; }
.theme-trungthu .deco-2 { left: 36%; top: 80px !important; transform: scale(.75); }
.theme-trungthu .deco-3 { left: 20%; top: 150px !important; transform: scale(.6); }

/* ---------- Ngày Phụ nữ ---------- */
body.theme-phunu { --river: #9D2C5B; --river-dark: #7A1F46; --river-soft: #FBE6EF; --brick: #D64578; --brick-dark: #B12F5F; --sun: #F7B2BD; --cream: #FFF5F7; }
.theme-phunu .hero { background: linear-gradient(135deg, #7A1F46, #B23A6F); }
.theme-phunu .hero h1 em { color: #FFD1DC; }
.theme-phunu .btn-sun { background: #FFD1DC; color: #6B1538; }
.theme-phunu .hero-art .sun { background: #FFD1DC; }
.theme-phunu .fx { color: #FF9EB5; }

/* ---------- Lễ 30/4, 2/9 ---------- */
body.theme-le { --river: #B71C1C; --river-dark: #8E1212; --river-soft: #FDE4E1; --brick: #D32F2F; --brick-dark: #A51F1F; --sun: #FFD600; --cream: #FFF8F0; }
.theme-le .hero { background: linear-gradient(135deg, #8E1212, #C62828); }
.theme-le .hero h1 em { color: #FFD600; }
.theme-le .hero-art .sun { display: none; }
.theme-le .hero-art .deco { display: block; background: #FFD600; top: 0;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.theme-le .deco-1 { width: 110px; height: 110px; right: 6%; left: auto; }
.theme-le .deco-2 { width: 40px; height: 40px; left: 10%; top: 30px !important; }
.theme-le .deco-3 { width: 28px; height: 28px; left: 34%; top: 0 !important; }
.theme-le .fx { color: #FFD600; }

@media (max-width: 760px) {
    .holiday-ribbon { font-size: .8rem; padding: 6px 10px; }
}

/* =====================================================================
   1.5.0: Flash sale & popup
   ===================================================================== */
.nav-flash { color: var(--brick) !important; font-weight: 700 !important; }
.badge-flash { position: absolute; top: 10px; right: 10px; background: #FFD23F; color: #6B2A00; font-weight: 800; font-size: .75rem; padding: 3px 8px; border-radius: 6px; }
.flash-box { background: linear-gradient(135deg, var(--brick), var(--brick-dark)); border-radius: 18px; padding: 18px; color: #fff; margin-bottom: 20px; box-shadow: var(--shadow); }
.flash-box.upcoming { background: linear-gradient(135deg, var(--river), var(--river-dark)); }
.flash-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.flash-head h2 { color: #fff; margin: 0; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.flash-head p { margin: 2px 0 0; color: rgba(255,255,255,.85); font-size: .9rem; }
.flash-head .bolt { display: inline-block; animation: bolt 1.2s infinite; }
@keyframes bolt { 50% { transform: scale(1.25); } }
.flash-clock { margin-left: auto; text-align: right; }
.flash-clock small { display: block; font-size: .78rem; color: rgba(255,255,255,.85); }
.flash-all { color: #fff; font-weight: 700; white-space: nowrap; }
.flash-all:hover { color: #FFD23F; }
.countdown { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown i { font-style: normal; background: #22201B; color: #fff; border-radius: 6px; padding: 3px 7px; min-width: 32px; text-align: center; font-size: 1.05rem; }
.countdown u { text-decoration: none; font-size: .78rem; margin: 0 6px 0 2px; }
.flash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flash-card { background: var(--paper); border-radius: 14px; overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.flash-card:hover { color: var(--brick); transform: translateY(-2px); }
.flash-card.sold-out { opacity: .6; }
.flash-card .card-img { aspect-ratio: 1; position: relative; background: var(--rice); }
.flash-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.flash-bar { position: relative; height: 20px; border-radius: 999px; background: #FDE2D8; overflow: hidden; margin-top: 4px; }
.flash-bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #FF8A3D, var(--brick)); border-radius: 999px; }
.flash-bar em { position: relative; display: block; text-align: center; font-style: normal; font-size: .72rem; font-weight: 700; line-height: 20px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.pd-flash { background: linear-gradient(135deg, var(--brick), var(--brick-dark)); color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; display: grid; gap: 6px; }
.pd-flash-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-flash-top strong { letter-spacing: .06em; }
.pd-flash small { color: rgba(255,255,255,.9); }
.pd-flash .countdown i { font-size: .9rem; padding: 2px 6px; min-width: 26px; }
.cl-flash { color: var(--brick); font-size: .82rem; font-weight: 600; }

.promo { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; }
.promo[hidden] { display: none; }
.promo-backdrop { position: absolute; inset: 0; background: rgba(20,18,14,.55); animation: promo-fade .2s ease; }
.promo-box { position: relative; background: var(--paper); border-radius: 18px; width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: promo-in .25s ease; }
.promo-box img { width: 100%; display: block; }
.promo-body { padding: 18px 20px 20px; text-align: center; }
.promo-body h2 { margin-bottom: 6px; }
.promo-body p { color: var(--muted); }
.promo-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; }
.promo-code { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px dashed var(--brick); border-radius: 10px; padding: 8px 10px 8px 14px; margin: 0 0 14px; }
.promo-code strong { color: var(--brick); letter-spacing: .06em; }
.promo-code button { border: 0; background: var(--brick); color: #fff; font-weight: 700; border-radius: 8px; padding: 7px 12px; cursor: pointer; }
html.promo-open { overflow: hidden; }
@keyframes promo-fade { from { opacity: 0; } }
@keyframes promo-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

@media (max-width: 1024px) { .flash-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
    .flash-box { padding: 14px 12px; border-radius: 14px; }
    .flash-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; }
    .flash-grid::-webkit-scrollbar { display: none; }
    .flash-card { flex: 0 0 44%; scroll-snap-align: start; }
    .flash-clock { margin-left: 0; text-align: left; }
    .flash-all { margin-left: auto; }
    .countdown i { font-size: .95rem; min-width: 28px; padding: 2px 6px; }
}

/* Nội dung từ bộ soạn thảo */
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose img.ql-align-center, .prose p.ql-align-center img { margin-left: auto; margin-right: auto; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--sun); background: var(--cream); border-radius: 0 10px 10px 0; }
.prose iframe.ql-video { display: block; width: 100%; aspect-ratio: 16/9; height: auto; margin: 14px 0; }

/* Thông tin pháp lý ở chân trang */
.footer-legal { display: flex; gap: 20px; align-items: center; justify-content: space-between; border-top: 1px solid #3A372F; margin-top: 26px; padding-top: 16px; font-size: .82rem; color: #A89F8C; line-height: 1.6; }
.footer-legal span { display: inline; }
.footer-legal span + span::before { content: " · "; }
.site-footer .bct-logo { display: block; flex: 0 0 auto; margin: 0; }
.bct-logo img { display: block; height: 52px; width: auto; }
.footer-legal + .footer-bottom { margin-top: 16px; }
@media (max-width: 640px) { .footer-legal { flex-direction: column; align-items: flex-start; } }
