/* ==========================================================================
   Bed — LAYOUT: header, mega menu, drawer (menu / tìm kiếm), footer, widget nổi
   Nguồn: reference/css-js/header.css, custom.css (footer, btn-live), addthis-sharing.css, sales-pop.css (1rem của mẫu = 10px)
   Đã đối chiếu số đo thật với https://ega-bed.mysapo.net ở 1440 / 1270 / 1024 / 768 / 375.
   Quy ước: mọi selector có tiền tố vùng (.bed-hdr / .bed-drawer / .bed-footer …) → đặc hiệu ≥ (0,2,0) để thắng reset của Flatsome
   (a:hover, button, input, ul, li, label …) mà không cần !important.
   ========================================================================== */

/* ---------- Nền chữ chung của các vùng (mẫu: body 16px / 1.4286 / -0.004em) ---------- */
.bed-hdr, .bed-drawer, .bed-float, .bed-footer, .bed-mbar, .bed-salespop {
	font-family: var(--bed-font-body); font-size: 16px; font-weight: 400; line-height: 1.4286; letter-spacing: -0.004em;
	text-transform: none; text-align: left; color: var(--bed-fg); -webkit-font-smoothing: antialiased;
}

/* ---------- Reset thẻ gốc mà Flatsome gán style toàn cục ----------
   Lưu ý: Customizer của Flatsome in inline `button:not(.icon){border-radius:999px!important}` → nút nào không phải tròn/viên thuốc phải đặt radius kèm !important. */
.bed-hdr button, .bed-drawer button, .bed-float button, .bed-footer button, .bed-mbar button, .bed-salespop button {
	margin: 0; padding: 0; min-height: 0; max-width: none; border: 0; border-radius: 0;
	background: none; box-shadow: none; text-shadow: none; text-transform: none; letter-spacing: inherit;
	font: inherit; line-height: inherit; color: inherit; text-align: inherit; cursor: pointer;
}
.bed-hdr button:hover, .bed-drawer button:hover, .bed-float button:hover, .bed-footer button:hover, .bed-mbar button:hover, .bed-salespop button:hover { box-shadow: none; opacity: 1; }
/* ul / li / p / img / svg / input / h2: dùng :where() (đặc hiệu 0) để class của từng thành phần (padding, margin…) thắng được */
:where(.bed-hdr, .bed-drawer, .bed-float, .bed-mbar, .bed-salespop) ul { list-style: none; margin: 0; padding: 0; }
:where(.bed-hdr, .bed-drawer, .bed-float, .bed-mbar, .bed-salespop, .bed-footer) ul ul { margin: 0; }
:where(.bed-hdr, .bed-drawer, .bed-float, .bed-mbar, .bed-salespop, .bed-footer) li { margin: 0; padding: 0; list-style: none; }
:where(.bed-hdr, .bed-drawer, .bed-float, .bed-footer, .bed-mbar, .bed-salespop) :is(p, h2, h3) { margin: 0; text-transform: none; letter-spacing: inherit; }
:where(.bed-hdr, .bed-drawer, .bed-float, .bed-footer, .bed-mbar, .bed-salespop) img { max-width: 100%; height: auto; }
:where(.bed-hdr, .bed-drawer, .bed-footer, .bed-float, .bed-mbar) svg { display: block; fill: currentColor; }
:where(.bed-hdr, .bed-drawer, .bed-footer) :is(input, select) { margin: 0; box-shadow: none; }
.bed-hdr a, .bed-drawer a, .bed-float a, .bed-footer a, .bed-mbar a, .bed-salespop a,
.bed-hdr a:hover, .bed-drawer a:hover, .bed-float a:hover, .bed-footer a:hover, .bed-mbar a:hover, .bed-salespop a:hover { color: inherit; text-decoration: none; }
.bed-hdr i, .bed-drawer i, .bed-footer i, .bed-float i { font-style: normal; }

body.bed-lock { overflow: hidden; }
html { scroll-padding-top: 90px; }

/* thanh cuộn mảnh 8px của mẫu (global.css, ≥768) — quyết định bề rộng nội dung: 1440 − 8 = 1432 */
@media (min-width: 768px) {
	*::-webkit-scrollbar { width: 8px; height: 3px; background-color: #fff; }
	*::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, .2); border-radius: 100px; }
	*::-webkit-scrollbar-track-piece { margin-top: 0; background-color: #fff; }
}

.link-underline {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0% 100%;
	background-repeat: no-repeat;
	background-size: 0% 1px;
	transition: background-size .4s ease, color .4s ease, width .4s ease;
}
.link-underline:hover { background-size: 100% 1px; }

/* ==========================================================================
   LOGO CHỮ (khi chưa chọn ảnh logo) — cỡ khớp ảnh logo của mẫu (160×38 desktop, 150×36 mobile)
   ========================================================================== */
.bed-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--bed-primary); line-height: 1; vertical-align: middle; }
.bed-logo__mark { flex: none; display: block; }
.bed-logo__word { font-family: var(--bed-font-heading); font-size: 28.4px; letter-spacing: -.01em; white-space: nowrap; line-height: 1; }
.bed-logo__name { font-weight: 700; }
.bed-logo__sub { font-weight: 500; }
.bed-logo--light { color: #fff; }
.bed-logo--img { display: block; width: auto; height: auto; max-height: 46px; max-width: 200px; object-fit: contain; }
@media (max-width: 767px) {
	.bed-logo__word { font-size: 26px; }
	.bed-logo__mark { width: 36px; height: 36px; }
	.bed-logo--img { max-width: 186px; max-height: 42px; }
}

/* ==========================================================================
   HEADER — cao tối thiểu 70 (68 mobile), đệm 8px, sticky + đổ bóng khi cuộn
   ========================================================================== */
#header.bed-header {
	position: sticky; top: 0; z-index: 2000; width: 100%; overflow-x: clip;
	background: #fff; color: var(--bed-fg);
	transition: box-shadow .3s ease;
}
#header.bed-header.is-stuck { box-shadow: 0 -11px 20px 3px rgba(0, 0, 0, .2); }
#header.bed-header .header-wrapper { position: static; z-index: auto; background: transparent; box-shadow: none; }
body.admin-bar #header.bed-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #header.bed-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar #header.bed-header { top: 0; } }

.bed-hdr { display: flex; align-items: center; justify-content: center; min-height: 70px; padding: 8px 0; box-sizing: border-box; }
@media (max-width: 767px) { .bed-hdr { min-height: 68px; } }
.bed-hdr__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
@media (min-width: 1024px) {
	.bed-hdr__inner { display: grid; grid-template-columns: auto 60% auto; gap: 8px; justify-content: space-between; }
}

.bed-hdr__left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bed-hdr__logo { display: block; margin: 0 auto; max-width: 150px; color: var(--bed-primary); }
@media (min-width: 768px) { .bed-hdr__logo { max-width: 160px; } }

/* hamburger (mobile) — 36×36, ba vạch 12/20/8px, cách 4px */
.bed-hdr .bed-hamburger { display: inline-flex; margin-top: 4px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; width: 36px; height: 36px; padding: 0; transition: transform .15s cubic-bezier(.4, 0, .2, 1); }
.bed-hamburger span { display: block; height: 2px; background: currentColor; }
.bed-hamburger span:nth-child(1) { width: 12px; }
.bed-hamburger span:nth-child(2) { width: 20px; }
.bed-hamburger span:nth-child(3) { width: 8px; }
.bed-hdr .bed-hamburger:active { transform: scale(.95); }
@media (min-width: 1024px) { .bed-hdr .bed-hamburger { display: none; } }

/* ----- menu ngang: cột 60%, có hai nút cuộn khi tràn ----- */
.bed-hdr__nav { display: none; min-width: 0; max-width: 100%; margin: 0 auto; }
@media (min-width: 1024px) { .bed-hdr__nav { display: block; } }
.bed-nav__pad { margin: 0 auto; padding: 0 20px; }
/* khi tràn: cột menu co lại đúng bằng (khung − 70px + bề rộng 2 nút) như mẫu → 2 lề auto 9px mỗi bên */
.bed-hdr__nav.is-overflow { width: calc(100% - 18px); }
.bed-nav__box { display: flex; align-items: center; justify-content: space-between; }
.bed-nav__wrap { min-width: 0; flex: 0 1 auto; margin: 0 auto; overflow: hidden; }
.bed-nav__wrap.is-overflow { max-width: calc(100% - 70px); flex: 1 1 auto; overflow: clip visible; }
.bed-nav__nav { transition: margin-left .3s ease; }
.bed-nav { display: flex; width: max-content; }
.bed-hdr .bed-nav__item { display: block; flex: 0 0 auto; padding: 14px; }
.bed-hdr .bed-nav__link { display: flex; align-items: center; gap: 8px; padding: 0 0 3px; font-size: 16px; font-weight: 600; line-height: 24px; color: var(--bed-fg); white-space: nowrap; }
.bed-nav__link > span { display: block; }
.bed-nav__caret { display: block; flex: none; line-height: 1; }
.bed-nav__caret svg { width: 16px; height: 16px; }

.bed-nav__arrows { display: none; align-items: center; line-height: 1; }
.bed-hdr__nav.is-overflow .bed-nav__arrows { display: flex; }
.bed-hdr .bed-nav__arrow { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 44px; padding: 0; border-radius: 9999px; color: var(--bed-fg); transition: color .2s ease; }
.bed-hdr .bed-nav__arrow:hover { color: var(--bed-link); }
.bed-nav__arrow svg { width: 16px; height: 16px; }

/* ----- panel xổ xuống chung: ẩn bằng opacity+visibility, mở với trễ .1s (đủ để rê chuột chéo không mất) ----- */
.bed-hdr .bed-sub {
	position: absolute; top: 100%; z-index: 1;
	background: #fff; color: var(--bed-fg);
	box-shadow: 0 12px 24px 0 rgba(0, 0, 0, .1);
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: all .3s ease-out .1s;
}
/* cầu nối trong suốt phủ khe 8px giữa mục menu và panel → rê chuột xuống không bị tắt */
.bed-hdr .bed-sub::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
/* Mở/đóng do JS điều khiển (class .is-open, có độ trễ khi đóng → rê chuột chậm/chéo không bị mất panel).
   Không có JS (html.no-js) thì quay về :hover. */
html.no-js .bed-hdr .bed-nav__item:hover > .bed-sub,
.bed-hdr .bed-nav__item:focus-within > .bed-sub,
.bed-hdr .bed-nav__item.is-open > .bed-sub,
.bed-hdr .bed-nav__item.is-hover > .bed-sub { opacity: 1; visibility: visible; pointer-events: auto; z-index: 900; }
.bed-hdr .bed-nav__item.is-dismissed > .bed-sub,
.bed-hdr .bed-nav__item.is-dismissed:focus-within > .bed-sub { opacity: 0; visibility: hidden; pointer-events: none; }
/* panel đã mở thì đóng ngay không trễ 0.1s của transition mở */
.bed-hdr .bed-nav__item:not(.is-open):not(.is-hover) > .bed-sub { transition-delay: 0s; }

/* mega menu: padding 0 12px (như mẫu) + container; cột chia đều + khối phải 1/3 */
.bed-hdr .bed-mega { left: 0; width: 100%; padding: 0 12px; box-sizing: border-box; overflow: auto; max-height: calc(100vh - 80px); }
.bed-mega__inner { display: flex; gap: 12px; align-items: stretch; }
.bed-mega__cols { flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; padding: 32px 0; max-height: min(400px, calc(100vh - 160px)); overflow: hidden auto; align-content: start; background: #fff; }
.bed-mega__col { margin: 0; }
.bed-mega__title { display: block; font-weight: 600; }
.bed-mega__title a { padding: 0; }
.bed-hdr .bed-mega__col > ul { margin: 16px 0 0; }
.bed-hdr .bed-mega__link { display: list-item; }
.bed-hdr .bed-mega__link + .bed-mega__link { margin-top: 12px; }
.bed-mega__link a { padding: 0 0 3px; }
.bed-mega--banner .bed-mega__banner,
.bed-mega--products .bed-mega__products { flex: 0 1 auto; width: 33.3333%; padding: 20px 0; box-sizing: border-box; min-width: 0; }
.bed-mega__banner img { display: block; width: 100%; height: auto; border-radius: 0; }
.bed-mega__banner a { display: block; }

/* khối sản phẩm trong mega menu: heading Lora 20/24 + slider ngang (mỗi trang 2 thẻ xếp dọc) */
.bed-mega__head { padding: 0 16px; }
.bed-hdr .bed-mega__head a, .bed-drawer .bed-mega__head a { font-family: var(--bed-font-heading); font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: normal; color: var(--bed-fg); }
.bed-hdr .bed-mega__head a:hover, .bed-drawer .bed-mega__head a:hover { color: var(--bed-link); }
.bed-mega__head { margin: 0 0 32px; line-height: 24px; }
.bed-mslider__viewport { overflow: clip visible; }
.bed-mslider__track { display: flex; transition: transform .4s ease; will-change: transform; }
.bed-mslider__slide { flex: 0 0 100%; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 0 16px; box-sizing: border-box; }
.bed-mslider__nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.bed-hdr .bed-mslider__btn, .bed-drawer .bed-mslider__btn { display: flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bed-n50); color: var(--bed-fg); transition: background .2s ease, opacity .2s ease-out; }
.bed-hdr .bed-mslider__btn:hover, .bed-drawer .bed-mslider__btn:hover { background: var(--bed-n100); }
.bed-hdr .bed-mslider__btn:disabled, .bed-drawer .bed-mslider__btn:disabled { opacity: .35; cursor: not-allowed; }
.bed-mslider__btn svg { width: 16px; height: 16px; }
.bed-mslider__dots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.bed-mslider__dots i { display: block; width: 16px; height: 4px; border-radius: 4px; background: #909090; cursor: pointer; }
.bed-mslider__dots i.is-active { background: var(--bed-primary); }

/* thẻ sản phẩm ngang (mega menu): lưới 90px + chữ, đệm 12, viền 1px n50, bo 12 */
.bed-hdr .bed-mcard { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--bed-n50); border-radius: 12px; overflow: hidden; color: var(--bed-fg); transition: box-shadow .2s ease, border-color .2s ease; }
.bed-hdr .bed-mcard:hover, .bed-drawer .bed-mcard:hover { border-color: var(--bed-n100); }
.bed-drawer .bed-mcard { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--bed-n50); border-radius: 12px; overflow: hidden; color: var(--bed-fg); transition: box-shadow .2s ease, border-color .2s ease; }
.bed-mcard__media { position: relative; display: block; width: 90px; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--bed-n50); }
.bed-mcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 8px; }
.bed-mcard__media .bed-badge { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 10px; line-height: 1; font-weight: 600; padding: 4px 6px; }
.bed-mcard__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px 0; }
.bed-mcard__title { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; line-height: 1.4; overflow: hidden; }
.bed-mcard__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.bed-mcard__body .bed-price { font-size: 15px; font-weight: 600; line-height: 1.4286; }
.bed-mcard__body .bed-price-compare { font-size: 12px; line-height: 1.4286; }

/* dropdown thường (menu 2 cấp, vd. Thương hiệu): rộng 240, đệm 8px 0, mỗi hàng 8px 16px */
.bed-hdr .bed-drop { left: var(--bed-sub-left, auto); width: 240px; padding: 8px 0; max-height: min(400px, calc(100vh - 160px)); }
.bed-drop__list { margin: 0; }
.bed-drop__item { position: relative; }
.bed-hdr .bed-drop__item > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; font-weight: 500; font-size: 16px; line-height: 22.857px; }
.bed-drop__item > a > span { padding-bottom: 3px; background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: background-size .3s ease; }
.bed-drop__item > a:hover > span { background-size: 100% 1px; }
.bed-drop__item > a.link-underline { background-image: none; } /* chỉ gạch chân phần chữ (span) — tránh 2 gạch (cả hàng + chữ) */
.bed-drop__item > a > i { display: inline-flex; flex: none; }
.bed-drop__item > a > i svg { width: 12px; height: 12px; }
.bed-hdr .bed-drop__fly { position: absolute; left: 100%; top: 0; width: 240px; padding: 8px 0; background: #fff; box-shadow: 0 12px 24px 0 rgba(0, 0, 0, .1); opacity: 0; visibility: hidden; z-index: 1; transition: all .3s ease-out .1s; }
.bed-hdr .bed-drop__item.has-sub:hover > .bed-drop__fly { opacity: 1; visibility: visible; }

/* ----- icon bên phải: 36×36, tròn, icon 20 (giỏ 24), phóng 1.1 khi hover ----- */
.bed-hdr__right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
@media (min-width: 1270px) { .bed-hdr__right { gap: 16px; } }
.bed-hdr .bed-hdr__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 9999px; color: var(--bed-fg); transition: transform .15s cubic-bezier(.4, 0, .2, 1); }
.bed-hdr .bed-hdr__icon:hover { transform: scale(1.1); }
.bed-hdr .bed-hdr__icon:active { transform: scale(.95); }
.bed-hdr .bed-hdr__icon svg { width: 20px; height: 20px; }
.bed-hdr .bed-hdr__cart svg { width: 24px; height: 24px; }
.bed-hdr .bed-hdr__user { display: none; }
@media (min-width: 768px) { .bed-hdr .bed-hdr__user { display: flex; } }
.bed-hdr .bed-cart-count, .bed-cart-count {
	position: absolute; right: 4px; top: 2px; z-index: 1;
	display: flex; align-items: center; justify-content: center;
	min-width: 14px; height: 14px; padding: 0 2px; box-sizing: border-box;
	border-radius: 9999px; background: #EE1926; color: #fff;
	font-size: 8px; font-weight: 600; line-height: 1; font-style: normal; letter-spacing: 0;
}

/* nút LIVE: viền + chấm đỏ nhấp nháy (mẫu: .btn-live) */
.bed-hdr .bed-live, .bed-float .bed-live {
	display: inline-block; position: relative; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
	padding: 4px 10px 4px 22px; border: 1px solid var(--bed-live-color, #f00); border-radius: 9999px;
	font-size: 13px; line-height: 1.4286; font-weight: 400; color: var(--bed-live-color, #f00); background: transparent;
	transition: transform .15s cubic-bezier(.4, 0, .2, 1);
}
.bed-live::after {
	content: ''; position: absolute; left: 7px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%;
	background: var(--bed-live-color, #f00); animation: bedPulseLive 1.65s linear infinite;
}
.bed-hdr .bed-live:hover, .bed-float .bed-live:hover { transform: scale(1.05); color: var(--bed-live-color, #f00); }
.bed-hdr__right .bed-live { display: none; margin-right: 4px; }
@media (min-width: 768px) { .bed-hdr__right .bed-live { display: inline-block; } }
@media (min-width: 1024px) { .bed-hdr__right .bed-live { margin-right: 0; } }
@media (max-width: 991px) {
	.bed-hdr .bed-live { padding: 2px 5px 0 20px; }
	.bed-live::after { left: 6px; }
}
@keyframes bedPulseLive {
	0% { transform: scale(.8); box-shadow: 0 0 0 0 var(--bed-live-color, #f00); }
	70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 82, 82, 0); }
	100% { transform: scale(.8); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

/* ==========================================================================
   DRAWER (khung chung: menu trái / tìm kiếm phải / giỏ hàng — D1 dùng lại các class này)
   ========================================================================== */
.bed-drawer { position: fixed; inset: 0; z-index: 3000; visibility: hidden; pointer-events: none; transition: visibility 0s linear .4s; }
.bed-drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.bed-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s ease; }
.bed-drawer.is-open .bed-drawer__overlay { opacity: 1; }
.bed-drawer__panel {
	position: absolute; top: 0; bottom: 0; width: 100%; max-width: 400px;
	display: flex; flex-direction: column; background: #fff; color: var(--bed-fg);
	transition: transform .3s ease; will-change: transform;
}
.bed-drawer--left .bed-drawer__panel { left: 0; transform: translateX(-100%); }
.bed-drawer--right .bed-drawer__panel { right: 0; max-width: 520px; transform: translateX(100%); }
.bed-drawer.is-open .bed-drawer__panel { transform: none; }
#bed-menu-drawer .bed-drawer__panel, #bed-search-drawer .bed-drawer__panel { opacity: 0; transition: transform .4s cubic-bezier(.25, .46, .45, .94), opacity .3s ease; }
#bed-menu-drawer.is-open .bed-drawer__panel, #bed-search-drawer.is-open .bed-drawer__panel { opacity: 1; }
#bed-menu-drawer .bed-drawer__panel { transition-timing-function: cubic-bezier(.39, .575, .565, 1), ease; }

.bed-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--bed-n50); }
.bed-drawer__account { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 4px; transition: background .15s cubic-bezier(.4, 0, .2, 1), transform .15s cubic-bezier(.4, 0, .2, 1); min-width: 0; }
.bed-drawer__account:hover { background: var(--bed-n50); }
.bed-drawer__account:active { transform: scale(.95); }
.bed-drawer__avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border: 1px solid var(--bed-n50); border-radius: 4px; flex: none; }
.bed-drawer__avatar svg { width: 20px; height: 20px; }
.bed-drawer__account small { display: block; font-size: 12px; line-height: 16px; }
.bed-drawer__account strong { display: block; font-weight: 600; font-size: 16px; line-height: 22.857px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bed-drawer .bed-drawer__close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--bed-n50); border-radius: 50%; color: var(--bed-n200); transition: transform .15s, background .2s; flex: none; }
.bed-drawer .bed-drawer__close:hover { background: var(--bed-n50); }
.bed-drawer .bed-drawer__close:active { transform: scale(.95); }
.bed-drawer__close svg { width: 16px; height: 16px; }
.bed-drawer__body { position: static; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.bed-drawer__foot { display: flex; border-top: 1px solid var(--bed-n50); }
.bed-drawer__foot:empty { display: none; }
.bed-drawer .bed-drawer__foot a { display: flex; align-items: center; gap: 8px; width: 50%; padding: 16px 8px; font-size: 12px; line-height: 16px; transition: background .15s cubic-bezier(.4, 0, .2, 1); box-sizing: border-box; }
.bed-drawer .bed-drawer__foot a:hover { background: var(--bed-n50); }
.bed-drawer__foot b { font-weight: 700; }

/* ----- menu dọc (mobile): mỗi mục đệm ngang 24, link py-3, chữ đậm 16 ----- */
.bed-dnav { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.bed-dnav::-webkit-scrollbar { display: none; }
.bed-drawer .bed-dnav__item { margin: -1px 0 0; padding: 0 24px; transition: background .2s ease; }
.bed-drawer .bed-dnav__item:hover { background: var(--bed-n50); }
.bed-drawer .bed-dnav__link { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-weight: 600; font-size: 16px; line-height: 22.857px; color: var(--bed-fg); }
.bed-dnav__go { display: flex; align-items: center; justify-content: flex-end; margin-left: auto; }
.bed-dnav__go svg { width: 16px; height: 16px; }
.bed-dnav__panel {
	position: absolute; inset: 0; z-index: 5; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 16px;
	background: #fff; visibility: hidden; opacity: 0; transform: translateY(8px); /* hiện dần tại chỗ, không trượt ngang */
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.bed-dnav__panel.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .bed-dnav__panel { transition: none; transform: none; } }
.bed-drawer .bed-dnav__back { display: flex; align-items: center; justify-content: space-between; width: calc(100% + 32px); margin: -16px -16px 16px; padding: 12px; box-sizing: border-box; background: var(--bed-n50); border-radius: 0 !important; font-weight: 600; text-align: center; font-size: 16px; line-height: 22.857px; }
.bed-dnav__back svg { width: 16px; height: 16px; color: var(--bed-n200); }
.bed-dnav__back .bed-dnav__bk { display: block; margin-right: 12px; flex: none; }
.bed-dnav__back > span:not(.bed-dnav__bk) { margin: 0 auto; }
.bed-dnav__cols { display: flex; flex-direction: column; gap: 12px; }
.bed-drawer .bed-dnav__title { display: block; margin-bottom: 12px; font-weight: 600; }
.bed-drawer .bed-dnav__title a, .bed-drawer .bed-dnav__row a { font-weight: 600; }
.bed-drawer .bed-dnav__col > ul { list-style: disc; padding-left: 16px; display: flex; flex-direction: column; }
.bed-drawer .bed-dnav__col > ul > li { display: list-item; list-style: disc; }
.bed-drawer .bed-dnav__col > ul > li + li { margin-top: 12px; }
.bed-drawer .bed-dnav__col li a:hover, .bed-drawer .bed-dnav__title a:hover, .bed-drawer .bed-dnav__row a:hover { color: var(--bed-link); }
.bed-drawer .bed-dnav__col--single { display: block; }
.bed-drawer .bed-dnav__col--single .bed-dnav__row { display: block; font-weight: 600; }
.bed-drawer .bed-dnav__sub .bed-mega__extra { margin-top: 16px; }
.bed-drawer .bed-dnav__sub .bed-mega__banner, .bed-drawer .bed-dnav__sub .bed-mega__products { width: 100%; padding: 20px 0; box-sizing: border-box; }
.bed-drawer .bed-mega__banner img { display: block; width: 100%; height: auto; }

/* ----- search drawer: đệm ngang 16 (+12 ở tiêu đề), form dọc cách 12 ----- */
#bed-search-drawer .bed-drawer__panel { padding: 0 16px; box-sizing: border-box; overflow-y: auto; }
.bed-search__head { display: flex; align-items: center; gap: 8px; padding: 20px 12px 12px; font-weight: 600; font-size: 16px; line-height: 24px; }
@media (min-width: 768px) { .bed-search__head { font-size: 28px; line-height: 1.3; } }
.bed-drawer .bed-search__back { display: flex; align-items: center; color: var(--bed-fg); transition: transform .15s; }
.bed-search__back svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .bed-search__back svg { width: 28px; height: 28px; } }
.bed-search__main { position: relative; }
.bed-search__form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0; padding: 0; background: #fff; }
.bed-drawer .bed-search__cat {
	display: block; width: 100%; height: auto; margin: 0; padding: 10px 25px 10px 10px; box-sizing: border-box; cursor: pointer;
	font-family: inherit; font-size: 16px; line-height: 24px; color: var(--bed-fg); letter-spacing: inherit;
	background-color: #fff; border: 1px solid var(--bed-n50); border-radius: 8px; box-shadow: none; outline: 0; text-transform: none;
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 8px center; background-repeat: no-repeat; background-size: 24px 24px;
}
.bed-drawer .bed-search__cat:focus { border-color: var(--bed-n100); }
.bed-search__group { position: relative; display: flex; align-items: center; height: 44px; padding: 2px 2px 2px 10px; box-sizing: border-box; background: #fff; border: 1px solid var(--bed-n50); border-radius: 8px; transition: border-color .2s ease; }
.bed-search__group:focus-within { border-color: var(--bed-n100); }
.bed-drawer .bed-search__input {
	display: block; flex: 1 1 auto; min-width: 0; width: 100%; height: auto; margin: 0; padding: 0 12px 0 0; background: transparent; color: var(--bed-fg);
	border: 0; border-radius: 0; box-shadow: none; outline: 0; font-family: inherit; font-size: 16px; line-height: 16px; letter-spacing: inherit; -webkit-appearance: none; appearance: none;
}
.bed-drawer .bed-search__input:focus { box-shadow: none; outline: 0; border: 0; background: transparent; }
.bed-drawer .bed-search__input::placeholder { color: #6b7280; opacity: 1; }
.bed-search__input::-webkit-search-cancel-button, .bed-search__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.bed-drawer .bed-search__submit { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 38px; border-radius: 9999px; color: var(--bed-fg); transition: background .2s ease, color .2s ease; }
.bed-drawer .bed-search__submit:hover { background: var(--bed-n50); }
.bed-search__submit svg { width: 16px; height: 16px; }
.bed-search__dropdown { position: relative; margin-top: 4px; padding: 12px 8px; border-radius: 12px; background: #fff; color: var(--bed-fg); }
.bed-search__loading { display: none; position: absolute; inset: 0; z-index: 1; align-items: center; justify-content: center; gap: 4px; background: #fff; border-radius: 12px; color: var(--bed-n100); }
.bed-search__loading i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: bedDots 1.2s ease-in-out infinite; }
.bed-search__loading i:nth-child(2) { animation-delay: .15s; }
.bed-search__loading i:nth-child(3) { animation-delay: .3s; }
@keyframes bedDots { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.bed-search.is-loading .bed-search__loading { display: flex; }
.bed-search.is-loading .bed-search__keywords { visibility: hidden; }
.bed-search__status { margin: 0; color: var(--bed-fg); }
.bed-search__results { display: flex; flex-direction: column; gap: 12px; }
.bed-search__results[hidden], .bed-search__status[hidden], .bed-search__all[hidden] { display: none; }
.bed-search__item { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--bed-fg); }
.bed-search__item:hover { color: var(--bed-link); }
.bed-search__thumb { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; }
.bed-search__thumb img { display: block; width: auto; max-width: 100%; max-height: 100%; aspect-ratio: 1; object-fit: contain; }
.bed-search__info { min-width: 0; }
.bed-search__prices { display: flex; flex-wrap: wrap; gap: 8px; }
.bed-search__prices .bed-price { font-size: 16px; font-weight: 600; }
.bed-search__prices .bed-price-compare { font-size: 16px; font-weight: 600; }
.bed-drawer .bed-search__all { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; text-align: center; color: var(--bed-primary); }
.bed-drawer .bed-search__all:hover { color: var(--bed-primary); text-decoration: underline; }
.bed-search__keywords { padding: 8px 8px 0; }
.bed-search__label { display: block; font-weight: 600; }
.bed-search__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.bed-drawer .bed-skw { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; padding: 4px 12px; border: 1px solid transparent; border-radius: 9999px; color: var(--bed-secondary); transition: border-color .2s ease; }
.bed-drawer .bed-skw::before { content: ''; position: absolute; inset: 0; background: currentColor; opacity: .1; }
.bed-drawer .bed-skw:hover { color: var(--bed-secondary); border-color: var(--bed-secondary); }
.bed-search.is-searching .bed-search__keywords { display: none; }

/* chip dùng chung (D1 — facet): giữ nguyên */
.bed-chip { display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid transparent; border-radius: 999px; background: var(--bed-n50); color: var(--bed-secondary) !important; font-size: 14px; line-height: 20px; transition: border-color .2s; }
.bed-chip:hover { border-color: var(--bed-secondary); }

/* ==========================================================================
   FOOTER — nền var(--bed-accent), chữ var(--bed-primary), lưới 4 cột (cột 316px ở 1440), đệm 48/0
   ========================================================================== */
#footer.footer-wrapper { background: var(--bed-footer-bg); color: var(--bed-footer-text); }
.bed-footer { color: var(--bed-footer-text); }
.bed-footer a { color: var(--bed-footer-text); }
.bed-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 16px; padding: 24px 0 12px; }
@media (min-width: 768px) { .bed-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 48px 0; } }
@media (min-width: 1024px) { .bed-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bed-footer__logo { display: block; margin-bottom: 12px; }
.bed-footer__logo .bed-logo__mark { width: 46px; height: 46px; }
.bed-footer__logo .bed-logo__word { font-size: 34px; }
.bed-footer__logo .bed-logo--img { max-height: 60px; max-width: 242px; }
.bed-footer__about, .bed-footer__tax { margin-bottom: 12px; }
.bed-footer__contact { margin-bottom: 20px; }
.bed-fc { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 12px; }
.bed-fc > svg { flex: none; width: 16px; height: 16px; margin: 2px 0 0; }
.bed-fc > div { min-width: 0; }
.bed-fc span { display: block; }
.bed-fc strong { display: block; font-weight: 600; }
.bed-footer__contact-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 32px; }
@media (min-width: 1280px) { .bed-footer__contact-row { display: flex; flex-wrap: wrap; } }
.bed-footer__contact-row .bed-fc { margin-bottom: 0; }
.bed-footer__label { font-weight: 600; margin-bottom: 12px; }
.bed-footer__social-list { display: flex; flex-wrap: wrap; gap: 12px; }
.bed-footer .bed-footer__social-list a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--bed-n50); border-radius: 4px; box-sizing: border-box; }
.bed-footer__social-list img { display: block; width: 20px; height: 20px; }

.bed-fd > summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; line-height: 24px; list-style: none; cursor: pointer; }
.bed-fd > summary::-webkit-details-marker { display: none; }
.bed-fd > summary svg { width: 16px; height: 16px; transition: transform .25s ease; }
.bed-fd[open] > summary svg { transform: rotate(90deg); }
.bed-footer .bed-footer__list { list-style: disc; padding-left: 20px; margin: 0; }
.bed-footer .bed-footer__list li { display: list-item; list-style: disc; }
.bed-footer .bed-footer__list li + li { margin-top: 16px; }
.bed-footer__call { margin-top: 24px; }
.bed-footer__call .bed-footer__label { margin-bottom: 8px; line-height: 24px; }

.bed-footer__news { display: flex; flex-direction: column; gap: 8px; }
.bed-footer__news .bed-footer__label { margin: 0; }
.bed-footer__news-desc { margin-bottom: 4px; }
.bed-news { margin: 0 0 15px; padding: 0; }
.bed-news__field { position: relative; display: flex; }
.bed-footer .bed-news__input {
	display: block; width: 100%; height: 46px; margin: 0; padding: 12px 60px 12px 12px; box-sizing: border-box;
	background: var(--bed-footer-bg); color: var(--bed-footer-text); border: 1px solid var(--bed-n50); border-radius: 9999px; box-shadow: none;
	font-family: inherit; font-size: 16px; line-height: 16px; letter-spacing: inherit; outline: 0; transition: border-color .2s ease;
}
.bed-footer .bed-news__input:focus { border-color: var(--bed-footer-text); box-shadow: none; background: var(--bed-footer-bg); outline: 0; }
.bed-footer .bed-news__input::placeholder { color: var(--bed-footer-text); opacity: .75; }
.bed-news__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bed-footer .bed-news__btn { position: absolute; right: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 64px; height: 100%; border-radius: 9999px; color: var(--bed-footer-text); transition: background .2s ease, color .2s ease; }
.bed-footer .bed-news__btn:hover { background: rgba(255, 255, 255, .45); }
.bed-footer .bed-news__btn[disabled] { opacity: .6; cursor: wait; }
.bed-news__btn svg { width: 16px; height: 16px; }
.bed-news__msg { margin-top: 8px; font-size: 14px; line-height: 20px; }
.bed-news__msg:empty { display: none; }
.bed-news__msg.is-ok { color: #1f7a10; }
.bed-news__msg.is-err { color: var(--bed-error); }
.bed-footer__pay { margin-top: 24px; }
.bed-footer__pay .bed-footer__label { margin-bottom: 12px; }
.bed-footer__pay img { display: block; height: auto; }
.bed-footer .bed-footer__zalo { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 24px; }
.bed-footer__qr { display: block; width: 80px; height: 80px; padding: 4px; box-sizing: border-box; background: #fff; border-radius: 4px; }
.bed-footer__qr svg { display: block; width: 100%; height: 100%; }
.bed-footer__zalo p:first-child { font-weight: 600; text-transform: uppercase; }

.bed-footer__copy { display: grid; gap: 8px; align-items: center; padding: 12px 0; border-top: 1px solid var(--bed-n50); text-align: center; text-wrap: balance; }

@media (max-width: 767px) {
	.bed-fd:not([open]) + .bed-footer__call { margin-top: 16px; }
}
@media (min-width: 768px) {
	.bed-fd > summary { pointer-events: none; cursor: default; }
	.bed-fd > summary svg { display: none; }
}

/* ==========================================================================
   WIDGET NỔI — cột ở góc phải: lên đầu trang 44 · LIVE (mobile) 40 · liên hệ nhanh 44
   ========================================================================== */
.bed-float { position: fixed; right: 12px; bottom: 110px; z-index: 999; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.bed-float > * { pointer-events: auto; }
body.single-product .bed-float, body.woocommerce-cart .bed-float, body.woocommerce-checkout .bed-float { bottom: 140px; }
@media (min-width: 768px) { body.single-product .bed-float, body.woocommerce-cart .bed-float, body.woocommerce-checkout .bed-float { bottom: 110px; } }

.bed-float .bed-backtop {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 5px;
	border-radius: 100%; background: var(--bed-primary); color: #fff;
	opacity: 0; visibility: hidden; transform: translateX(20px);
	transition: all .3s ease-out; box-shadow: none;
}
.bed-float .bed-backtop:hover { filter: brightness(1.3); color: #fff; }
.bed-float .bed-backtop.is-show { opacity: 1; visibility: visible; transform: none; transition: transform .3s ease-out, filter .2s; }
.bed-backtop svg { width: 16px; height: 16px; }

.bed-float .bed-live--float { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 4px; max-width: none; padding: 0; border: 0; border-radius: 50%; background: var(--bed-live-color, #f00); color: #fff; font-size: 10px; line-height: 1.4286; font-weight: 600; overflow: hidden; z-index: 0; }
.bed-float .bed-live--float:hover { color: #fff; }
.bed-live--float::after { display: none; }
@media (min-width: 768px) { .bed-float .bed-live--float { display: none; } }

.bed-dial { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bed-dial__list { display: none; flex-direction: column; align-items: center; gap: 10px; }
.bed-dial.is-open .bed-dial__list { display: flex; animation: bedDialIn .3s ease both; }
@keyframes bedDialIn { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
.bed-float .bed-dial__item { position: relative; display: block; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .11); transition: opacity .2s, box-shadow .2s; }
.bed-dial__item img { display: block; width: 44px; height: 44px; border-radius: 50%; }
.bed-float .bed-dial__item:hover { opacity: .9; box-shadow: 0 5px 10px rgba(0, 0, 0, .15), 0 4px 15px rgba(0, 0, 0, .13); }
.bed-dial__tip { position: absolute; top: 4px; right: 55px; height: 32px; padding: 3px 10px; box-sizing: border-box; border-radius: 5px; background: #000; color: #fff; font-size: 11px; line-height: 26px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all .2s linear; z-index: 9; }
.bed-dial__tip::after { content: ''; position: absolute; left: 100%; top: 0; bottom: 0; margin: auto; width: 0; height: 0; border: 5px solid transparent; border-left-color: #000; }
.bed-dial__item:hover .bed-dial__tip { opacity: 1; visibility: visible; }
.bed-float .bed-dial__toggle { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 4px; box-sizing: border-box; border-radius: 9999px; background: #ef8212; color: #fff; box-shadow: none; transition: box-shadow .2s; }
.bed-float .bed-dial__toggle:hover { box-shadow: 0 5px 10px rgba(0, 0, 0, .15), 0 4px 15px rgba(0, 0, 0, .13); }
.bed-dial__toggle > * { position: absolute; transition: transform .3s ease; }
.bed-dial__x { transform: scale(0); }
.bed-dial.is-open .bed-dial__x { transform: scale(1); }
.bed-dial.is-open .bed-dial__ico { transform: scale(0); }

/* thanh 5 nút đáy trên điện thoại (mẫu: .cro-btns — cao 56, nền trắng, bo trên, icon PNG 16) */
.bed-mbar { display: none; }
@media (max-width: 767px) {
	.bed-mbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; min-height: 56px; padding: 0 8px; box-sizing: border-box; background: #fff; border-radius: 4px 4px 0 0; box-shadow: 0 20px 48px 0 rgba(51, 51, 51, .2); }
	.bed-mbar .bed-mbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 2px; border-radius: 9999px; color: var(--bed-fg); font-size: 12px; line-height: 16px; transition: background .2s, color .2s; }
	.bed-mbar__ico { display: block; width: 16px; height: 16px; }
	.bed-mbar__ico img { display: block; width: 16px; height: 16px; object-fit: contain; }
	.bed-mbar__item span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
	body.bed-has-mobilebar { padding-bottom: 56px; }
	body.single-product .bed-mbar, body.woocommerce-cart .bed-mbar, body.woocommerce-checkout .bed-mbar { display: none; }
	body.bed-has-mobilebar.single-product, body.bed-has-mobilebar.woocommerce-cart, body.bed-has-mobilebar.woocommerce-checkout { padding-bottom: 0; }
}

/* thông báo "khách vừa mua" (mẫu: .sales-pop — trái 10, đáy 140; mobile trái 5, đáy 80) */
.bed-salespop {
	position: fixed; left: 10px; bottom: 140px; z-index: 1000; display: flex; align-items: flex-start; justify-content: space-between;
	box-sizing: border-box; width: max-content; max-width: min(400px, calc(100vw - 20px)); padding: 16px 20px 16px 16px;
	background: #fff; color: var(--bed-fg); font-size: 14px; line-height: 20px; border-radius: 10px; box-shadow: 0 0 20px rgba(0, 0, 0, .3);
	transition: transform .25s ease, box-shadow .25s ease;
}
.bed-salespop[hidden] { display: none; }
.bed-salespop:hover { transform: translateY(-10px); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.bed-salespop.is-in { animation: bedPopIn 1.1s linear both; }
.bed-salespop.is-out { animation: bedPopOut .6s ease both; }
.bed-salespop .bed-salespop__img { flex: none; display: block; width: 93px; padding-right: 7px; box-sizing: border-box; }
.bed-salespop__img img { display: block; width: 100%; height: 86px; object-fit: cover; margin: 0 auto; }
.bed-salespop__body { min-width: 0; flex: 1 1 auto; }
.bed-salespop__text b { font-weight: 700; font-size: 16px; }
.bed-salespop .bed-salespop__name { display: -webkit-box; margin: 0 0 5px; padding-right: 20px; font-size: 15px; line-height: 1.4286; font-weight: 700; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--bed-fg); }
.bed-salespop .bed-salespop__name:hover { text-decoration: none; }
.bed-salespop .bed-salespop__close { position: absolute; top: 4px; right: 6px; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: #fff; border-radius: 0 0 0 6px !important; color: var(--bed-fg); }
.bed-salespop__close svg { width: 14px; height: 14px; }
@media (max-width: 767px) {
	.bed-salespop { left: 5px; bottom: 80px; max-width: 90%; padding: 7px 10px; font-size: 12px; }
	.bed-salespop__text b { font-size: 12px; }
	.bed-salespop .bed-salespop__img { width: 78px; }
	.bed-salespop__img img { height: 72px; }
	body.single-product .bed-salespop, body.woocommerce-cart .bed-salespop, body.woocommerce-checkout .bed-salespop { bottom: 140px; }
}
@keyframes bedPopIn { 0% { opacity: 0; transform: translateY(40px); } 60% { opacity: 1; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes bedPopOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(40px); } }

@media (prefers-reduced-motion: reduce) {
	.bed-drawer__panel, .bed-drawer__overlay, .bed-dnav__panel, .bed-sub, .bed-mslider__track, .bed-nav__nav { transition: none !important; }
	.bed-live::after, .bed-salespop.is-in, .bed-dial.is-open .bed-dial__list, .bed-search__loading i { animation: none !important; }
}

/* ---------- Thanh thông báo chạy chữ (topbar) ---------- */
.bed-topbar { position: relative; z-index: 1; overflow: hidden; background: var(--bed-topbar-bg, var(--bed-primary)); color: var(--bed-topbar-color, #fff); }
.bed-topbar__track { display: flex; flex-wrap: nowrap; width: max-content; }
.bed-topbar__group { display: flex; flex: 0 0 auto; align-items: center; margin: 0; padding: 0; list-style: none; animation: bedTopbar var(--bed-topbar-speed, 25s) linear infinite; }
.bed-topbar:hover .bed-topbar__group { animation-play-state: paused; }
.bed-topbar__item { display: flex; align-items: center; margin: 0; padding: 8px 0; white-space: nowrap; font-size: 15px; line-height: 23px; }
.bed-topbar__item::before { content: ''; flex: none; width: 7px; height: 7px; margin: 0 16px; border-radius: 50%; background: currentColor; opacity: .9; }
.bed-topbar__item a, .bed-topbar__item span { color: inherit !important; text-decoration: none; }
.bed-topbar__item a:hover { opacity: .8; }
@keyframes bedTopbar { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .bed-topbar__group { animation: none; } }
