/* ==========================================================================
   Site "lofi" (clone Lofi Cosmetic — https://lofi-cosmetic.mysapo.net): header kiểu Lofi + các khối trang chủ .bed-lf.
   Mọi rule nằm trong .bed-hdr--lofi / .bed-lf / body.bed-site-lofi nên các site khác không bị ảnh hưởng.
   Màu: --bed-primary (xanh đậm #0a402b) · --bed-secondary (xanh mint #0fb587) · font theo brand.json.
   Số đo lấy từ mẫu ở 1440 (khung 1425 + thanh cuộn) và 375.
   ========================================================================== */

/* ---------- HEADER ---------- */
.bed-hdr.bed-hdr--lofi { display: block; padding: 0; min-height: 0; background: transparent; position: relative; z-index: 60; }
.bed-hdr--lofi .bed-hdr__top { background: #fff; position: relative; }
.bed-lofi-top { max-width: var(--bed-container); margin: 0 auto; display: grid; grid-template-columns: 16.667% 33.333% 29.167% 20.833%; align-items: center; height: 88px; }
.bed-lofi-col { min-width: 0; padding: 0 10px; }
.bed-lofi-col--logo { display: flex; align-items: center; gap: 8px; }
.bed-hdr--lofi .bed-hamburger { display: none; color: var(--bed-fg); margin: 0; }
.bed-hdr--lofi .bed-lofi-logo { display: inline-block; max-width: 100%; line-height: 0; }
.bed-hdr--lofi .bed-lofi-logo img, .bed-hdr--lofi .bed-logo--img { width: 217px; max-width: 100%; height: auto; max-height: 40px; object-fit: contain; display: block; }
.bed-lofi-search { position: relative; margin: 0; }
.bed-lofi-search input[type=search] { display: block; width: 100%; height: 42px; min-height: 42px; margin: 0; padding: 0 50px 0 20px; border: 1px solid #ebebeb; border-radius: 50px; background: #fff; box-shadow: none; font-size: 14px; color: #000; line-height: 42px; }
.bed-lofi-search input[type=search]::placeholder { color: #000; font-style: italic; opacity: 1; }
.bed-lofi-search input[type=search]:focus { outline: none; border-color: var(--bed-primary); }
.bed-lofi-search button { position: absolute; top: 0; right: 0; width: 48px; height: 42px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0 50px 50px 0; background: var(--bed-primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; }
.bed-lofi-search button svg { width: 16px; height: 16px; fill: #fff; color: #fff; }
.bed-lofi-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-evenly; margin: 0; padding: 0; list-style: none; }
.bed-lofi-contact li { display: flex; align-items: center; margin: 0 0 0 10px; padding: 0; }
.bed-lofi-contact li:first-child { margin-left: 0; }
.bed-lofi-contact__ico { display: block; width: 25px; flex: none; line-height: 0; }
.bed-lofi-contact__ico img { width: 25px; height: 25px; }
.bed-lofi-contact__txt { display: block; margin-left: 5px; font-size: 15px; line-height: 22.5px; color: #212529; }
.bed-lofi-contact__txt > span { display: block; }
.bed-lofi-contact__txt a { display: block; font-size: 15px; font-weight: 600; color: var(--bed-primary); }
.bed-lofi-col--acct { align-self: start; }
.bed-lofi-acct { display: flex; align-items: flex-start; justify-content: flex-end; gap: 18px; margin: 0; padding: 0; list-style: none; text-align: right; }
.bed-lofi-acct > li { margin: 0; padding: 0; line-height: 22px; position: relative; }
.bed-lofi-acct__user { margin-top: 27px !important; }
.bed-lofi-acct__wish { margin-top: 32px !important; }
.bed-lofi-acct__user > a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 120px; height: 34px; box-sizing: border-box; padding: 5px 0; border: 1px solid var(--bed-primary); border-radius: 20px; color: #212529; font-size: 14px; }
.bed-lofi-acct__user > a svg { width: 20px; height: 20px; }
.bed-lofi-acct__drop { position: absolute; top: calc(100% + 15px); right: -3px; width: 130px; background: #fff; box-shadow: 0 1px 5px 2px rgba(0, 0, 0, .1); text-align: left; z-index: 99; opacity: 0; visibility: hidden; transition: opacity .2s .1s, visibility .2s .1s; }
.bed-lofi-acct__drop::before { content: ''; position: absolute; top: -10px; right: 16px; border: solid transparent; border-width: 0 7.5px 10px; border-bottom-color: #fff; }
.bed-lofi-acct__drop::after { content: ''; position: absolute; width: 100px; height: 15px; top: -15px; right: 0; }
.bed-lofi-acct__drop a { display: block; line-height: 30px; padding: 0 10px; color: #212529; font-size: 14px; }
.bed-lofi-acct__drop a:first-child { border-bottom: 1px solid #ebebeb; }
.bed-lofi-acct__drop a:hover { color: var(--bed-primary); }
.bed-lofi-acct__user:hover .bed-lofi-acct__drop { opacity: 1; visibility: visible; }
.bed-lofi-acct__wish > a { position: relative; display: block; color: #212529; line-height: 0; }
.bed-lofi-acct__wish b, .bed-lofi-acct__cart .bed-cart-count { position: absolute; top: -5px; right: -7px; width: 14px; height: 14px; border-radius: 100%; background: var(--bed-secondary); color: #fff; font-size: 10px; font-weight: 400; line-height: 14px; text-align: center; }
.bed-lofi-acct__cart { padding: 15px 20px !important; margin: 0 !important; border-radius: 0 0 25px 25px; background: var(--bed-primary); text-align: center; }
.bed-lofi-acct__cart > a { position: relative; display: block; color: #fff; line-height: 0; }
.bed-lofi-acct__cart svg { width: 22px; height: 22px; color: #fff; fill: none; }
.bed-lofi-acct__cartlabel { display: block; margin-top: 5px; color: #fff; font-size: 14px; line-height: 22.5px; }
.bed-hdr--lofi .bed-lofi-acct__cart .bed-cart-count { top: -6px; right: -9px; }
/* hàng menu */
.bed-hdr--lofi .bed-hdr__navrow { background: var(--bed-primary); }
.bed-lofi-navinner { max-width: var(--bed-container); margin: 0 auto; padding: 0 10px; position: relative; display: flex; align-items: center; }
.bed-hdr--lofi .bed-hdr__nav { flex: 1 1 auto; min-width: 0; margin: 0; display: block; }
.bed-hdr--lofi .bed-hdr__nav.is-overflow { width: auto; }
.bed-hdr--lofi .bed-nav__pad { padding: 0; margin: 0; }
.bed-hdr--lofi .bed-nav__wrap { margin: 0; }
.bed-hdr--lofi .bed-nav__wrap.is-overflow { max-width: calc(100% - 70px); }
.bed-hdr--lofi .bed-nav__item { padding: 0; }
.bed-hdr--lofi .bed-nav__link { display: flex; align-items: center; gap: 8px; min-height: 47px; padding: 0 20px !important; font-size: 15px !important; font-weight: 700 !important; line-height: 47px !important; color: #fff !important; text-transform: none; transition: background-color .2s; }
.bed-hdr--lofi .bed-nav__link > span { padding-bottom: 0; background-image: none !important; }
.bed-hdr--lofi .bed-nav__item:hover > .bed-nav__link, .bed-hdr--lofi .bed-nav__item.is-open > .bed-nav__link, .bed-hdr--lofi .bed-nav__item.is-active > .bed-nav__link { background: var(--bed-secondary); color: #fff !important; }
.bed-hdr--lofi .bed-nav__link { position: relative; }
.bed-hdr--lofi .bed-nav__caret { position: absolute; right: 6px; top: 50%; margin-top: -6px; }
.bed-hdr--lofi .bed-nav__caret svg { width: 12px; height: 12px; }
.bed-hdr--lofi .bed-nav__arrow { height: 47px; color: #fff; }
.bed-lofi-flashlink { position: absolute; right: 10px; top: 11px; display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; line-height: 25px; color: #fff !important; animation: bed-lf-tada 2s infinite; }
.bed-lofi-flashlink img { width: 12px; height: auto; }
@keyframes bed-lf-tada { 0% { transform: scale(1); } 10%, 20% { transform: scale(.95) rotate(-2deg); } 30%, 50%, 70%, 90% { transform: scale(1.05) rotate(2deg); } 40%, 60%, 80% { transform: scale(1.05) rotate(-2deg); } 100% { transform: scale(1) rotate(0); } }
/* dropdown nhiều cấp */
.bed-hdr--lofi .bed-drop { width: 220px; padding: 0; background: #fff; border-radius: 0; box-shadow: 0 1px 2px 2px rgba(0, 0, 0, .04); }
.bed-hdr--lofi .bed-drop__item > a { padding: 5px 20px 5px 10px; font-size: 14px; font-weight: 400; line-height: 24px; color: #333; border-bottom: 1px solid #e5e6ec; }
.bed-hdr--lofi .bed-drop__item > a > span { background-image: none !important; padding-bottom: 0; }
.bed-hdr--lofi .bed-drop__item:last-child > a { border-bottom: 0; }
.bed-hdr--lofi .bed-drop__item:hover > a { color: var(--bed-secondary); }
.bed-hdr--lofi .bed-drop__fly { width: 250px; padding: 0; border-radius: 0; box-shadow: 0 1px 2px 2px rgba(0, 0, 0, .04); }
.bed-hdr--lofi .bed-sub::before { height: 0; }

@media (max-width: 1199px) {
	.bed-lofi-top { grid-template-columns: 1fr auto; grid-template-areas: 'logo acct' 'search search'; height: auto; padding: 0 10px 15px; }
	.bed-lofi-col { padding: 0; }
	.bed-lofi-col--logo { grid-area: logo; height: 60px; }
	.bed-lofi-col--acct { grid-area: acct; align-self: center; }
	.bed-lofi-col--search { grid-area: search; margin-top: 10px; }
	.bed-lofi-col--contact, .bed-hdr--lofi .bed-hdr__navrow { display: none; }
	.bed-hdr--lofi .bed-hamburger { display: inline-flex; width: 28px; height: 28px; margin-top: 0; }
	.bed-hdr--lofi .bed-lofi-logo img, .bed-hdr--lofi .bed-logo--img { width: 167px; max-height: 30px; }
	.bed-lofi-acct { gap: 12px; align-items: center; height: 60px; }
	.bed-lofi-acct__user, .bed-lofi-acct__wish { margin-top: 0 !important; }
	.bed-lofi-acct__user > a { min-width: 0; width: 20px; height: auto; padding: 0; border: 0; border-radius: 0; }
	.bed-lofi-acct__user > a span, .bed-lofi-acct__drop, .bed-lofi-acct__cartlabel { display: none; }
	.bed-lofi-acct__wish { display: none; }
	.bed-lofi-acct__cart { padding: 0 !important; background: transparent; border-radius: 0; }
	.bed-lofi-acct__cart > a, .bed-lofi-acct__cart svg { color: var(--bed-fg); }
	.bed-lofi-acct__cart svg { width: 20px; height: 22px; }
}

/* ---------- KHỐI TRANG CHỦ (.bed-lf) ---------- */
.bed-section.bed-lf { font-family: var(--bed-font-body); font-size: 14px; line-height: 1.5; color: #212529; box-sizing: border-box; }
.bed-lf .bed-container { max-width: var(--bed-container); padding-left: 10px; padding-right: 10px; }
.bed-lf h2, .bed-lf h3, .bed-lf h4, .bed-lf p, .bed-lf ul, .bed-lf li { letter-spacing: normal; text-transform: none; }
.bed-lf-head { text-align: center; }
.bed-lf-heading { margin: 0 0 30px; padding: 0; font-family: var(--bed-font-heading); font-size: 28px; line-height: 1.4; font-weight: 700; text-transform: uppercase !important; color: var(--bed-primary); width: auto; }
.bed-lf-heading a { color: var(--bed-primary) !important; }
.bed-lf-heading strong { display: block; font-size: 22px; font-weight: 500; line-height: 39.2px; color: var(--bed-secondary); text-transform: uppercase; }
.bed-lf-heading span { display: block; font-weight: 700; }
@media (max-width: 767px) { .bed-lf-heading { font-size: 20px; margin-bottom: 15px; } .bed-lf-heading strong { line-height: 31px; } }

/* slider chung */
.bed-lf-slider { position: relative; }
.bed-lf-slider .bed-lf-cell { box-sizing: border-box; }
body.bed-theme .bed-lf-slider .flickity-page-dots { gap: 4px; margin: 20px 0 0; padding: 0; height: 21px; align-items: center; }
body.bed-theme .bed-lf-svc__slider .flickity-page-dots { margin-top: 0; }
body.bed-theme .bed-lf-slider .flickity-page-dots .dot { width: 11px; height: 5px; border-radius: 0; background: var(--bed-primary); opacity: 1; }
body.bed-theme .bed-lf-slider .flickity-page-dots .dot.is-selected { width: 20px; background: var(--bed-secondary); }
body.bed-theme .bed-lf-slider .flickity-prev-next-button { width: 40px; height: 40px; background: var(--bed-primary) !important; color: #fff; }

/* 1. Hộp dịch vụ */
.bed-lf-svc { position: relative; z-index: 2; }
.bed-lf-svc__box { padding: 20px 0; text-align: center; border-radius: 20px; background: #fbfbfb; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .16)); }
body.bed-theme .bed-lf-svc__slider .flickity-slider > .bed-lf-cell { margin-right: 40px; width: calc((100% - 120px) / 4) !important; }
.bed-lf-svc__item { text-align: center; }
.bed-lf-svc__icon { display: flex; align-items: center; justify-content: center; min-height: 40px; margin-bottom: 15px; }
.bed-lf-svc__icon img { width: 60px; height: 60px; object-fit: contain; }
.bed-lf-svc__info h3 { margin: 10px 0; font-size: 16px; line-height: 22px; font-weight: 600; text-transform: capitalize !important; color: var(--bed-primary); width: auto; }
.bed-lf-svc__info p { max-width: 85%; margin: 0 auto; font-size: 14px; line-height: 24px; color: rgba(0, 0, 0, .6); text-transform: capitalize !important; }
.bed-lf-svc__slider .flickity-page-dots { display: none !important; }
@media (max-width: 1199px) { body.bed-theme .bed-lf-svc__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 60px) / 3) !important; margin-right: 30px; } .bed-lf-svc__box { border-radius: 10px; } }
@media (max-width: 991px) { body.bed-theme .bed-lf-svc__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 20px) / 2) !important; margin-right: 20px; } }
@media (max-width: 499px) { body.bed-theme .bed-lf-svc__slider .flickity-slider > .bed-lf-cell { width: 100% !important; margin-right: 0; } .bed-lf-svc__slider .flickity-page-dots { display: flex !important; } }

/* 2. Điểm nổi bật */
.bed-lf-perfect__row { display: flex; align-items: center; }
.bed-lf-perfect__col { flex: 0 0 35%; max-width: 35%; padding: 0 10px; box-sizing: border-box; }
.bed-lf-perfect__img { flex: 0 0 30%; max-width: 30%; padding: 0 10px; box-sizing: border-box; }
.bed-lf-perfect__fx img { width: 100%; height: auto; display: block; }
.bed-lf-pill { display: block; margin: 0; padding: 15px; border-radius: 100px; background: #fbfbfb; transition: .3s ease; list-style: none; }
.bed-lf-perfect__col .bed-lf-pill:nth-child(2) { margin-top: 35px; }
.bed-lf-perfect__col .bed-lf-pill:nth-child(3) { margin-top: 35px; }
.bed-lf-perfect__col--l .bed-lf-pill:nth-child(1), .bed-lf-perfect__col--l .bed-lf-pill:nth-child(3) { margin-left: 50px; }
.bed-lf-perfect__col--r .bed-lf-pill { text-align: right; }
.bed-lf-perfect__col--r .bed-lf-pill:nth-child(1), .bed-lf-perfect__col--r .bed-lf-pill:nth-child(3) { margin-right: 50px; }
.bed-lf-pill > li { display: inline-block; vertical-align: middle; margin: 0; padding: 0; list-style: none; }
.bed-lf-pill > .bed-lf-pill__ico { border-radius: 100%; padding: 20px; border: 1px solid var(--bed-secondary); line-height: 0; }
.bed-lf-pill__ico span { display: block; }
.bed-lf-pill__ico img { width: 52px; height: 52px; transition: .3s ease; }
.bed-lf-pill > .bed-lf-pill__ico--m { display: none; }
.bed-lf-perfect__col--l .bed-lf-pill__txt { margin-left: 15px; }
.bed-lf-pill__txt { max-width: calc(100% - 100px); }
.bed-lf-pill__txt h4 { margin: 0 0 10px; font-size: 20px; line-height: 1.2; font-weight: 700; color: #212529; width: auto; }
.bed-lf-pill__txt p { margin: 0; max-width: 280px; font-size: 14px; line-height: 25px; transition: .3s ease; }
.bed-lf-perfect__col--r .bed-lf-pill__txt { margin-right: 15px; }
.bed-lf-perfect__col--r .bed-lf-pill__txt p { margin-left: auto; }
.bed-lf-pill:hover { background: var(--bed-primary); }
.bed-lf-pill:hover img { transform: rotateY(180deg); }
.bed-lf-pill:hover .bed-lf-pill__txt h4 { color: var(--bed-secondary); }
.bed-lf-pill:hover .bed-lf-pill__txt p { color: #fff; }
@media (min-width: 992px) and (max-width: 1199px) {
	.bed-lf-pill__txt h4 { font-size: 14px; margin-bottom: 5px; } .bed-lf-pill__txt p { font-size: 13px; line-height: 20px; }
	.bed-lf-pill > .bed-lf-pill__ico { padding: 10px; } .bed-lf-pill__ico img { width: 42px; height: 42px; }
}
@media (max-width: 991px) {
	.bed-lf-perfect__col { flex: 0 0 30%; max-width: 30%; } .bed-lf-perfect__img { flex: 0 0 40%; max-width: 40%; }
	.bed-lf-pill { margin: 0 0 20px !important; text-align: center; border-radius: 57px; }
	.bed-lf-pill > .bed-lf-pill__ico { padding: 10px; } .bed-lf-pill__ico img { width: 32px; height: 32px; }
	.bed-lf-perfect__col--r .bed-lf-pill { text-align: center; }
	.bed-lf-pill > .bed-lf-pill__ico--m { display: inline-block; } .bed-lf-pill > .bed-lf-pill__ico--d { display: none; }
	.bed-lf-pill__txt h4 { font-size: 16px; margin: 12px 0 7px; } .bed-lf-pill__txt p { font-size: 12px; line-height: 20px; }
	.bed-lf-perfect__col--r .bed-lf-pill__txt { margin-right: 0; margin-left: 15px; } .bed-lf-perfect__col--r .bed-lf-pill__txt p { margin-left: 0; }
}
@media (max-width: 767px) {
	.bed-lf-perfect__row { display: block; } .bed-lf-perfect__col { flex: none; max-width: 100%; } .bed-lf-perfect__img { display: none; }
	.bed-lf-pill, .bed-lf-perfect__col--r .bed-lf-pill { text-align: left; }
}
@media (max-width: 449px) { .bed-lf-pill { padding: 10px !important; } .bed-lf-pill__txt { max-width: 72%; margin-left: 10px !important; } .bed-lf-pill__txt h4 { font-size: 15px; margin-bottom: 5px; } .bed-lf-pill__txt p { font-size: 12px; line-height: 18px; } }

/* 3. Flash Sale + Sản phẩm mới (nền màu chủ đạo) */
.bed-lf-flash, .bed-lf-new { background: var(--bed-primary); }
.bed-lf-flash { padding-top: 60px; }
.bed-lf-new { padding: 60px 0; }
.bed-lf-head--flash { position: relative; text-align: left; }
.bed-lf-flash .bed-lf-heading a, .bed-lf-new .bed-lf-heading a { color: #fff !important; }
.bed-lf-timer { position: absolute; top: 0; right: 0; display: flex; align-items: center; }
.bed-lf-timer__time { display: inline-flex; align-items: center; text-align: center; background: var(--bed-secondary); border-radius: 10px; padding: 6px 15px; color: #fff; min-height: 33px; box-sizing: border-box; font-size: 14px; }
.bed-lf-timer__time b { display: inline-block; padding: 0 8px; font-size: 16px; font-weight: 700; }
.bed-lf-timer__time i { font-style: normal; font-size: 14px; font-weight: 700; margin-left: 3px; }
.bed-lf-timer__time .bed-lf-timer__sep { color: #fff; }
@media (max-width: 767px) { .bed-lf-timer { position: static; display: block; margin-bottom: 20px; } .bed-lf-timer__time { display: flex; } }
body.bed-theme .bed-lf-flash__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 80px) / 5) !important; margin-right: 20px; }
@media (max-width: 1199px) { body.bed-theme .bed-lf-flash__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 40px) / 3) !important; } }
@media (max-width: 767px) { body.bed-theme .bed-lf-flash__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 20px) / 2) !important; } }
.bed-lf-flash, .bed-lf-new { --bed-card-ratio: 265 / 272; }
@media (max-width: 1199px) { .bed-lf-flash, .bed-lf-new { --bed-card-ratio: 1 / 1; } }
.bed-lf-card .bed-card__inner { border: 0; border-radius: 0; background: #fff; }
body.bed-theme .bed-lf-card .bed-card__body { gap: 0; padding: 10px; }
.bed-lf-flash .bed-lf-card .bed-card__body { padding-bottom: 2px; }
.bed-lf-card .bed-card__vendor { margin-bottom: 3px; font-size: 12px; line-height: 18px; text-transform: uppercase; color: #707070; }
.bed-lf-card .bed-card__title { margin: 0 0 10px; font-size: 16px; line-height: 22px; font-weight: 600; color: #333; }
.bed-lf-card .bed-card__row { margin: 0; display: block; }
.bed-lf-card .bed-card__swatches { display: none; }
.bed-lf-card .bed-card__prices { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.bed-lf-card .bed-price { font-size: 16px; font-weight: 700; line-height: 21px; letter-spacing: normal; color: var(--bed-price); }
.bed-lf-card .bed-price-compare { font-size: 14px; line-height: 21px; font-weight: 300; color: #707070; letter-spacing: normal; }
.bed-lf-sold { padding: 4px 10px 4px; background: #fff; color: #212529; font-size: 14px; line-height: 24px; }
.bed-lf-sold__txt { display: block; margin-bottom: 0; }
.bed-lf-sold__line { height: 8px; border-radius: 5px; background: #dfdfdf; overflow: hidden; }
.bed-lf-sold__line span { display: block; height: 8px; border-radius: 5px; background-color: var(--bed-primary); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-size: 40px 40px; animation: bed-lf-bar 2s linear infinite; }
@keyframes bed-lf-bar { from { background-position: 0 0; } to { background-position: 40px 0; } }
body.bed-theme .bed-lf-flash .bed-lf-slider .flickity-page-dots { margin-top: 12px; height: 21px; align-items: center; }
body.bed-theme .bed-lf-new .bed-lf-slider .flickity-page-dots { margin-top: 5px; height: 21px; align-items: center; }
.bed-lf-flash .bed-lf-slider .flickity-page-dots .dot, .bed-lf-new .bed-lf-slider .flickity-page-dots .dot { background: #fff; }
.bed-lf-flash .bed-lf-slider .flickity-page-dots .dot.is-selected, .bed-lf-new .bed-lf-slider .flickity-page-dots .dot.is-selected { background: var(--bed-secondary); }
body.bed-theme .bed-lf-new__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 80px) / 5) !important; margin-right: 20px; }
.bed-lf-new__card + .bed-lf-new__card { margin-top: 20px; }
@media (max-width: 1199px) { body.bed-theme .bed-lf-new__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 40px) / 3) !important; } }
@media (max-width: 767px) { body.bed-theme .bed-lf-new__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 10px) / 2) !important; margin-right: 10px; } .bed-lf-new__card + .bed-lf-new__card { margin-top: 10px; } .bed-lf-new { padding: 60px 0 30px; } }

/* 4. Banner chữ phủ */
.bed-lf-banner { position: relative; padding-top: 60px; background: linear-gradient(0deg, #fff 40%, var(--bed-primary) 40%); }
.bed-lf-banner .bed-container { position: relative; }
.bed-lf-banner__cover { position: relative; border-radius: 15px; text-align: center; }
.bed-lf-banner__cover a { position: relative; display: block; overflow: hidden; border-radius: 15px; height: 400px; }
.bed-lf-banner__cover img { max-width: 100%; border-radius: 15px; }
.bed-lf-banner__text { position: absolute; top: 0; bottom: 0; left: 10%; display: flex; align-items: center; justify-content: center; text-align: center; max-width: 580px; margin: 0 auto; }
.bed-lf-banner__text h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; font-weight: 700; letter-spacing: .02em !important; text-transform: uppercase !important; color: #212529; width: auto; }
.bed-lf-banner__text h2 { margin: 0 0 10px; font-size: 26px; line-height: 40px; font-weight: 700; letter-spacing: .02em !important; color: #212529; width: auto; }
.bed-lf-banner__text p { max-width: 83%; margin: 0 auto; font-size: 14px; line-height: 26px; font-weight: 500; letter-spacing: .02em; color: #212529; }
.bed-lf-banner__btnrow { display: flex; justify-content: center; }
.bed-lf-banner__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; min-height: 60px; margin-top: 30px; padding: 0 20px; border-radius: 50px; background: var(--bed-primary); color: #fff !important; font-size: 14px; font-weight: 700; line-height: 1; }
.bed-lf-banner__btn:hover { background: var(--bed-secondary); color: var(--bed-primary) !important; }
@media (max-width: 1199px) { .bed-lf-banner__cover a { height: 334px; } .bed-lf-banner__text { left: 1%; max-width: 500px; } .bed-lf-banner__text h3 { font-size: 14px; margin-bottom: 5px; } .bed-lf-banner__text h2 { font-size: 21px; line-height: 23px; } .bed-lf-banner__text p { font-size: 13px; line-height: 22px; } .bed-lf-banner__btn { min-height: 48px; min-width: 190px; margin-top: 25px; } }
@media (max-width: 1024px) { .bed-lf-banner__cover a { height: 284px; } }
@media (max-width: 991px) { .bed-lf-banner__cover a { height: 275px; } .bed-lf-banner__text { max-width: 420px; left: 2%; } .bed-lf-banner__text h3 { font-size: 15px; } .bed-lf-banner__text h2 { margin-bottom: 5px; font-size: 18px; line-height: 27px; } .bed-lf-banner__text p { line-height: 20px; } .bed-lf-banner__btn { min-height: 42px; min-width: 182px; margin-top: 20px; font-size: 13px; } }
@media (max-width: 768px) { .bed-lf-banner__cover a { height: 210px; } }
@media (max-width: 767px) { .bed-lf-banner__text { max-width: 342px; left: 3%; } .bed-lf-banner__text p { display: none; } }
@media (max-width: 575px) { .bed-lf-banner__cover a { height: 170px; } .bed-lf-banner__cover img { border-radius: 10px; width: 100%; height: 100%; object-fit: cover; } .bed-lf-banner__text { max-width: 290px; } .bed-lf-banner__text h2 { font-size: 14px; line-height: 22px; } .bed-lf-banner__btn { min-height: 37px; min-width: 145px; margin-top: 15px; } }
@media (max-width: 449px) { .bed-lf-banner__cover a { height: 150px; } .bed-lf-banner__text h2 { font-size: 13px; line-height: 20px; } }

/* 5. Dải logo đối tác */
.bed-lf-brands { padding: 60px 0; }
.bed-lf-brands__box { padding: 28px 0; background: #fbfbfb; border-radius: 80px; }
body.bed-theme .bed-lf-brands__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 140px) / 8) !important; margin-right: 20px; text-align: center; }
body.bed-theme .bed-lf-brands__slider .flickity-slider > .bed-lf-cell img { display: inline-block; width: 100px; height: 88px; object-fit: contain; }
.bed-lf-brands__slider .flickity-page-dots { display: none !important; }
@media (max-width: 1199px) { body.bed-theme .bed-lf-brands__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 100px) / 6) !important; } }
@media (max-width: 991px) { body.bed-theme .bed-lf-brands__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 60px) / 4) !important; } }
@media (max-width: 767px) { body.bed-theme .bed-lf-brands__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 20px) / 3) !important; margin-right: 10px; } .bed-lf-brands__slider .flickity-page-dots { display: flex !important; } .bed-lf-brands__box { border-radius: 40px; } }
@media (max-width: 499px) { body.bed-theme .bed-lf-brands__slider .flickity-slider > .bed-lf-cell { width: 100% !important; margin-right: 0; } }

/* 6. Đánh giá khách hàng */
.bed-lf-feedback { padding: 60px 0; }
.bed-lf-feedback__wrap { padding: 25px; overflow: hidden; }
.bed-lf-feedback__slider .flickity-viewport { overflow: visible; }
.bed-lf-feedback__slider .bed-lf-cell { min-height: 375px; }
body.bed-theme .bed-lf-feedback__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 80px) / 3) !important; margin: 0 20px; padding: 0; border: 1px solid var(--bed-primary); border-radius: 6px; background: rgba(255, 255, 255, .3); opacity: .2; transform: none; transition: all .5s ease-in-out; box-sizing: border-box; }
body.bed-theme .bed-lf-feedback__slider .flickity-slider > .bed-lf-cell.is-selected { opacity: 1; transform: scale(1.1); background: #fff; }
.bed-lf-fb { padding: 48px 24px; text-align: center; display: grid; justify-items: center; align-items: center; margin: 0 auto; }
.bed-lf-fb__text { position: relative; margin: 0 0 15px; padding-bottom: 20px; font-size: 15px; font-style: italic; font-weight: 400; color: #000; line-height: 1.5; }
.bed-lf-fb__text::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; width: 75%; margin: 0 auto; border-top: 1px solid var(--bed-primary); }
.bed-lf-fb__text::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 20px; height: 20px; background: #fff; border-bottom: 1px solid var(--bed-primary); border-right: 1px solid var(--bed-primary); transform: translateX(-50%) rotate(45deg); }
.bed-lf-fb__pic { width: 100px; height: 100px; margin: 25px auto; overflow: hidden; border-radius: 50%; }
.bed-lf-fb__pic img { width: 100%; height: auto; }
.bed-lf-fb__name { display: inline-block; margin: 0; font-size: 18px; line-height: 1.2; font-weight: 700; color: var(--bed-primary); text-transform: capitalize !important; width: auto; }
.bed-lf-feedback__slider .flickity-prev-next-button { display: none !important; }
@media (max-width: 991px) { body.bed-theme .bed-lf-feedback__slider .flickity-slider > .bed-lf-cell { width: calc((100% - 120px) / 2) !important; } }
@media (max-width: 639px) { .bed-lf-feedback__slider .bed-lf-cell { min-height: 398px; } body.bed-theme .bed-lf-feedback__slider .flickity-slider > .bed-lf-cell { width: 100% !important; margin: 0 15px; } body.bed-theme .bed-lf-feedback__slider .flickity-slider > .bed-lf-cell.is-selected { transform: none; } }

/* 7. Tin tức */
.bed-lf-blogs { padding: 50px 0; }
.bed-lf-blogs__row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.bed-lf-blog { width: 50%; padding: 0 10px; box-sizing: border-box; }
.bed-lf-blog__card { display: flex; align-items: center; margin: 0 0 30px; }
.bed-lf-blog__thumb, .bed-lf-blog__body { flex: 0 0 50%; max-width: 50%; box-sizing: border-box; }
.bed-lf-blog__thumb { padding-right: 10px; }
.bed-lf-blog__body { padding-left: 10px; }
.bed-lf-blog__thumb a { position: relative; display: block; overflow: hidden; }
.bed-lf-blog__thumb img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 15px; }
.bed-lf-blog__body h3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0 0 10px; line-height: 26px; width: auto; word-break: break-word; }
.bed-lf-blog__body h3 a { display: block; font-size: 18px; font-weight: 700; color: #494949; }
.bed-lf-blog__body h3 a:hover { color: var(--bed-secondary); }
.bed-lf-blog__body p { margin: 0 0 10px; font-size: 14px; line-height: 20px; color: #656565; word-break: break-word; }
.bed-lf-blog__meta { margin-bottom: 10px; }
.bed-lf-blog__meta span { display: inline-block; margin-right: 10px; font-size: 13px; color: #808080; }
.bed-lf-blog__meta svg { width: 14px; height: 14px; margin-right: 3px; margin-top: -3px; vertical-align: middle; }
@media (max-width: 991px) { .bed-lf-blog { width: 100%; } }
@media (max-width: 767px) {
	.bed-lf-blogs { padding: 25px 0 10px; }
	.bed-lf-blog__card { display: block; margin: 0 0 5px; padding-bottom: 5px; border-bottom: 1px solid #e5e5e5; margin-bottom: 15px; }
	.bed-lf-blog__thumb, .bed-lf-blog__body { flex: none; max-width: 100%; padding: 0; }
	.bed-lf-blog__thumb { margin-bottom: 15px; }
	.bed-lf-blog:last-child .bed-lf-blog__card { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
}

/* hero trên mobile: cao tối thiểu 155px như mẫu (ảnh phủ kín) */
@media (max-width: 480px) { body.bed-site-lofi .bed-hero__img { height: 155px; width: 100%; object-fit: cover; } }
/* ảnh thẻ bài viết: cắt tỉ lệ cố định */
.bed-lf-blog__thumb img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 767px) { .bed-lf-blog__thumb img { aspect-ratio: 4 / 3; } }
