/* ==========================================================================
   Bed — D2: trang chi tiết sản phẩm + xem nhanh (quick view)
   Nguồn: css-js/custom.css, global.css, components.css, quickview.css của mẫu (1rem mẫu = 10px).
   Breakpoint mẫu: 768 / 976 / 1024. Tất cả selector nằm trong .bed-pd / .bed-gal / .bed-vp / .bed-pd-*
   ========================================================================== */

.bed-single { background: var(--bed-bg-body); --bed-sticky-top: 100px; }
.bed-pd [hidden], .bed-single [hidden], .bed-qv [hidden] { display: none !important; }

/* ---------- Breadcrumb (dải nền nhẹ) ---------- */

/* ---------- Vùng sản phẩm (dải trắng) ---------- */
.bed-pd-main { background: #fff; padding-bottom: 20px; overflow-x: clip; }
.bed-pd-notices .woocommerce-notices-wrapper:empty { display: none; }
.bed-pd-notices { margin-bottom: 8px; }

.bed-pd {
	font-family: var(--bed-font-body); color: var(--bed-fg); font-size: 16px; line-height: 1.42857;
	--bed-flash-process: #da2626;
}
.bed-pd *, .bed-pd *::before, .bed-pd *::after { box-sizing: border-box; }
.bed-pd img { max-width: 100%; height: auto; }
.bed-pd button { margin: 0; min-height: 0; text-transform: none; letter-spacing: normal; }

/* banner ngang */
.bed-pd__banner { width: 100%; margin-bottom: 16px; }
.bed-pd__banner picture, .bed-pd__banner img { display: block; width: 100%; height: auto; }
.bed-pd__banner img { border-radius: 8px; }
.bed-pd__banner--info { margin: 0 0 16px; }

/* ---------- Lưới 2 cột: gallery 6fr | thông tin 5fr ---------- */
.bed-pd__grid {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 24px; align-items: start;
	width: 100%; max-width: 1200px; margin: 0 auto; position: relative;
}
@media (min-width: 1024px) { .bed-pd__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 24px; } }
.bed-pd__gallery { min-width: 0; height: fit-content; }
.bed-pd__info { min-width: 0; }
@media (min-width: 1024px) {
	.bed-pd--page .bed-pd__gallery { position: sticky; top: var(--bed-sticky-top, 100px); border-radius: 12px; }
	.bed-pd--page .bed-pd__info { grid-row: 1; grid-column: 2; align-self: start; position: sticky; top: var(--bed-sticky-top, 100px); }
}
.bed-pd__info-in { background: #fff; }
@media (min-width: 768px) { .bed-pd__info-in { padding: 24px 0; } }

/* ---------- Gallery ---------- */
.bed-gal { padding-top: 12px; }
@media (min-width: 768px) { .bed-gal { padding-top: 24px; } }
.bed-gal__wrap { display: flex; flex-direction: column; gap: 8px; }
.bed-gal__main { position: relative; min-width: 0; order: 1; }
.bed-gal__thumbs { order: 2; min-width: 0; }
@media (min-width: 768px) {
	.bed-gal__wrap { flex-direction: row; align-items: stretch; gap: 24px; }
	.bed-gal__main { order: 2; flex: 1 1 0; }
	.bed-gal__thumbs { order: 1; position: relative; flex: 0 0 80px; width: 80px; }
}
.bed-gal__thumbs-in { display: flex; flex-direction: row; gap: 12px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.bed-gal__thumbs-in::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .bed-gal__thumbs-in { position: absolute; inset: 0; flex-direction: column; overflow-x: hidden; overflow-y: auto; } }
/* Flatsome (Customizer) ép button:not(.icon){border-radius:999px!important} → đặt lại tường minh */
.bed-pd button.bed-gal__thumb {
	flex: 0 0 61px; width: 61px; aspect-ratio: 123 / 160; padding: 2px; margin: 0; background: none; box-shadow: none; min-height: 0; line-height: 0;
	border: 2px solid var(--bed-n50); border-radius: 8px !important; overflow: hidden; cursor: pointer; opacity: .6; transition: opacity .3s ease;
}
@media (min-width: 768px) { .bed-pd button.bed-gal__thumb { flex: 0 0 auto; width: 100%; } }
.bed-pd button.bed-gal__thumb.is-active { opacity: 1; border-color: var(--bed-primary); }
.bed-gal__thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 5px; }

.bed-gal__badges { position: absolute; top: 8px; left: 8px; z-index: 10; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.bed-gal__badges .bed-badge { font-size: 12px; padding: 5px 9px; }
.bed-gal__slider { position: relative; width: 100%; }
.bed-gal__slider:not(.flickity-enabled) { display: flex; overflow: hidden; white-space: normal; }
.bed-gal__slider:not(.flickity-enabled) > * { flex: 0 0 100%; display: block !important; }
.bed-gal__slider > .bed-gal__slide { width: 100%; margin: 0; padding: 0; }
.bed-gal__slide { aspect-ratio: 123 / 160; display: flex; align-items: center; justify-content: center; position: relative; cursor: zoom-in; }
.bed-gal__img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.bed-gal__slider .flickity-viewport { overflow: hidden; border-radius: 12px; }
.bed-gal__slider .flickity-prev-next-button { opacity: 0; }
.bed-gal__slider:hover .flickity-prev-next-button:not(:disabled) { opacity: 1; }
@media (max-width: 767px) { .bed-gal__slider .flickity-prev-next-button { display: none; } }

/* ---------- Tiêu đề / thương hiệu / mã ---------- */
.bed-pd__title-wrap, .bed-pd__pricegroup { font-weight: 600; letter-spacing: normal; }
.bed-pd__title-wrap { margin-bottom: 16px; }
.bed-pd .bed-pd__title {
	font-family: var(--bed-font-body) !important; font-weight: 600 !important; font-size: 28px; line-height: 1.3;
	letter-spacing: normal; text-transform: none; color: var(--bed-fg); margin: 0 0 8px; text-wrap: pretty;
}
.bed-pd__title-link { color: inherit; text-decoration: none; display: block; }
.bed-pd__status-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-bottom: 8px; margin-top: 8px; }
.bed-pd__status { font-size: 14px; line-height: 20px; font-weight: 600; }
body.bed-theme .bed-pd__vendor { font-weight: 600; text-decoration: underline; color: var(--bed-fg); transition: color .15s; }
body.bed-theme .bed-pd__vendor:hover { color: var(--bed-primary); }

/* ---------- Nhóm giá ---------- */
.bed-pd__pricegroup { display: grid; border-radius: 8px; overflow: hidden; margin: 8px 0; }
.bed-pd__flash {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: var(--bed-primary); color: #fff; padding: 8px 15px;
	--bed-ctd-bg: var(--bed-primary); --bed-ctd-color: #fff;
}
.bed-pd__flash-stock { width: 50%; min-width: 0; }
@media (min-width: 768px) { .bed-pd__flash-stock { width: 200px; } }
.bed-pd__flash .bed-stock { margin: 0; }
.bed-pd__flash .bed-stock__label { color: #fff; font-size: 16px; line-height: 1.2; margin-bottom: 4px; }
.bed-pd__flash .bed-stock__bar { background: #f0eeeb; height: 4px; }
.bed-pd__flash .bed-stock__bar i { background: #da2626; }
.bed-pd__flash-timer { flex: 0 0 auto; }
.bed-pd__flash .bed-countdown { width: auto; }
.bed-pd__flash .bed-countdown__row { width: auto; justify-content: flex-end; }
.bed-pd__flash .bed-ctd__item { width: 32px; padding: 6px 4px; box-sizing: border-box; }
.bed-pd__flash .bed-ctd__num { font-size: 16px; font-weight: 600; }
.bed-pd__flash .bed-ctd__dot { color: #fff; }
/* chương trình chưa bắt đầu / đã kết thúc → ẩn thanh navy (như mẫu) */
.bed-pd__pricegroup:has(.bed-countdown.is-ended) .bed-pd__flash,
.bed-pd__pricegroup:has(.bed-countdown.is-not-started) .bed-pd__flash { display: none; }
.bed-pd__pricegroup.has-flash:has(.bed-countdown.is-ongoing) { border: 1px solid var(--bed-primary); }
.bed-pd__pricebox { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.bed-pd__pricegroup.has-flash:has(.bed-countdown.is-ongoing) .bed-pd__pricebox { padding: 12px 15px 8px; }
.bed-pd__price { font-family: var(--bed-font-body); font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: normal; color: var(--bed-price); }
.bed-pd__price--contact { color: var(--bed-error); font-family: var(--bed-font-body); }
.bed-pd__compare { font-family: var(--bed-font-body); font-weight: 600; font-size: 16px; color: var(--bed-price-compare); text-decoration: line-through; }
.bed-pd__off { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; background: #fdeaea; color: var(--bed-price); font-size: 14px; font-weight: 600; line-height: 1.5; }

/* ---------- "Quà tặng khuyến mãi" ---------- */
.bed-pd__promo { padding-top: 5px; margin-bottom: 24px; }
.bed-promo { position: relative; margin-top: 12px; border: 2px dashed var(--bed-primary); border-radius: 8px; background: #fff; }
.bed-promo__header {
	position: absolute; top: 0; left: 16px; transform: translateY(-50%); display: flex; align-items: center; gap: 4px;
	padding: 0 8px; background: #fff; color: var(--bed-primary); font-weight: 600; letter-spacing: normal; text-transform: uppercase; font-size: 16px; line-height: 1.2;
}
.bed-promo__title { white-space: nowrap; }
.bed-promo__body { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 12px; }
@media (min-width: 1024px) { .bed-promo__body { display: grid; grid-template-columns: 1fr; } }
.bed-promo__item { position: relative; padding-left: 18px; line-height: 1.6; font-size: 16px; }
.bed-promo__item::before { content: ""; position: absolute; left: 4px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.bed-pd .bed-promo__copy {
	display: inline; margin: 0 0 0 4px; padding: 0; border: 0; background: none; box-shadow: none;
	color: #f5533d; font-weight: 600; font-size: inherit; line-height: inherit; cursor: pointer;
}
.bed-pd .bed-promo__copy:hover { text-decoration: underline; }

.bed-pd__coupon { margin-bottom: 16px; }

/* ---------- Chọn biến thể ---------- */
.bed-vp { display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px; }
.bed-vp__input { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.bed-vp__label-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.bed-vp__label { min-width: 88px; color: var(--bed-n400); }
.bed-vp__name { font-weight: 600; }
.bed-pd .bed-vp__guide {
	display: inline-flex; align-items: center; gap: 4px; padding: 0; margin: 0; border: 1px solid transparent; border-radius: 9999px; background: none; box-shadow: none; min-height: 0;
	color: var(--bed-n300); font-size: 16px; font-weight: 600; line-height: 1.42857; letter-spacing: inherit; cursor: pointer;
	transition: background-color .2s, color .2s;
}
.bed-pd .bed-vp__guide span { text-decoration: underline; }
.bed-pd .bed-vp__guide .bed-icon { flex: none; width: 24px; height: 24px; }
.bed-pd .bed-vp__guide:hover { color: var(--bed-primary); }
.bed-vp__options { display: flex; flex-wrap: wrap; gap: 8px; }
.bed-vp__item { position: relative; display: inline-block; }
.bed-vp__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bed-pd .bed-vp__item label { margin: 0; color: inherit; overflow: visible; }
/* ô ảnh màu */
.bed-pd .bed-vp__swatch {
	display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer;
	width: 40px; height: 40px; padding: 0; border-radius: 9999px; border: 1px solid var(--bed-n50);
	box-shadow: 0 0 0 1px var(--bed-n50), inset 0 0 0 2px #fff; transition: all .3s ease-out; background: #fff;
}
.bed-vp__spot { display: block; width: 34px; height: 34px; border-radius: 9999px; overflow: hidden; }
.bed-vp__spot img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.bed-vp__radio:checked + .bed-vp__swatch { border-color: var(--bed-primary); box-shadow: 0 0 0 1px var(--bed-primary), inset 0 0 0 2px #fff; }
.bed-vp__radio:focus-visible + label { outline: 2px solid var(--bed-primary); outline-offset: 2px; }
/* nút chữ */
.bed-pd .bed-vp__item label.bed-vp__btn {
	display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer;
	min-width: 60px; padding: 8px 16px; border: 1px solid var(--bed-n50); border-radius: 9999px; background: transparent;
	color: var(--bed-primary); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: inherit; text-transform: none; transition: background-color .2s, color .2s; text-align: center;
}
.bed-pd .bed-vp__radio:checked + .bed-vp__btn { background: var(--bed-primary); color: #fff; border-color: var(--bed-primary); box-shadow: none; }
/* tổ hợp không tồn tại */
.bed-vp__radio.is-disabled + label { opacity: .5; }
.bed-vp__radio.is-disabled + label::after {
	content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--bed-n100); transform: rotate(200deg) scale(1.1);
}
.bed-vp__radio.is-disabled + .bed-vp__swatch::after { transform: rotate(220deg) scale(1.1); }

/* ---------- Số lượng / trạng thái / nút ---------- */
.bed-pd__cta { margin: 24px 0 0; }
.bed-pd--qv .bed-pd__cta { margin-top: 16px; }
.bed-pd__row { display: flex; align-items: center; gap: 12px; }
.bed-pd__qty-row { margin-bottom: 16px; }
.bed-pd__lbl { width: 88px; flex: 0 0 88px; color: var(--bed-n400); font-weight: 600; }
.bed-pd__inv .bed-pd__lbl { font-weight: 400; }
.bed-pd__qty { display: flex; width: 130px; height: 38px; border: 1px solid var(--bed-n50); border-radius: 8px; background: #fff; overflow: hidden; }
.bed-pd .bed-pd__qty-btn { flex: 0 0 38px; display: flex; align-items: center; justify-content: center; width: 38px; height: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--bed-fg); cursor: pointer; }
.bed-pd .bed-pd__qty-btn:hover { background: var(--bed-n50); }
.bed-pd .bed-pd__qty-input {
	flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
	text-align: center; font-size: 16px; font-weight: 600; color: var(--bed-fg); -moz-appearance: textfield; appearance: textfield; outline: 0;
}
.bed-pd .bed-pd__qty-input::-webkit-outer-spin-button, .bed-pd .bed-pd__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bed-pd__stock { display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--bed-success); }
.bed-pd__stock.is-out { color: var(--bed-error); }
.bed-pd__btns { --bed-btn: var(--bed-primary); --bed-btn-text: #fff; display: flex; flex-direction: column; gap: 16px; margin-top: 16px; padding: 16px 0; }
@media (min-width: 768px) { .bed-pd__btns { flex-direction: row; } }
.bed-pd .bed-pd__btn { width: 100%; min-height: 60px; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.42857; text-transform: none; letter-spacing: -0.064px; }
.bed-pd .bed-pd__btn[data-act="buynow"] { border-color: var(--bed-fg); color: var(--bed-fg) !important; }
.bed-pd .bed-pd__btn[data-act="buynow"]:hover { background: transparent; color: var(--bed-fg) !important; }
.bed-pd .bed-pd__btn.bed-btn--primary:hover { border-color: #2c4238; }
.bed-pd__btn.is-loading { pointer-events: none; opacity: .85; }
.bed-pd__btn.is-loading .bed-pd__btn-label, .bed-pd__btn.is-loading .bed-icon { display: none; }
.bed-pd__dots { display: none; align-items: center; gap: 4px; }
.bed-pd__btn.is-loading .bed-pd__dots { display: inline-flex; }
.bed-pd__dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: bedPdPulse 1s ease-in-out infinite; }
.bed-pd__dots i:nth-child(2) { animation-delay: .15s; }
.bed-pd__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bedPdPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.bed-pd__msg { margin-top: 8px; color: var(--bed-error); font-size: 14px; }
.bed-pd__soldout {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; margin-top: 8px;
	border-radius: 9999px; background: var(--bed-n50); font-weight: 600; pointer-events: none;
}
.bed-pd__detail-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--bed-primary); text-decoration: underline; }
.bed-pd.is-busy .bed-pd__cta { pointer-events: none; opacity: .6; }

/* sản phẩm liên hệ (giá 0) */
.bed-pd__contact-card {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fafc;
}
.bed-pd__contact-ic { flex: 0 0 auto; color: var(--bed-n300); display: flex; }
.bed-pd__contact-tx { flex: 1 1 160px; display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.bed-pd__contact-btn { padding: 8px 18px; font-size: 14px; }

/* ---------- Dịch vụ áp dụng ---------- */
.bed-policy { margin-top: 24px; }
body.bed-theme .bed-policy__title { margin: 0 0 12px; font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: normal; text-transform: none; }
.bed-policy__list { border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fafc; }
.bed-policy__row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e5e7eb; }
.bed-policy__row:last-child { border-bottom: 0; }
.bed-pd .bed-policy__icon { flex: 0 0 24px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.bed-pd .bed-policy__icon img { width: 100%; height: 100%; object-fit: contain; }
.bed-policy__text { flex: 1 1 auto; min-width: 0; display: block; }
.bed-policy__row-title { display: inline; margin: 0; font-size: 14px; line-height: 1.4; font-weight: 400; letter-spacing: normal; }
.bed-policy__tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; color: var(--bed-n200); cursor: pointer; }
.bed-policy__tip-box {
	position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 300px; max-width: 80vw; padding: 8px 12px;
	border-radius: 8px; background: #000000; color: #fff; font-size: 13px; line-height: 1.5; opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 200; pointer-events: none;
}
@media (min-width: 1024px) { .bed-policy__tip:hover .bed-policy__tip-box, .bed-policy__tip:focus .bed-policy__tip-box { opacity: 1; visibility: visible; } }
.bed-policy__pill { flex: 0 0 auto; margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--bed-n50); font-size: 13px; white-space: nowrap; }
.bed-policy__store {
	flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 8px;
	font-size: 12px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
	color: var(--bed-primary); background: rgba(var(--bed-primary-rgb), .08); border: 1px solid rgba(var(--bed-primary-rgb), .28); transition: background-color .2s, border-color .2s;
}
.bed-policy__store:hover { background: rgba(var(--bed-primary-rgb), .16); border-color: rgba(var(--bed-primary-rgb), .45); color: var(--bed-primary); }

/* ---------- Chia sẻ ---------- */
.bed-pd .bed-share { margin: 24px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 12px; background: #f9fafb; }
.bed-share__social { display: flex; align-items: center; gap: 8px; }
.bed-share__avatar { display: block; width: 32px; height: 32px; border-radius: 9999px; overflow: hidden; flex: 0 0 32px; }
.bed-share__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bed-share__info { display: flex; flex-direction: column; gap: 4px; }
.bed-share__name { font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: normal; }
body.bed-theme .bed-share__link { font-size: 12px; line-height: 16px; color: inherit; text-decoration: underline; }
body.bed-theme .bed-share__link:hover { color: #000; }
.bed-pd .bed-share__list { display: flex; align-items: center; gap: 12px; }
.bed-share__lbl { font-size: 12px; line-height: 1.333; font-weight: 700; text-transform: uppercase; color: inherit; }
.bed-pd .bed-share__btn {
	display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; margin: 0;
	border: 1px solid var(--bed-n50); border-radius: 9999px; background: #fff; cursor: pointer; box-shadow: none; transition: background .2s;
}
.bed-pd .bed-share__btn:hover { background: var(--bed-n50); }
.bed-share__btn img { width: 20px; height: 20px; max-width: 100%; object-fit: contain; display: block; margin: 0; }
@media (min-width: 1024px) { .bed-pd .bed-share__btn--msg { display: none; } }
.bed-pd .bed-share__btn[data-bed-share] { display: none; }
.bed-can-share .bed-pd .bed-share__btn[data-bed-share] { display: flex; }

/* ---------- Tab dưới (mô tả / thông số / chính sách / đánh giá) ---------- */
.bed-pd__tabs-card { max-width: 1200px; width: 100%; margin: 24px auto; }
@media (min-width: 1024px) { .bed-pd__tabs-card { margin: 48px auto; } }
.bed-pd__tabs { background: #fff; border-radius: 24px; box-shadow: 0 20px 60px -15px rgba(0,0,0,.05); }
.bed-pd__tabs-head { padding: 24px 24px 0; }
.bed-pd__tabs-wrap { display: flex; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 5px; margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.bed-pd__tabs-wrap::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .bed-pd__tabs-wrap { justify-content: center; margin: 0; padding: 0; } }
.bed-pd__tabs-nav { display: inline-flex; gap: 0; margin: 0; padding: 5px; list-style: none; min-width: max-content; white-space: nowrap; background: #f1f3f5; border-radius: 12px; }
.bed-pd__tabs-nav li { margin: 0; list-style: none; }
.bed-pd-main .bed-pd__tab {
	display: block; min-height: 0; padding: 8px 24px; margin: 0; border: 0; border-radius: 9999px; background: transparent; box-shadow: none;
	font-family: var(--bed-font-body); font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: inherit; text-transform: none; color: #6c757d; cursor: pointer; transition: background-color .2s, color .2s;
}
.bed-pd-main .bed-pd__tab:hover:not(.is-active) { color: #212529; background: rgba(0,0,0,.03); }
.bed-pd-main .bed-pd__tab.is-active { background: #fff; color: var(--bed-primary); box-shadow: 0 4px 10px rgba(0,0,0,.05); }
.bed-pd__tabs-body { padding: 24px; }
.bed-pd__panel.is-active { animation: bedPdTabIn .4s ease; }
@keyframes bedPdTabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* readmore */
.bed-rm { position: relative; }
.bed-rm.is-clamped .bed-rm__content { overflow: hidden; max-height: var(--rm-h, 800px); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
.bed-rm.is-clamped.is-expanded .bed-rm__content { max-height: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
.bed-rm__more { position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; z-index: 10; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; background: linear-gradient(transparent, #fff 80%); }
.bed-rm.is-expanded .bed-rm__more { position: relative; height: auto; padding-top: 20px; background: none; pointer-events: auto; }
.bed-pd-main .bed-rm__btn {
	display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 28px; border: 1px solid #e9ecef; border-radius: 100px; background: #fff;
	color: var(--bed-primary); font-size: 13px; font-weight: 700; line-height: 1.42857; letter-spacing: inherit; text-transform: none; min-height: 0; cursor: pointer; pointer-events: auto; box-shadow: 0 2px 8px rgba(0,0,0,.02); transition: all .2s ease;
}
.bed-pd-main .bed-rm__btn:hover { background: #f8f9fa; border-color: var(--bed-primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.bed-rm.is-expanded .bed-rm__btn { background: transparent; border-color: transparent; color: #adb5bd; font-weight: 500; box-shadow: none; }
.bed-rm.is-expanded .bed-rm__btn:hover { color: var(--bed-primary); }
.bed-rm.is-expanded .bed-rm__btn .bed-icon { transform: rotate(180deg); }

/* nội dung (dùng .prose chung ở bed-el-c.css; ảnh .content img + bảng thông số theo mẫu) */
.bed-prose { max-width: 100%; }
.bed-prose table { width: 100% !important; table-layout: auto; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 16px; line-height: inherit; }
.bed-prose table td, .bed-prose table th { padding: 8px; border: 0; border-right: 1px solid var(--bed-n100); border-bottom: 1px solid var(--bed-n100); text-align: left; vertical-align: top; }
.bed-prose table tr:nth-of-type(odd) { background: var(--bed-n50); border: 0; }
.bed-prose table tr:first-child td { border-top: 1px solid var(--bed-n100); }
.bed-prose table tr td:first-child { border-left: 1px solid var(--bed-n100); width: 40%; font-weight: 400; color: inherit; }
.bed-prose table tr:first-child td:first-child { border-top-left-radius: 8px; }
.bed-prose table tr:first-child td:last-child { border-top-right-radius: 8px; }
.bed-prose table tr:last-child td:last-child { border-bottom-right-radius: 8px; }
.bed-prose table tr:last-child td:first-child { border-bottom-left-radius: 8px; }

/* ---------- Đánh giá ---------- */
.bed-pd-reviews { font-size: 15px; }
.bed-reviews__title { font-family: var(--bed-font-body); font-size: 20px; font-weight: 700; margin: 0 0 16px; text-transform: none; }
.bed-reviews__summary { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.bed-reviews__avg { font-size: 36px; font-weight: 700; line-height: 1; }
.bed-reviews__count { color: var(--bed-n300); font-size: 14px; }
.bed-reviews .commentlist { list-style: none; margin: 0 0 24px; padding: 0; }
.bed-review { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--bed-n50); list-style: none; }
.bed-review__in { display: flex; gap: 12px; align-items: flex-start; }
.bed-review__in img.avatar { width: 44px; height: 44px; border-radius: 9999px; margin: 0; flex: 0 0 44px; }
.bed-review__body { flex: 1 1 auto; min-width: 0; }
.bed-review__body .star-rating { margin: 0 0 4px; float: none; }
.bed-review__body .woocommerce-review__author { font-weight: 600; }
.bed-review__body .woocommerce-review__published-date { color: var(--bed-n200); font-size: 13px; }
.bed-review__body p { margin: 4px 0 0; }
.bed-reviews .woocommerce-noreviews, .bed-reviews .woocommerce-verification-required { color: var(--bed-n300); }
.bed-reviews__form { margin-top: 24px; padding: 24px; border-radius: 16px; background: #f9fafb; }
.bed-reviews__form .comment-reply-title { display: block; margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.bed-reviews__form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--bed-fg); }
.bed-reviews__form input[type="text"], .bed-reviews__form input[type="email"], .bed-reviews__form select, .bed-reviews__form textarea {
	width: 100%; padding: 10px 14px; height: auto; border: 1px solid var(--bed-n50); border-radius: 8px; background: #fff; box-shadow: none; font-size: 15px;
}
.bed-reviews__form textarea { min-height: 120px; }
.bed-reviews__form input:focus, .bed-reviews__form select:focus, .bed-reviews__form textarea:focus { border-color: var(--bed-primary); box-shadow: none; }
.bed-reviews__form .comment-form-author, .bed-reviews__form .comment-form-email { display: inline-block; width: calc(50% - 8px); vertical-align: top; }
.bed-reviews__form .comment-form-author { margin-right: 12px; }
@media (max-width: 767px) { .bed-reviews__form .comment-form-author, .bed-reviews__form .comment-form-email { display: block; width: 100%; margin-right: 0; } }
.bed-reviews__form .form-submit { margin: 12px 0 0; }
.bed-reviews__form input[type="submit"] {
	display: inline-flex; padding: 12px 28px; margin: 0; border: 0; border-radius: 9999px; background: var(--bed-primary); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; width: auto; height: auto; line-height: 1.5;
}
.bed-reviews__form .stars a { color: #f2bc1b; }

/* ---------- Khối sản phẩm liên quan / cùng phân khúc / đã xem ---------- */
.bed-pd-sec { margin: 32px 0; }
@media (min-width: 768px) { .bed-pd-sec { margin: 64px 0; } }
.bed-pd-sec .bed-heading { margin-bottom: 20px; }
@media (min-width: 768px) { .bed-pd-sec .bed-heading { margin-bottom: 32px; } }
.bed-single > .bed-pd-sec:last-child { margin-bottom: 64px; }

/* ---------- Thanh thêm giỏ dính đáy (mobile) ---------- */
.bed-pd-sticky { display: none; }
@media (max-width: 767px) {
	.bed-pd-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; transform: translateY(110%); transition: transform .3s ease; }
	.bed-pd-sticky.is-visible { transform: translateY(0); }
	body.bed-single-product { padding-bottom: 0; }
}
.bed-pd-sticky__in { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; background: #fff; border-radius: 8px 8px 0 0; box-shadow: var(--bed-shadow-l); }
.bed-pd-sticky__price { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bed-pd-sticky__name { font-size: 12px; line-height: 1.4; color: var(--bed-n300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bed-pd-sticky__val { font-size: 16px; font-weight: 700; color: var(--bed-price); line-height: 1.3; }
.bed-pd .bed-pd-sticky__btn, .bed-pd-sticky .bed-pd-sticky__btn { flex: 0 0 auto; min-width: 150px; margin: 0; padding: 10px 20px; --bed-btn: var(--bed-primary); }

/* ---------- Modal bảng size & toast ---------- */
.bed-modal--size .bed-modal__box { max-width: 700px; padding: 28px 24px 24px; }
.bed-sizechart__title { font-family: var(--bed-font-body); font-size: 20px; font-weight: 700; margin: 0 0 16px; padding-right: 32px; text-transform: none; }
.bed-sizechart__scroll { overflow-x: auto; }
.bed-sizechart table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.bed-sizechart th, .bed-sizechart td { padding: 10px 12px; border: 1px solid var(--bed-n50); text-align: left; }
.bed-sizechart thead th { background: var(--bed-n50); font-weight: 600; }
.bed-sizechart tbody th { font-weight: 600; }
.bed-sizechart tbody tr:hover td, .bed-sizechart tbody tr:hover th { background: #fafafa; }
.bed-sizechart__note { margin: 12px 0 0; font-size: 13px; color: var(--bed-n300); }
.bed-modal--tip .bed-modal__box { max-width: 420px; }
.bed-pd-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 100001; display: flex; align-items: center; gap: 12px;
	padding: 12px 20px; border-radius: 9999px; background: var(--bed-addtocart-bg); color: #fff; font-size: 14px; opacity: 0; transition: all .3s ease; max-width: calc(100vw - 24px);
}
.bed-pd-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.bed-pd-toast a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   XEM NHANH (quick view) — modal của mẫu: ảnh trái, thông tin phải
   ========================================================================== */
/* popup Tùy chọn / xem nhanh: nằm TRÊN header sticky (z 2000) và overlay; giới hạn chiều cao để không tràn màn hình */
.mfp-bg { z-index: 3200 !important; }
.mfp-wrap { z-index: 3201 !important; }
.mfp-wrap .mfp-container { padding-top: 24px; padding-bottom: 24px; box-sizing: border-box; }
.product-lightbox.lightbox-content { max-height: 88vh; max-height: 88dvh; overflow-y: auto; }
.product-lightbox.lightbox-content { max-width: 1000px; width: 100%; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--bed-shadow-l); }
.bed-qv { background: #fff; color: var(--bed-fg); }
.bed-qv__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px; }
@media (min-width: 768px) { .bed-qv__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; } }
.bed-qv .bed-gal { padding-top: 0; }
.bed-qv .bed-gal__wrap { flex-direction: column; gap: 8px; }
.bed-qv .bed-gal__main { order: 1; }
.bed-qv .bed-gal__thumbs { order: 2; position: static; flex: 0 0 auto; width: auto; }
.bed-qv .bed-gal__thumbs-in { position: static; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
.bed-pd.bed-pd--qv button.bed-gal__thumb, .bed-qv .bed-pd button.bed-gal__thumb { flex: 0 0 56px; width: 56px; }
@media (min-width: 768px) {
	.bed-qv .bed-pd__info { max-height: calc(72vh - 24px); overflow-y: auto; scrollbar-width: thin; }
	.bed-qv .bed-pd__info-in { padding: 8px 8px 8px 0; }
}
.bed-qv .bed-pd__title { font-size: 24px; margin-bottom: 4px; }
.bed-qv .bed-pd__title-wrap { margin-bottom: 8px; }
.bed-qv .bed-pd__status-group { margin-top: 4px; padding-bottom: 4px; }
.bed-qv .bed-vp { gap: 14px; }
.bed-qv .bed-pd__btns { padding-bottom: 8px; }
.bed-qv .bed-pd__detail-link { margin-bottom: 4px; }
.bed-qv .bed-gal__slider .flickity-prev-next-button { opacity: 1; }
@media (max-width: 767px) {
	/* mobile: ảnh thu nhỏ 80x80 cạnh tiêu đề, ẩn chi tiết phụ (như quickview.css) */
	.bed-qv__grid { position: relative; padding: 20px; max-height: 75vh; max-height: 75dvh; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
	.bed-qv .bed-pd__gallery { position: absolute; top: 20px; left: 20px; width: 80px; height: 80px; z-index: 2; pointer-events: none; overflow: hidden; border-radius: 8px; }
	.bed-qv .bed-gal, .bed-qv .bed-gal__wrap, .bed-qv .bed-gal__main, .bed-qv .bed-gal__slider, .bed-qv .bed-gal__slider .flickity-viewport, .bed-qv .bed-gal__slide { width: 80px; height: 80px !important; }
	.bed-qv .bed-gal__img { width: 80px; height: 80px; object-fit: cover; }
	.bed-qv .bed-gal__thumbs, .bed-qv .bed-gal__badges, .bed-qv .bed-gal__slider .flickity-prev-next-button, .bed-qv .bed-pd__status-group, .bed-qv .bed-pd__btn[data-act="buynow"] { display: none !important; }
	.bed-qv .bed-gal__slider .flickity-viewport { border-radius: 8px; }
	.bed-qv .bed-pd__title-wrap { padding-left: 92px; min-height: 80px; margin-bottom: 12px; }
	.bed-qv .bed-pd__title { font-size: 16px; }
	.bed-qv .bed-pd__price { font-size: 20px; }
	.bed-qv .bed-pd__pricegroup { margin-top: 0; }
	.bed-qv .bed-pd__btn { min-height: 44px; font-size: 14px; }
	.bed-qv .bed-pd__btns { padding: 8px 0; margin-top: 8px; }
	.bed-qv .bed-pd__info { max-height: none; overflow: visible; }
	.product-lightbox.lightbox-content { border-radius: 16px 16px 0 0; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.bed-qv .bed-pd__btn { font-size: 14px; padding-inline: 12px; gap: 6px; white-space: nowrap; }
}

/* ==========================================================================
   Flatsome (Customizer → Nút) ép  button:not(.icon){border-radius:999px!important}  (đặc hiệu 0,1,1)
   → các nút không phải dạng viên thuốc phải đặt lại bằng !important + đặc hiệu cao hơn
   ========================================================================== */
.bed-pd button.bed-pd__qty-btn { border-radius: 0 !important; }
.bed-pd-main button.bed-pd__tab { border-radius: 9999px !important; }
.bed-pd-sticky button, .bed-pd-main button.bed-rm__btn { border-radius: 9999px !important; }

/* ---------- "Xem sản phẩm thực tế" (dải video dọc 9:16) ---------- */
.bed-pd-vr-box { max-width: 1200px; margin: 32px auto; }
@media (min-width: 768px) { .bed-pd-vr-box { margin: 64px auto; } }
.bed-pd-vr__title { margin: 0 0 16px; font-family: var(--bed-font-heading); font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--bed-fg); text-align: left; }
@media (min-width: 768px) { .bed-pd-vr__title { font-size: 28px; line-height: 1.2; } }
.bed-pvr__slider { margin-left: -16px; }
.bed-pvr__slider:not(.flickity-enabled) { display: flex; overflow: hidden; }
.bed-pd-vr .bed-pvr__slider > .bed-pvr__slide, .bed-pd-vr .flickity-slider > div.bed-pvr__slide { flex: 0 0 auto; width: 42% !important; padding-left: 16px; box-sizing: border-box; }
@media (min-width: 768px) { .bed-pd-vr .bed-pvr__slider > .bed-pvr__slide, .bed-pd-vr .flickity-slider > div.bed-pvr__slide { width: 25% !important; max-width: 190px; } }
@media (min-width: 1024px) { .bed-pd-vr .bed-pvr__slider > .bed-pvr__slide, .bed-pd-vr .flickity-slider > div.bed-pvr__slide { width: calc(100% / var(--bed-pvr-cols, 6)) !important; max-width: none; } }
.bed-pd-vr .bed-vr__item { cursor: pointer; }

.bed-pd__compare-row { margin-top: 15px; }
.bed-pd .bed-promo__copy { letter-spacing: -0.064px; }

.bed-policy__text { letter-spacing: normal; }
.bed-pd .bed-policy__store, .bed-pd .bed-policy__store span { color: var(--bed-primary); }
