/* ==========================================================================
   Bed — D1: trang danh mục / tìm kiếm · giỏ hàng (trang + drawer + popup) · thanh toán · cảm ơn · tài khoản · thông báo · 404
   Nguồn đối chiếu: reference/css-js/{custom,global,components,cart-drawer}.css + pages/{chan_ga,cart,account_login,search_q_chan}.html
   Quy đổi rem → px (1rem của mẫu = 10px). Breakpoint mẫu: 768 / 976 / 1024 / 1270.
   Token: --bed-* ở đầu bed-base.css. Markup: inc/woo/{archive,cart,checkout,account,misc}.php + woocommerce/**.
   ========================================================================== */

/* ---------- Tiện ích dùng chung ---------- */
.bed-hide { display: none !important; }
body.bed-no-scroll { overflow: hidden; }
.bed-price-lg { color: var(--bed-price); font-family: var(--bed-font-heading); font-weight: 600; font-size: 18px; line-height: 1.3; }
.bed-grid__item { min-width: 0; }

/* Reset nút/biểu mẫu thô của Flatsome (margin 1em, chữ HOA, min-height…) trong vùng D1 — không đụng padding/viền của từng thành phần */
.bed-shop button, .bed-facet button, .bed-popup button, .bed-cart-page button, .bed-cart-drawer button,
.bed-woo-page button, .bed-woo-page .button, .bed-404 .bed-btn, .bed-qty button {
	margin: 0; min-height: 0; letter-spacing: normal; text-transform: none; text-shadow: none; box-shadow: none;
}
.bed-shop .bed-btn, .bed-facet .bed-btn, .bed-popup .bed-btn, .bed-cart-page .bed-btn, .bed-cart-drawer .bed-btn,
.bed-woo-page .bed-btn, .bed-404 .bed-btn {
	margin: 0; min-height: 0; letter-spacing: normal; text-transform: none; line-height: 20px;
}
.bed-woo-page .bed-btn--lg, .bed-popup .bed-btn--lg, .bed-404 .bed-btn--lg { line-height: 24px; }
.bed-shop ul, .bed-facet ul, .bed-cart-page ul, .bed-cart-drawer ul, .bed-popup ul, .bed-woo-page ul.bed-thanks__overview { margin-left: 0; }

/* Ô chọn / radio theo mẫu (.form-checkbox / .form-radio): 16px, viền n100, chọn → nền secondary + dấu tích trắng */
.bed-facet input.form-checkbox, .bed-facet input.form-radio, .bed-form input.form-checkbox,
.bed-woo-page input[type="checkbox"], .bed-woo-page input.input-radio, .bed-woo-page .wc_payment_method > input[type="radio"] {
	-webkit-appearance: none; appearance: none; display: inline-block; vertical-align: middle; flex: none;
	width: 16px; height: 16px; margin: 0; padding: 0; background-color: #fff; background-origin: border-box;
	border: 1px solid var(--bed-n50); box-shadow: none; cursor: pointer; color: var(--bed-secondary);
}
.bed-facet input.form-checkbox, .bed-form input.form-checkbox, .bed-woo-page input[type="checkbox"] { border-radius: 4px; }
.bed-facet input.form-radio, .bed-woo-page input.input-radio, .bed-woo-page .wc_payment_method > input[type="radio"] { border-radius: 50%; }
.bed-facet input.form-checkbox:checked, .bed-form input.form-checkbox:checked, .bed-woo-page input[type="checkbox"]:checked {
	border-color: transparent; background-color: var(--bed-secondary); background-size: 100% 100%; background-position: center; background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}
.bed-facet input.form-radio:checked, .bed-woo-page input.input-radio:checked, .bed-woo-page .wc_payment_method > input[type="radio"]:checked {
	border-color: transparent; background-color: var(--bed-secondary); background-size: 100% 100%; background-position: center; background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}
.bed-facet input.form-checkbox:focus-visible, .bed-facet input.form-radio:focus-visible, .bed-woo-page input[type="checkbox"]:focus-visible,
.bed-woo-page input.input-radio:focus-visible { outline: 2px solid var(--bed-secondary); outline-offset: 2px; }

/* ==========================================================================
   1. THÔNG BÁO WOO  (.bed-notice--success|error|info)
   ========================================================================== */
.bed-notice, body.bed-theme .woocommerce-message, body.bed-theme .woocommerce-info, body.bed-theme .woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
	list-style: none; margin: 0 0 16px; padding: 12px 16px;
	border: 1px solid var(--bed-n50); border-left-width: 4px; border-radius: 8px; background: #fff;
	font-size: 14px; line-height: 1.5; color: var(--bed-fg);
}
.bed-notice::before, .bed-notice::after { content: none; display: none; }
.bed-notice--success { border-color: #cfe9c9; border-left-color: var(--bed-success); background: #f3faf1; }
.bed-notice--error { border-color: #f6cdd0; border-left-color: var(--bed-error); background: #fdf1f2; }
.bed-notice--info { border-color: var(--bed-accent); border-left-color: var(--bed-primary); background: #f3f6f9; }
ul.bed-notice { display: block; }
ul.bed-notice li { margin: 0 0 4px; padding: 0; list-style: none; }
ul.bed-notice li:last-child { margin-bottom: 0; }
.bed-notice a:not(.button) { color: var(--bed-primary); font-weight: 600; text-decoration: underline; }
.bed-notice a:not(.button):hover { color: var(--bed-secondary); }
.bed-notice a.button, .bed-notice .button {
	order: 2; margin: 0 0 0 auto; padding: 6px 16px; min-height: 0; border: 1px solid var(--bed-primary); border-radius: 9999px;
	background: var(--bed-primary); color: #fff !important; font-size: 13px; font-weight: 600; line-height: 20px; text-decoration: none; text-transform: none; letter-spacing: normal;
}
.bed-notice a.button:hover { opacity: .9; }
.woocommerce-notices-wrapper:empty { display: none; }
body.bed-theme .woocommerce-notices-wrapper > .bed-notice:last-child { margin-bottom: 16px; }

/* ==========================================================================
   2. TRANG KHUNG CART / CHECKOUT / ACCOUNT (bed-page.php) + biểu mẫu Woo
   ========================================================================== */
.bed-woo-page { margin: 20px 0 32px; }
@media (min-width: 768px) { .bed-woo-page { margin: 40px 0; } }
.bed-woo-page .woocommerce { min-width: 0; }
.bed-woo-page h1, .bed-woo-page h2, .bed-woo-page h3 { text-transform: none; letter-spacing: normal; }

.bed-card-box { background: #fff; border-radius: 12px; padding: 16px 12px; min-width: 0; }
@media (min-width: 768px) { .bed-card-box { padding: 24px; } }

/* hàng biểu mẫu Woo */
.bed-woo-page .form-row { margin: 0 0 16px; padding: 0; min-width: 0; }
.bed-woo-page .form-row label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) {
	display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--bed-n400);
}
.bed-woo-page .form-row label .required, .bed-woo-page .form-row label abbr.required { color: var(--bed-error); text-decoration: none; border: 0; }
.bed-woo-page .form-row label .optional { display: none; }
.bed-woo-page .woocommerce-input-wrapper { display: block; width: 100%; }
.bed-woo-page .form-row-first, .bed-woo-page .form-row-last, .bed-woo-page .form-row-wide { float: none; width: auto; margin-right: 0; clear: none; }
.bed-woo-page :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], textarea, select):not(.bed-qty__input) {
	display: block; width: 100%; max-width: 100%; height: auto; min-height: 44px; margin: 0; box-sizing: border-box; padding: 12px;
	border: 1px solid var(--bed-n50); border-radius: 8px; background-color: #fff; box-shadow: none;
	font-family: var(--bed-font-body); font-size: 16px; line-height: 1.5; color: var(--bed-fg);
}
.bed-woo-page textarea { min-height: 96px; resize: vertical; }
.bed-woo-page select {
	-webkit-appearance: none; appearance: none; padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B5F58' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.bed-woo-page :is(input, textarea, select):not(.bed-qty__input):focus {
	outline: 0; border-color: var(--bed-secondary); box-shadow: 0 0 0 1px var(--bed-secondary); background-color: #fff; color: var(--bed-fg);
}
.bed-woo-page ::placeholder { color: var(--bed-n200); opacity: 1; }
.bed-woo-page .woocommerce-invalid :is(input, select, textarea) { border-color: var(--bed-error); }
.bed-woo-page .woocommerce-validated :is(input, select, textarea) { border-color: var(--bed-n50); }
.bed-woo-page .woocommerce-invalid:not(.bed-qty) :is(input, select, textarea):focus { box-shadow: 0 0 0 1px var(--bed-error); }
.bed-woo-page .select2-container { width: 100% !important; margin: 0; }
.bed-woo-page .select2-container .select2-selection--single {
	height: 44px; border: 1px solid var(--bed-n50); border-radius: 8px; box-shadow: none; background-color: #fff;
}
.bed-woo-page .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding: 0 36px 0 12px; color: var(--bed-fg); font-size: 16px; }
.bed-woo-page .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; right: 4px; }
.bed-woo-page .select2-container--open .select2-selection--single, .bed-woo-page .select2-container--focus .select2-selection--single { border-color: var(--bed-secondary); }

/* nút Woo chuẩn (.button) trong khu vực tài khoản / cảm ơn / thanh toán → nút tròn primary như .btn--primary của mẫu */
.bed-woo-page :is(button.button, a.button, input.button, .woocommerce-Button, .woocommerce-button):not(.bed-btn):not(.bed-cart-coupon__toggle):not(.bed-qty__btn) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; max-width: 100%;
	padding: 11px 24px; border: 1px solid var(--bed-btn); border-radius: 9999px; background: var(--bed-btn); color: var(--bed-btn-text) !important;
	font-family: var(--bed-font-body); font-size: 14px; font-weight: 600; line-height: 20px; text-align: center; text-decoration: none; cursor: pointer;
	transition: transform .3s cubic-bezier(0, 0, .2, 1), opacity .2s;
}
.bed-woo-page :is(button.button, a.button, input.button, .woocommerce-Button, .woocommerce-button):not(.bed-btn):hover { opacity: .9; }
.bed-woo-page :is(button.button, a.button, input.button, .woocommerce-Button, .woocommerce-button):not(.bed-btn):active { transform: scale(.96); }
.bed-woo-page :is(button.button, input.button):disabled, .bed-woo-page .button.disabled { opacity: .5; cursor: not-allowed; }
.bed-woo-page .bed-form__submit .bed-btn, .bed-woo-page .bed-btn--block { width: 100%; }
.bed-woo-page a.bed-link, .bed-woo-page .bed-link { color: var(--bed-secondary); text-decoration: underline; font-weight: 600; }
.bed-woo-page .bed-link:hover { color: var(--bed-primary); }

/* ==========================================================================
   3. TRANG DANH MỤC / TÌM KIẾM
   ========================================================================== */
.bed-shop { margin: 24px 0 32px; }
@media (min-width: 768px) { .bed-shop { margin: 32px 0; } }
.bed-shop__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1270px) { .bed-shop__layout { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.bed-shop__main { min-width: 0; }
.bed-shop__results { transition: opacity .2s; }
.bed-shop__results.is-loading { opacity: .5; pointer-events: none; }

/* header danh mục: tiêu đề + (nút Lọc) + sắp xếp + chip đang chọn */
.bed-shop__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 8px; }
.bed-shop__title {
	margin: 0 0 24px !important; padding: 0; font-family: var(--bed-font-heading) !important; font-weight: 600 !important;
	font-size: 24px; line-height: 1.2; letter-spacing: normal; text-transform: none; color: var(--bed-fg); word-break: break-word;
}
@media (min-width: 768px) { .bed-shop__title { font-size: 32px; } }
.bed-shop__tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; font-size: 14px; }
@media (min-width: 768px) { .bed-shop__tools { width: auto; margin-left: auto; gap: 24px; font-size: 16px; } }
.bed-shop__filter-btn {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; background: #fff; color: var(--bed-fg);
	border: 1px solid var(--bed-n50); border-radius: 9999px; font-family: var(--bed-font-body); font-size: 14px; font-weight: 600; line-height: 20px; cursor: pointer;
	transition: transform .15s;
}
.bed-shop__filter-btn:active { transform: scale(.95); }
.bed-shop__filter-btn svg { flex: none; }
@media (min-width: 1270px) { .bed-shop__filter-btn { display: none; } }
.bed-shop__sort { display: flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.bed-shop__sort-label { display: inline; margin: 0; font-size: inherit; font-weight: 400; line-height: 1.5; color: var(--bed-n300); }
.bed-shop__sort select.bed-select { font-size: 14px; padding: 8px 32px 8px 10px; background-position: right 10px center; min-width: 140px; }
@media (min-width: 768px) { .bed-shop__sort select.bed-select { font-size: 16px; padding: 10px 36px 10px 10px; background-position: right 12px center; } }
.bed-shop__chips { flex: 0 0 100%; order: 3; min-width: 0; }
.bed-shop__chips:empty { display: block; height: 0; }
.bed-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bed-chips .bed-chip { gap: 6px; padding: 4px 12px; margin: 0; border-color: transparent; cursor: pointer; font-family: var(--bed-font-body); }
.bed-chips .bed-chip svg { flex: none; }
.bed-chips .bed-chip--clear { background: transparent; border-color: var(--bed-n100); }
.bed-shop__count { margin: 0 0 12px; font-size: 14px; color: var(--bed-n300); }
.bed-shop__list { margin-top: 8px; }
.bed-shop__grid { margin-top: 8px; gap: 16px; }
.bed-shop .bed-grid .bed-card__inner { height: 100%; }

/* "không có sản phẩm" */
.bed-shop .bed-empty, .bed-woo-page .bed-empty, .bed-empty { text-align: center; color: var(--bed-n300); }
.bed-shop .bed-empty { padding: 48px 12px; background: #fff; border-radius: 12px; }
.bed-empty__icon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--bed-n100); }
.bed-empty__title { margin: 0 0 8px; font-family: var(--bed-font-heading) !important; font-weight: 600 !important; font-size: 22px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--bed-fg); }
.bed-empty__text { margin: 0 auto 20px; max-width: 460px; font-size: 14px; color: var(--bed-n300); }

/* ---------- Bộ lọc: ngăn kéo (< 1270px) → cột bên trái (≥ 1270px) ---------- */
.bed-facet { position: fixed; inset: 0; z-index: 3000; visibility: hidden; pointer-events: none; transition: visibility 0s linear .3s; }
.bed-facet.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.bed-facet__overlay { position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s ease; }
.bed-facet.is-open .bed-facet__overlay { opacity: 1; }
.bed-facet__inner {
	position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 100%; max-width: 320px; overflow-y: auto; overscroll-behavior: contain;
	padding: 0 20px; background: #fff; transform: translateX(100%); transition: transform .3s ease;
}
.bed-facet.is-open .bed-facet__inner { transform: none; }
.bed-facet__form { display: flex; flex-direction: column; min-height: 100%; margin: 0; }
.bed-facet__box { display: flex; flex-direction: column; flex: 1 1 auto; gap: 1px; background: var(--bed-n50); }
.bed-facet__head { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 0; background: #fff; font-weight: 600; }
@media (min-width: 768px) { .bed-facet__head { padding: 20px 0; } }
.bed-facet__back {
	position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; padding: 0; background: #fff; color: var(--bed-fg); border: 1px solid var(--bed-n50); border-radius: 50%; cursor: pointer;
}
.bed-facet__group { padding: 16px; background: #fff; }
@media (min-width: 768px) { .bed-facet__group { padding: 20px; } }
.bed-facet__title {
	margin: 0 0 12px !important; padding: 0; font-family: var(--bed-font-body) !important; font-size: 16px; font-weight: 600 !important; line-height: 1.2;
	letter-spacing: normal; text-transform: none; color: var(--bed-fg);
}
.bed-facet__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bed-facet__item { margin: 0; padding: 0 0 0 4px; list-style: none; }
.bed-check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 400; line-height: 1.42857; color: var(--bed-fg); cursor: pointer; }
.bed-check input { margin: 0; }
.bed-check span { min-width: 0; }
/* "Xem thêm": chỉ 5 mục đầu, phần còn lại (.overflow-item) ẩn cho tới khi mở */
.bed-facet__list .overflow-item { display: none; }
.bed-facet__list.is-expanded .overflow-item { display: block; }
.bed-facet__toggle { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 0 0 26px; list-style: none; color: var(--bed-secondary); font-size: 16px; font-weight: 600; line-height: 1.42857; cursor: pointer; user-select: none; }
.bed-facet__toggle:hover { color: var(--bed-primary); }
.bed-facet__toggle .bed-icon { width: 16px; height: 20px; flex: none; transition: transform .2s; }
.bed-facet__list.is-expanded .bed-facet__toggle .bed-icon { transform: rotate(180deg); }
.filter-count {
	display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px;
	border-radius: 9999px; background: var(--bed-error); color: #fff; font-size: 12px; font-weight: 600; line-height: 1;
}
@media (min-width: 768px) { .filter-count { min-width: 24px; height: 24px; } }
.bed-facet__foot {
	position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
	margin: 0 -20px; padding: 12px 20px 16px; background: #fff; border-top: 1px solid var(--bed-n50);
}
.bed-facet__foot .bed-btn { width: 100%; padding-left: 12px; padding-right: 12px; }
@media (min-width: 1270px) {
	.bed-facet { position: static; z-index: auto; visibility: visible; pointer-events: auto; transition: none; }
	.bed-facet__overlay, .bed-facet__head, .bed-facet__foot { display: none; }
	.bed-facet__inner { position: static; max-width: 320px; padding: 0; overflow: visible; background: transparent; transform: none; transition: none; }
	.bed-facet__form { min-height: 0; }
	.bed-facet__box { border-radius: 4px; overflow: hidden; }
	.bed-facet__group { padding: 20px; }
}

/* ---------- Phân trang (ô vuông 36px, trang hiện tại viền secondary) ---------- */
.bed-pages { margin: 32px 0 8px; text-align: center; }
.bed-shop .bed-pages { margin: 88px 0 24px; } /* mẫu: gap 16 + mt-6 + pt-6 + mt-6 phía trên, mb-6 phía dưới */
@media (max-width: 1023px) { .bed-shop .bed-pages { margin-top: 64px; } }
.bed-pagination__item { margin: 0; padding: 0; list-style: none; }
.bed-pagination__item .bed-page {
	display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; box-sizing: border-box;
	border: 1px solid transparent; border-radius: 4px; background: #fff; color: var(--bed-fg); font-size: 14px; line-height: 1; text-decoration: none;
	transition: transform .15s, background-color .15s;
}
.bed-pagination__item a.bed-page:hover { background: var(--bed-n50); color: var(--bed-fg); }
.bed-pagination__item a.bed-page:active { transform: scale(.95); }
.bed-pagination__item.is-active .bed-page { color: var(--bed-secondary); border-color: var(--bed-secondary); }
.bed-pagination__item .bed-page--dots { background: transparent; color: var(--bed-n300); }
@media (max-width: 767px) { .bed-pagination__item--arrow { display: none; } }

/* ==========================================================================
   4. Ô SỐ LƯỢNG  [− 1 +]
   ========================================================================== */
.bed-qty {
	position: relative; display: inline-flex; flex-direction: row; align-items: stretch; width: 130px; height: 38px; overflow: hidden;
	border: 1px solid var(--bed-n50); border-radius: 8px; background: #fff; vertical-align: middle;
}
.bed-qty .bed-qty__btn {
	display: flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 100%; width: 36px; margin: 0; padding: 0;
	border: 0; border-radius: 0; background: transparent; color: var(--bed-fg); cursor: pointer; transition: background-color .15s;
}
.bed-qty .bed-qty__btn:hover { background: var(--bed-n50); }
body.bed-theme .bed-qty .bed-qty__input {
	flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent;
	font-family: var(--bed-font-body); font-size: 16px; font-weight: 600; line-height: 1; text-align: center; color: var(--bed-fg);
	-moz-appearance: textfield; appearance: textfield; outline: 0;
}
.bed-qty .bed-qty__input::-webkit-inner-spin-button, .bed-qty .bed-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bed-qty--cart { width: 96px; height: 32px; }
.bed-qty--cart .bed-qty__btn { flex-basis: 28px; width: 28px; }
.bed-qty--cart .bed-qty__input { font-size: 14px; }
.bed-qty--cart:focus-within { border-color: var(--bed-secondary); }

/* ==========================================================================
   5. GIỎ HÀNG (trang /cart/)
   ========================================================================== */
.bed-cart-page { min-width: 0; transition: opacity .2s; }
.bed-cart-page.is-loading, .bed-cart-drawer__body.is-loading { opacity: .55; pointer-events: none; }
.bed-cart-page .woocommerce-notices-wrapper { margin-bottom: 16px; }
.bed-cart { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.bed-cart__left, .bed-cart__right { min-width: 0; padding: 24px 12px; background: #fff; border-radius: 8px; }
.bed-cart__title {
	margin: 0 0 20px !important; padding: 0; font-family: var(--bed-font-heading) !important; font-weight: 600 !important;
	font-size: 28px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--bed-fg);
}
@media (min-width: 976px) {
	.bed-cart { grid-template-columns: minmax(0, 944fr) minmax(0, 400fr); gap: 40px; padding: 0 24px; background: #fff; border-radius: 8px; }
	.bed-cart__left, .bed-cart__right { padding: 24px 0; border-radius: 0; }
	.bed-cart__right { position: sticky; top: 90px; }
}

/* thanh phần thưởng (free-ship / giảm giá) — cả trang giỏ và drawer */
.bed-rewards { margin: 0 0 20px; padding: 16px; border: 1px solid var(--bed-primary); border-radius: 4px; color: var(--bed-primary); }
.bed-rewards__msg { margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--bed-primary); }
.bed-rewards__msg b { font-weight: 700; }
.bed-rewards__bar { position: relative; height: 20px; margin: 0 10px 4px; }
.bed-rewards__track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; overflow: hidden; border-radius: 4px; background: var(--bed-n50); }
.bed-rewards__track i { display: block; height: 100%; border-radius: 4px; background: var(--bed-primary); transition: width .4s ease; }
.bed-rewards__item { position: absolute; top: 0; z-index: 1; transform: translateX(-50%); }
.bed-rewards__icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bed-n300); color: #fff; }
.bed-rewards__icon svg { flex: none; }
.bed-rewards__item.is-done .bed-rewards__icon { background: var(--bed-success); }
.bed-rewards__tip {
	position: absolute; z-index: 3; top: 26px; left: 50%; transform: translateX(-50%); min-width: 96px; padding: 4px 8px; border-radius: 4px;
	background: var(--bed-addtocart-bg); color: #fff; font-size: 12px; line-height: 1.4; text-align: center; white-space: nowrap;
	opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s;
}
.bed-rewards__item:hover .bed-rewards__tip { opacity: 1; visibility: visible; }
.bed-rewards__item:last-child .bed-rewards__tip { left: auto; right: -10px; transform: none; }

/* bảng sản phẩm */
.bed-cart-form { margin: 0; }
.bed-cart-head { display: none; }
.bed-cart-items { margin: 0; padding: 0; }
.bed-cart-item {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "product product" "total qty";
	gap: 12px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--bed-n50); transition: opacity .2s;
}
.bed-cart-items > .bed-cart-item:first-child { padding-top: 0; }
.bed-cart-items > .bed-cart-item:last-child { border-bottom: 0; }
.bed-cart-item.is-removing { opacity: .35; pointer-events: none; }
.bed-cart-item__product { grid-area: product; display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding-right: 28px; }
.bed-cart-item__img { display: block; flex: none; width: 80px; height: 80px; overflow: hidden; border-radius: 8px; background: var(--bed-n50); }
.bed-cart-item__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bed-cart-item__info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bed-cart-item__name {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
	font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--bed-fg); text-decoration: none; word-break: break-word;
}
a.bed-cart-item__name:hover { color: var(--bed-primary); }
.bed-cart-item__variant { font-size: 12px; line-height: 1.4; color: var(--bed-n300); word-break: break-word; }
.bed-cart-item__unit { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--bed-price); }
.bed-cart-item__unit del { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--bed-n200); }
.bed-cart-item__note { margin: 0; font-size: 12px; color: var(--bed-warning); }
.bed-cart-item__gift {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; background: rgba(43, 173, 20, .12);
	color: var(--bed-success); font-size: 12px; font-weight: 600; line-height: 1.6;
}
.bed-cart-item__gift::before { content: "\1F381"; font-size: 12px; }
.bed-cart-item__price { grid-area: price; display: none; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.bed-cart-item__price .bed-price, .bed-cart-item__total .bed-price { font-family: var(--bed-font-heading); font-size: 16px; }
.bed-cart-item__total { grid-area: total; text-align: left; }
.bed-cart-item__qty { grid-area: qty; justify-self: end; }
.bed-cart-item__remove {
	position: absolute; top: 16px; right: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
	color: var(--bed-n200); text-decoration: none; transition: color .15s, transform .15s;
}
.bed-cart-items > .bed-cart-item:first-child .bed-cart-item__remove { top: 0; }
.bed-cart-item__remove:hover { color: var(--bed-error); }
.bed-cart-item__remove:active { transform: scale(.9); }
.bed-cart-item--gift .bed-cart-item__remove { display: none; }

@media (min-width: 976px) {
	.bed-cart-head, .bed-cart-page .bed-cart-item {
		display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 1.2fr) 130px minmax(0, 1.2fr) 32px; grid-template-areas: none; column-gap: 20px; align-items: center;
	}
	.bed-cart-head { padding: 0 0 12px; border-bottom: 1px solid var(--bed-n50); font-weight: 600; text-align: center; }
	.bed-cart-head > div:first-child { text-align: left; }
	.bed-cart-page .bed-cart-item { padding: 20px 0; }
	.bed-cart-page .bed-cart-items > .bed-cart-item:first-child { padding-top: 20px; }
	.bed-cart-page .bed-cart-item__product, .bed-cart-page .bed-cart-item__price, .bed-cart-page .bed-cart-item__qty,
	.bed-cart-page .bed-cart-item__total, .bed-cart-page .bed-cart-item__remove { grid-area: auto; }
	.bed-cart-page .bed-cart-item__product { padding-right: 0; }
	.bed-cart-page .bed-cart-item__price { display: flex; }
	.bed-cart-page .bed-cart-item__total { text-align: center; }
	.bed-cart-page .bed-cart-item__qty { justify-self: center; }
	.bed-cart-page .bed-cart-item__remove, .bed-cart-page .bed-cart-items > .bed-cart-item:first-child .bed-cart-item__remove { position: static; justify-self: center; }
	.bed-cart-page .bed-qty--cart { width: 130px; height: 38px; }
	.bed-cart-page .bed-qty--cart .bed-qty__btn { flex-basis: 36px; width: 36px; }
	.bed-cart-page .bed-qty--cart .bed-qty__input { font-size: 16px; }
}
@media (min-width: 976px) and (max-width: 1269px) {
	.bed-cart-head, .bed-cart-page .bed-cart-item { grid-template-columns: minmax(0, 3fr) minmax(0, 1.5fr) 104px minmax(0, 1.5fr) 28px; column-gap: 12px; }
	.bed-cart-page .bed-qty--cart { width: 104px; }
	.bed-cart-page .bed-qty--cart .bed-qty__btn { flex-basis: 28px; width: 28px; }
	.bed-cart-item__price .bed-price, .bed-cart-item__total .bed-price { white-space: nowrap; }
}

/* hành động dưới bảng */
.bed-cart-form__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bed-n50); }
.bed-cart-continue { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--bed-fg); text-decoration: none; }
.bed-cart-continue:hover { color: var(--bed-primary); }
.bed-cart-update.is-js { display: none; }
.bed-cart-form__actions .continue-shopping { display: none; }

/* tóm tắt + mã giảm giá */
.bed-cart-summary__box {
	position: relative; padding: 16px; background: #fff; border: 2px solid var(--bed-primary); border-radius: 12px;
	box-shadow: 0 8px 24px 0 rgba(var(--bed-primary-rgb), .08);
}
@media (min-width: 1024px) { .bed-cart-summary__box { padding: 24px; } }
.bed-cart-coupon { border-bottom: 1px dashed var(--bed-n50); }
.bed-cart-coupon__toggle {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0; padding: 8px 0; background: transparent; color: var(--bed-n300);
	border: 0; border-radius: 0; font-family: var(--bed-font-body); font-size: 16px; line-height: 1.5; text-align: left; cursor: pointer;
}
@media (min-width: 768px) { .bed-cart-coupon__toggle { padding: 16px 0; } }
.bed-cart-coupon__toggle > span { display: inline-flex; align-items: center; gap: 4px; }
.bed-cart-coupon__hint { color: var(--bed-n300); }
.bed-cart-coupon__hint svg { transition: transform .2s; }
.bed-cart-coupon__toggle[aria-expanded="true"] .bed-cart-coupon__hint svg { transform: rotate(90deg); }
.bed-cart-coupon__panel { padding: 0 0 16px; }
.bed-cart-coupon__panel[hidden] { display: none; }
.bed-cart-coupon__form { display: flex; gap: 8px; margin: 0; }
.bed-cart-coupon__form .bed-input, .bed-cart-coupon__form input[type="text"] { flex: 1 1 auto; min-width: 0; margin: 0; }
.bed-cart-coupon__form .bed-btn { flex: none; padding-left: 16px; padding-right: 16px; }
.bed-cart-coupon__applied { margin: 8px 0 0; padding: 0; list-style: none; }
.bed-cart-coupon__applied li { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 0; padding: 6px 10px; border-radius: 6px; background: var(--bed-n50); font-size: 13px; font-weight: 600; }
.bed-cart-coupon__applied li span { display: inline-flex; align-items: center; gap: 4px; color: var(--bed-success); }
.bed-cart-coupon__remove { color: var(--bed-n300); font-weight: 400; text-decoration: underline; }
.bed-cart-coupon__remove:hover { color: var(--bed-error); }
.bed-cart-summary__lines { padding: 8px 0; border-bottom: 1px dashed var(--bed-n50); }
.bed-cart-summary__lines:empty { display: none; }
.bed-cart-summary__line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--bed-n300); }
.bed-cart-summary__line b { font-weight: 600; color: var(--bed-fg); white-space: nowrap; }
.bed-cart-summary__line.is-discount b { color: var(--bed-success); }
.bed-cart-summary__bottom { padding-top: 8px; }
.bed-cart-summary__total { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0 12px; font-weight: 600; }
@media (min-width: 768px) { .bed-cart-summary__total { padding: 16px 0; } }
.bed-cart-summary__total .bed-price-lg { text-align: right; font-size: 18px; }
.bed-cart-checkout { gap: 8px; }
.bed-cart-summary__note { margin: 8px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--bed-n200); }
.bed-cart-policies { display: grid; gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.bed-cart-policies__item { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bed-cart-policies__img { display: flex; flex: none; width: 20px; height: 20px; margin-top: 2px; }
.bed-cart-policies__img img { display: block; width: 20px; height: 20px; object-fit: contain; }
.bed-cart-policies__item p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--bed-fg); }
.bed-cart-policies__item span:not(.bed-cart-policies__img) { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--bed-n300); }

/* giỏ hàng trống (trang + drawer) */
.bed-cart-page.is-empty { padding: 32px 12px; background: #fff; border-radius: 12px; }
.bed-cart-empty { max-width: 480px; margin: 0 auto; padding: 16px 0; text-align: center; }
.bed-cart-empty__img { display: block; width: 240px; max-width: 100%; height: auto; margin: 0 auto 16px; }
.bed-cart-empty__title { margin: 0 0 8px; font-family: var(--bed-font-heading) !important; font-weight: 600 !important; font-size: 24px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--bed-fg); }
.bed-cart-empty p { margin: 0 0 20px; font-size: 14px; color: var(--bed-n300); }
@media (min-width: 768px) { .bed-cart-page.is-empty { padding: 56px 24px; } }

/* ==========================================================================
   6. DRAWER GIỎ HÀNG  (#bed-cart-drawer, dùng khung .bed-drawer của bed-layout.css)
   ========================================================================== */
.bed-cart-drawer .bed-drawer__panel { right: 0; left: auto; max-width: 440px; transform: translateX(100%); }
.bed-cart-drawer.is-open .bed-drawer__panel { transform: none; }
.bed-cart-drawer .bed-drawer__head { padding: 16px; }
.bed-drawer__title { margin: 0; font-family: var(--bed-font-heading); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--bed-fg); }
.bed-cart-drawer__body { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; transition: opacity .2s; }
.bed-cart-drawer__body.is-empty { justify-content: center; }
.bed-cart-drawer__scroll { flex: 1 1 auto; min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.bed-cart-drawer .bed-rewards { padding: 0 0 16px; margin-bottom: 16px; border: 0; border-bottom: 1px solid var(--bed-n50); border-radius: 0; }
.bed-cart-drawer .bed-rewards__msg { text-align: center; }
.bed-cart-items--drawer .bed-cart-item { padding: 16px 0; }
.bed-cart-items--drawer .bed-cart-item__img { width: 72px; height: 72px; }
.bed-cart-items--drawer .bed-cart-item__remove { top: 16px; }
.bed-cart-items--drawer > .bed-cart-item:first-child { padding-top: 0; }
.bed-cart-items--drawer > .bed-cart-item:first-child .bed-cart-item__remove { top: 0; }
.bed-cart-drawer__foot { flex: none; padding: 16px; background: #fff; border-top: 1px dashed var(--bed-n100); }
.bed-cart-drawer__line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; color: var(--bed-n300); }
.bed-cart-drawer__line b { font-weight: 600; color: var(--bed-success); white-space: nowrap; }
.bed-cart-drawer__total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-weight: 600; }
.bed-cart-drawer__note { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: var(--bed-n200); }
.bed-cart-drawer__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bed-cart-drawer__actions .bed-btn { width: 100%; padding-left: 12px; padding-right: 12px; }
.bed-cart-empty--drawer { display: flex; flex-direction: column; align-items: center; padding: 32px 24px; }
.bed-cart-empty--drawer .bed-cart-empty__img { width: 200px; }

/* ==========================================================================
   7. POPUP "THÊM VÀO GIỎ HÀNG THÀNH CÔNG"
   ========================================================================== */
.bed-popup { position: fixed; inset: 0; z-index: 3100; visibility: hidden; pointer-events: none; transition: visibility 0s linear .25s; }
.bed-popup.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.bed-popup__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s ease; }
.bed-popup.is-open .bed-popup__overlay { opacity: 1; }
.bed-popup__box {
	position: absolute; top: 50%; left: 50%; width: calc(100% - 24px); max-width: 480px; max-height: calc(100vh - 24px); overflow-y: auto;
	padding: 20px; background: #fff; border-radius: 16px; box-shadow: var(--bed-shadow-l);
	transform: translate(-50%, -46%); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.bed-popup.is-open .bed-popup__box { transform: translate(-50%, -50%); opacity: 1; }
@media (min-width: 768px) { .bed-popup__box { padding: 24px; } }
.bed-popup__close {
	position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--bed-n300); cursor: pointer; transition: background-color .2s, color .2s, transform .2s;
}
.bed-popup__close:hover { background: var(--bed-n50); color: var(--bed-fg); }
.bed-popup__close:active { transform: scale(.92); }
.bed-popup__head { display: flex; align-items: center; gap: 8px; padding-right: 32px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--bed-success); }
.bed-popup__head::before {
	content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background-color: var(--bed-success);
	background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
	background-size: 100% 100%;
}
.bed-popup-added[hidden] { display: none; }
.bed-popup__item { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px dashed var(--bed-n50); }
.bed-popup__img { flex: none; width: 72px; height: 72px; overflow: hidden; border-radius: 8px; background: var(--bed-n50); }
.bed-popup__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bed-popup__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--bed-fg); }
.bed-popup__variant { margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--bed-n300); }
.bed-popup__sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14px; color: var(--bed-n300); }
.bed-popup__sum-r { text-align: right; }
.bed-popup__sum-r b { display: block; }
.bed-popup__sum-r span { font-size: 12px; color: var(--bed-n300); }
.bed-popup__foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.bed-popup__foot .bed-btn { width: 100%; padding-left: 12px; padding-right: 12px; }

/* ==========================================================================
   8. THANH TOÁN
   ========================================================================== */
.bed-woo-page--checkout .woocommerce-form-coupon-toggle { margin-bottom: 0; }
.bed-woo-page--checkout .woocommerce-form-coupon-toggle .bed-notice { margin-bottom: 16px; }
.bed-woo-page--checkout .showcoupon { cursor: pointer; }
.bed-woo-page .checkout_coupon { margin: 0 0 16px; padding: 16px; background: #fff; border: 1px dashed var(--bed-n100); border-radius: 12px; overflow: hidden; }
.bed-woo-page .checkout_coupon .form-row { margin: 0; }
.bed-woo-page .checkout_coupon .form-row-first { float: left; width: calc(100% - 128px); }
.bed-woo-page .checkout_coupon .form-row-last { float: right; width: 120px; }
.bed-woo-page .checkout_coupon .button { width: 100%; }
.bed-woo-page .checkout_coupon .clear { clear: both; }

.bed-checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 976px) { .bed-checkout__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; } }
@media (min-width: 1270px) { .bed-checkout__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: 32px; } }
.bed-checkout__main, .bed-checkout__side { min-width: 0; }
@media (min-width: 976px) { .bed-checkout__side { position: sticky; top: 90px; } }
.bed-checkout__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.bed-checkout__title, .bed-checkout__summary-title {
	margin: 0 !important; padding: 0; font-family: var(--bed-font-heading) !important; font-weight: 600 !important; font-size: 24px; line-height: 1.3;
	letter-spacing: normal; text-transform: none; color: var(--bed-fg); overflow: visible;
}
.bed-checkout__summary-title { margin-bottom: 16px !important; }
.bed-checkout__login { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--bed-secondary); text-decoration: underline; }
.bed-checkout__login:hover { color: var(--bed-primary); }
.bed-checkout__back { margin: 12px 0 0; text-align: center; font-size: 14px; }
.bed-checkout__back a { display: inline-flex; align-items: center; gap: 6px; color: var(--bed-n300); font-weight: 600; text-decoration: none; }
.bed-checkout__back a:hover { color: var(--bed-primary); }

/* các trường: lưới 2 cột (từ 768px) */
.bed-checkout .woocommerce-billing-fields { padding: 0; border: 0; }
.bed-checkout .woocommerce-billing-fields > h3, .bed-checkout .woocommerce-shipping-fields > h3:empty { display: none; }
.bed-woo-page .woocommerce-billing-fields__field-wrapper, .bed-woo-page .woocommerce-shipping-fields__field-wrapper,
.bed-woo-page .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 768px) {
	.bed-woo-page .woocommerce-billing-fields__field-wrapper, .bed-woo-page .woocommerce-shipping-fields__field-wrapper,
	.bed-woo-page .woocommerce-address-fields__field-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bed-woo-page .woocommerce-billing-fields__field-wrapper .form-row-wide, .bed-woo-page .woocommerce-shipping-fields__field-wrapper .form-row-wide,
	.bed-woo-page .woocommerce-address-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
}
.bed-checkout .woocommerce-additional-fields { margin-top: 8px; }
.bed-checkout .woocommerce-additional-fields > h3, .bed-checkout .woocommerce-shipping-fields h3 {
	margin: 8px 0 12px; padding: 0; font-family: var(--bed-font-body); font-size: 16px; font-weight: 600; line-height: 1.5; text-transform: none; letter-spacing: normal; color: var(--bed-fg); overflow: visible;
}
.bed-checkout .woocommerce-additional-fields .form-row.notes { margin-bottom: 0; }
.bed-checkout #ship-to-different-address { margin: 8px 0 12px; font-size: 16px; }
.bed-checkout #ship-to-different-address label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; cursor: pointer; }
.bed-checkout .woocommerce-account-fields .create-account label, .bed-checkout .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }

/* đơn hàng của bạn */
.bed-review-table, .bed-woo-page .shop_table.bed-review-table { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; box-shadow: none; overflow: visible; font-size: 14px; }
.bed-review-table thead { display: none; }
.bed-review-table tbody, .bed-review-table tfoot { display: block; }
.bed-review-table tr { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0; padding: 0; border: 0; }
.bed-review-table th, .bed-review-table td { display: block; padding: 0; border: 0; background: transparent; text-align: left; font-size: 14px; line-height: 1.5; }
.bed-review-table td:last-child, .bed-review-table tr td.product-total { text-align: right; }
.bed-review-table tbody tr.cart_item { padding: 12px 0; border-bottom: 1px dashed var(--bed-n50); }
.bed-review-table tbody tr.cart_item:first-child { padding-top: 0; }
.bed-review-table td.product-name { flex: 1 1 auto; min-width: 0; font-weight: 400; }
.bed-review-table td.product-total { flex: none; font-weight: 600; font-family: var(--bed-font-heading); color: var(--bed-price); white-space: nowrap; }
.bed-review-item { display: flex; align-items: center; gap: 12px; }
.bed-review-item__img { position: relative; flex: none; width: 56px; height: 56px; border: 1px solid var(--bed-n50); border-radius: 8px; background: var(--bed-n50); }
.bed-review-item__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.bed-review-item__img i {
	position: absolute; top: -8px; right: -8px; display: flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 9999px; background: var(--bed-n300); color: #fff; font-size: 11px; font-style: normal; font-weight: 600; line-height: 1;
}
.bed-review-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bed-review-item__name { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--bed-fg); }
.bed-review-item__variant { font-size: 12px; line-height: 1.4; color: var(--bed-n300); }
.bed-review-table tfoot { padding-top: 8px; }
.bed-review-table tfoot tr { padding: 6px 0; }
.bed-review-table tfoot th { flex: none; font-weight: 400; color: var(--bed-n300); }
.bed-review-table tfoot td { flex: 1 1 auto; font-weight: 600; color: var(--bed-fg); }
.bed-review-table tfoot tr.cart-discount td, .bed-review-table tfoot tr.fee td { color: var(--bed-success); }
.bed-review-table tfoot tr.order-total { margin-top: 6px; padding: 14px 0 0; border-top: 1px dashed var(--bed-n100); align-items: center; }
.bed-review-table tfoot tr.order-total th { font-size: 16px; font-weight: 600; color: var(--bed-fg); text-transform: uppercase; }
.bed-review-table tfoot tr.order-total td, .bed-review-table tfoot tr.order-total td .amount { font-family: var(--bed-font-heading); font-size: 20px; font-weight: 600; color: var(--bed-price); }
.bed-review-table tfoot tr.order-total td small { font-size: 12px; font-weight: 400; color: var(--bed-n300); }
.bed-review-table .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
.bed-review-table .woocommerce-shipping-methods li { margin: 0; padding: 0; }
.bed-review-table .woocommerce-shipping-methods label { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--bed-fg); }
.bed-review-table .bed-ship-label { color: var(--bed-fg); }
.bed-review-table .bed-ship-cost { color: var(--bed-success); white-space: nowrap; }
.bed-review-table .shipping th { width: auto; }
.bed-review-table .shipping td ul + p, .bed-review-table .shipping td p { margin: 4px 0 0; font-size: 12px; font-weight: 400; color: var(--bed-n300); text-align: right; }
.bed-review-table .includes_tax { display: none; }

/* phương thức thanh toán */
.bed-woo-page #payment { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
.bed-woo-page .wc_payment_methods { margin: 0 0 16px; padding: 0; list-style: none; }
.bed-woo-page .wc_payment_method {
	position: relative; margin: 0 0 8px; padding: 14px 16px 14px 44px; border: 1px solid var(--bed-n50); border-radius: 8px; background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.bed-woo-page .wc_payment_method + .wc_payment_method { border-top: 1px solid var(--bed-n50); padding-top: 14px; }
.bed-woo-page .wc_payment_method:hover { border-color: var(--bed-n100); }
.bed-woo-page .wc_payment_method:has(> input:checked) { border-color: var(--bed-primary); box-shadow: 0 0 0 1px var(--bed-primary); }
.bed-woo-page .wc_payment_method > input[type="radio"] { position: absolute; top: 17px; left: 16px; }
.bed-woo-page .wc_payment_method > label { display: block; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--bed-fg); cursor: pointer; }
.bed-woo-page .wc_payment_method > label img { display: inline-block; max-height: 24px; width: auto; margin: 0 0 0 8px; vertical-align: middle; }
.bed-woo-page .payment_box { margin: 8px 0 0; padding: 0; background: transparent; color: var(--bed-n300); font-size: 13px; line-height: 1.5; }
.bed-woo-page .payment_box::before, .bed-woo-page .payment_box::after { display: none; }
.bed-woo-page .payment_box p { margin: 0 0 6px; font-size: 13px; }
.bed-woo-page .payment_box p:last-child { margin-bottom: 0; }
.bed-woo-page .payment_box fieldset { margin: 8px 0 0; padding: 0; border: 0; }
.bed-woo-page .place-order { margin: 0; padding: 0; }
.bed-woo-page .woocommerce-terms-and-conditions-wrapper { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--bed-n300); }
.bed-woo-page .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0 0 8px; }
.bed-woo-page .woocommerce-terms-and-conditions-wrapper label.checkbox { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; font-weight: 400; }
.bed-woo-page .woocommerce-terms-and-conditions-wrapper a, .bed-woo-page .woocommerce-privacy-policy-text a { color: var(--bed-secondary); text-decoration: underline; }
.bed-woo-page .woocommerce-privacy-policy-text { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--bed-n300); }
.bed-woo-page .woocommerce-privacy-policy-text p { margin: 0; font-size: 13px; }
.bed-woo-page .woocommerce-privacy-policy-text:empty { display: none; }
.bed-woo-page #place_order { display: flex; width: 100%; padding: 14px 32px; font-size: 16px; line-height: 24px; text-transform: none; float: none; }
.bed-woo-page .place-order noscript { display: block; margin-bottom: 12px; font-size: 13px; color: var(--bed-n300); }

/* ==========================================================================
   9. TRANG CẢM ƠN + chi tiết đơn hàng (thankyou / view-order)
   ========================================================================== */
.bed-thanks { max-width: 880px; margin: 0 auto; }
.bed-thanks__hero { padding: 32px 16px; margin-bottom: 16px; text-align: center; background: #fff; border-radius: 12px; }
@media (min-width: 768px) { .bed-thanks__hero { padding: 40px 24px; } }
.bed-thanks__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 16px;
	border-radius: 50%; background: var(--bed-success); color: #fff; box-shadow: 0 0 0 8px rgba(43, 173, 20, .12);
}
.bed-thanks__hero--failed .bed-thanks__icon { background: var(--bed-error); box-shadow: 0 0 0 8px rgba(238, 25, 38, .12); }
.bed-thanks__title { margin: 0 0 8px !important; font-family: var(--bed-font-heading) !important; font-weight: 600 !important; font-size: 28px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--bed-fg); }
.bed-thanks__text { max-width: 560px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: var(--bed-n300); }
.bed-thanks__overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px !important; padding: 0; list-style: none; }
@media (min-width: 768px) { .bed-thanks__overview { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; } }
.bed-thanks__overview > li { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 16px; border: 0; border-radius: 12px; background: #fff; list-style: none; text-transform: none; font-size: 13px; line-height: 1.4; }
.bed-thanks__overview > li span { font-size: 13px; color: var(--bed-n300); }
.bed-thanks__overview > li strong { font-size: 15px; font-weight: 600; color: var(--bed-fg); word-break: break-word; }
.bed-thanks__overview > li.total strong { font-family: var(--bed-font-heading); color: var(--bed-price); }
.bed-thanks__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 24px 0 0; }
.bed-thanks__hero .bed-thanks__actions { margin-top: 20px; }

/* chi tiết đơn (cảm ơn + xem đơn trong tài khoản) */
.bed-woo-page .woocommerce-order-details, .bed-woo-page .woocommerce-customer-details, .bed-woo-page .woocommerce-bacs-bank-details {
	margin: 0 0 16px; padding: 16px 12px; background: #fff; border-radius: 12px;
}
@media (min-width: 768px) { .bed-woo-page .woocommerce-order-details, .bed-woo-page .woocommerce-customer-details, .bed-woo-page .woocommerce-bacs-bank-details { padding: 24px; } }
.bed-woo-page .woocommerce-order-details__title, .bed-woo-page .woocommerce-column__title, .bed-woo-page .wc-bacs-bank-details-heading,
.bed-woo-page .woocommerce-customer-details h2, .bed-woo-page .woocommerce-bacs-bank-details h2, .bed-woo-page .woocommerce-bacs-bank-details h3 {
	margin: 0 0 16px; padding: 0; font-family: var(--bed-font-heading) !important; font-weight: 600 !important; font-size: 20px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--bed-fg);
}
.bed-woo-page .woocommerce-bacs-bank-details h3 { font-size: 16px; font-family: var(--bed-font-body) !important; }
.bed-woo-page ul.wc-bacs-bank-details, .bed-woo-page ul.order_details.bacs_details { display: grid; gap: 8px; margin: 0 0 16px !important; padding: 0; list-style: none; }
.bed-woo-page ul.wc-bacs-bank-details li, .bed-woo-page ul.bacs_details li { margin: 0; padding: 0; border: 0; list-style: none; font-size: 14px; text-transform: none; color: var(--bed-n300); }
.bed-woo-page ul.wc-bacs-bank-details strong, .bed-woo-page ul.bacs_details strong { margin-left: 4px; font-weight: 600; color: var(--bed-fg); }
.bed-woo-page .shop_table:not(.bed-review-table) {
	width: 100%; margin: 0; padding: 0; border: 0; border-collapse: collapse; box-shadow: none; overflow: visible; font-size: 14px; background: transparent;
}
.bed-woo-page .shop_table:not(.bed-review-table) th, .bed-woo-page .shop_table:not(.bed-review-table) td {
	padding: 12px 8px; border: 0; border-bottom: 1px solid var(--bed-n50); background: transparent; font-size: 14px; line-height: 1.5; text-align: left; vertical-align: middle; color: var(--bed-fg);
}
.bed-woo-page .shop_table:not(.bed-review-table) thead th { padding-top: 0; font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: normal; color: var(--bed-n300); border-bottom-width: 1px; }
.bed-woo-page .shop_table:not(.bed-review-table) tfoot th { font-size: 14px; font-weight: 400; color: var(--bed-n300); }
.bed-woo-page .shop_table:not(.bed-review-table) tfoot td, .bed-woo-page .shop_table:not(.bed-review-table) td.product-total { text-align: right; font-weight: 600; }
.bed-woo-page .shop_table:not(.bed-review-table) thead th:last-child { text-align: right; }
.bed-woo-page .shop_table:not(.bed-review-table) tr:last-child > th, .bed-woo-page .shop_table:not(.bed-review-table) tr:last-child > td { border-bottom: 0; }
.bed-woo-page .shop_table .product-name a { color: var(--bed-fg); font-weight: 600; }
.bed-woo-page .shop_table .product-quantity { font-weight: 400; color: var(--bed-n300); }
.bed-woo-page .shop_table .wc-item-meta { margin: 4px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--bed-n300); }
.bed-woo-page .shop_table .wc-item-meta li { margin: 0; }
.bed-woo-page .shop_table .wc-item-meta p { display: inline; margin: 0; }
.bed-woo-page .shop_table .order-total td, .bed-woo-page .shop_table .order-total .amount { color: var(--bed-price); font-family: var(--bed-font-heading); font-size: 16px; }
.bed-woo-page address { margin: 0; padding: 12px 16px; border: 1px solid var(--bed-n50); border-radius: 8px; font-style: normal; font-size: 14px; line-height: 1.6; color: var(--bed-n400); }
.bed-woo-page .woocommerce-columns--addresses, .bed-woo-page .woocommerce-customer-details .col2-set { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .bed-woo-page .woocommerce-columns--addresses, .bed-woo-page .woocommerce-customer-details .col2-set { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bed-woo-page .woocommerce-columns--addresses > div, .bed-woo-page .col2-set > div { width: auto; max-width: none; padding: 0 !important; float: none; flex: none; }
.bed-woo-page mark { padding: 2px 8px; border-radius: 9999px; background: var(--bed-n50); color: var(--bed-fg); font-size: 13px; font-weight: 600; }

/* ==========================================================================
   10. TÀI KHOẢN: đăng nhập / đăng ký / quên mật khẩu
   ========================================================================== */
.bed-auth { display: flex; justify-content: center; }
.bed-auth__box { width: 100%; max-width: 480px; padding: 24px 16px; }
@media (min-width: 768px) { .bed-auth__box { padding: 32px; } }
.bed-auth__pane--register { display: none; }
.bed-auth.is-register .bed-auth__pane--login { display: none; }
.bed-auth.is-register .bed-auth__pane--register { display: block; }
.bed-auth__head { margin-bottom: 20px; text-align: center; }
.bed-auth__head p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--bed-n300); }
.bed-auth__title { margin: 0 0 8px !important; font-family: var(--bed-font-heading) !important; font-weight: 600 !important; font-size: 28px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--bed-fg); }
.bed-form { margin: 0; padding: 0; border: 0; }
.bed-form .form-row { margin-bottom: 16px; }
.bed-form__row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.bed-form__row-between label.woocommerce-form-login__rememberme, .bed-form .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 400; color: var(--bed-fg); cursor: pointer; }
.bed-form__row-between .lost_password { font-size: 14px; }
.bed-form__row-between .lost_password a { font-weight: 400; text-decoration: underline; }
.bed-form__submit { margin: 8px 0 0 !important; }
.bed-form .woocommerce-privacy-policy-text { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--bed-n300); }
.bed-form .woocommerce-privacy-policy-text p { margin: 0; font-size: 13px; }
.bed-woo-page .woocommerce-ResetPassword, .bed-woo-page .lost_reset_password {
	max-width: 480px; margin: 0 auto; padding: 24px 16px; background: #fff; border-radius: 12px;
}
@media (min-width: 768px) { .bed-woo-page .woocommerce-ResetPassword, .bed-woo-page .lost_reset_password { padding: 32px; } }
.bed-woo-page .woocommerce-ResetPassword > p:first-child { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--bed-n300); }
.bed-woo-page .woocommerce-ResetPassword .form-row-first, .bed-woo-page .woocommerce-ResetPassword .form-row-last { width: auto; float: none; }
.bed-woo-page .woocommerce-ResetPassword .button { width: 100%; }
.bed-woo-page--account .woocommerce-notices-wrapper + .woocommerce-ResetPassword, .bed-woo-page--account .woocommerce-notices-wrapper + .bed-auth { margin-top: 0; }
.bed-woo-page--account .woocommerce-notices-wrapper:not(:empty) { max-width: 480px; margin-left: auto; margin-right: auto; }
.bed-account-in .woocommerce-notices-wrapper:not(:empty) { max-width: none; }

/* ==========================================================================
   11. TÀI KHOẢN: sau đăng nhập (menu + nội dung)
   ========================================================================== */
.bed-account { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 976px) { .bed-account { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; } }
.woocommerce-MyAccount-content { min-width: 0; float: none; width: auto; }
.woocommerce-MyAccount-navigation { float: none; width: auto; padding: 16px 12px; }
@media (min-width: 976px) { .woocommerce-MyAccount-navigation { position: sticky; top: 90px; padding: 20px; } }
.bed-account__user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px dashed var(--bed-n100); }
.bed-account__user > div { min-width: 0; }
.bed-account__user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--bed-fg); }
.bed-account__user span:not(.bed-account__avatar) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.4; color: var(--bed-n300); }
.bed-account__avatar { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bed-primary); color: #fff; font-size: 18px; font-weight: 600; line-height: 1; }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation li { margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation li a {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 1.4;
	color: var(--bed-fg); text-decoration: none; transition: background-color .15s, color .15s;
}
.woocommerce-MyAccount-navigation li a svg { flex: none; color: var(--bed-n200); transition: color .15s; }
.woocommerce-MyAccount-navigation li a:hover { background: var(--bed-n50); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--bed-primary); color: #fff; }
.woocommerce-MyAccount-navigation li.is-active a svg { color: #fff; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--bed-n100); }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--bed-error); }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a svg { color: var(--bed-error); }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fdf1f2; }

.woocommerce-MyAccount-content > p, .woocommerce-MyAccount-content p { font-size: 15px; line-height: 1.6; }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3, .bed-account__heading {
	margin: 0 0 12px; font-family: var(--bed-font-heading) !important; font-weight: 600 !important; font-size: 22px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--bed-fg);
}
.woocommerce-MyAccount-content h3 { font-size: 18px; }
.bed-account__hello { margin: 0 0 8px; color: var(--bed-fg); }
.bed-account__hello a, .woocommerce-MyAccount-content p a:not(.button) { color: var(--bed-secondary); text-decoration: underline; }
.bed-account__desc { margin: 0 0 20px; color: var(--bed-n300); }
.bed-account__tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .bed-account__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.bed-account__tile {
	display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; border: 1px solid var(--bed-n50); border-radius: 12px; background: #fff;
	color: var(--bed-fg); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bed-account__tile:hover { border-color: var(--bed-primary); box-shadow: 0 8px 24px rgba(var(--bed-primary-rgb), .08); transform: translateY(-2px); }
.bed-account__tile svg { margin-bottom: 8px; color: var(--bed-secondary); }
.bed-account__tile strong { font-size: 16px; font-weight: 600; line-height: 1.4; }
.bed-account__tile span { font-size: 13px; line-height: 1.4; color: var(--bed-n300); }

/* đơn hàng của tôi (bảng → thẻ trên mobile) */
.woocommerce-MyAccount-content .woocommerce-orders-table, .woocommerce-MyAccount-content .shop_table_responsive { width: 100%; }
.woocommerce-orders-table .woocommerce-button { padding: 6px 14px; font-size: 13px; margin: 0 4px 0 0; }
.woocommerce-orders-table a:not(.button) { font-weight: 600; color: var(--bed-primary); }
@media (max-width: 767px) {
	.woocommerce-MyAccount-content .shop_table_responsive thead { display: none; }
	.woocommerce-MyAccount-content .shop_table_responsive, .woocommerce-MyAccount-content .shop_table_responsive tbody { display: block; }
	.woocommerce-MyAccount-content .shop_table_responsive tr { display: block; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--bed-n50); border-radius: 8px; }
	.bed-woo-page .woocommerce-MyAccount-content .shop_table_responsive td, .bed-woo-page .woocommerce-MyAccount-content .shop_table_responsive th {
		display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right;
	}
	.woocommerce-MyAccount-content .shop_table_responsive td::before { content: attr(data-title); font-weight: 600; text-align: left; color: var(--bed-n300); }
	.woocommerce-MyAccount-content .shop_table_responsive td.woocommerce-orders-table__cell-order-actions::before { display: none; }
	.woocommerce-MyAccount-content .shop_table_responsive td.woocommerce-orders-table__cell-order-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
}
.woocommerce-pagination--without-numbers, .woocommerce-MyAccount-content .woocommerce-pagination { margin-top: 16px; display: flex; gap: 12px; }

/* địa chỉ */
.woocommerce-MyAccount-content .u-columns, .woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .woocommerce-MyAccount-content .u-columns, .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.woocommerce-MyAccount-content .woocommerce-Address { width: auto; max-width: none; padding: 16px !important; float: none; border: 1px solid var(--bed-n50); border-radius: 12px; }
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.woocommerce-Address-title h2 { margin: 0; font-size: 16px; font-family: var(--bed-font-body) !important; }
.woocommerce-Address-title a.edit { font-size: 13px; font-weight: 600; color: var(--bed-secondary); text-decoration: underline; }
.woocommerce-MyAccount-content .woocommerce-Address address { padding: 0; border: 0; }

/* chỉnh sửa tài khoản */
.woocommerce-EditAccountForm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 768px) { .woocommerce-EditAccountForm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.woocommerce-EditAccountForm > .form-row-wide, .woocommerce-EditAccountForm > fieldset, .woocommerce-EditAccountForm > .clear,
.woocommerce-EditAccountForm > p:last-of-type, .woocommerce-EditAccountForm > .form-row:has(button) { grid-column: 1 / -1; }
.woocommerce-EditAccountForm .woocommerce-form-row--first, .woocommerce-EditAccountForm .woocommerce-form-row--last { float: none; width: auto; }
.woocommerce-EditAccountForm em, .woocommerce-EditAccountForm .description { display: block; margin-top: 4px; font-size: 12px; font-style: normal; color: var(--bed-n300); }
.woocommerce-EditAccountForm fieldset { margin: 8px 0 16px; padding: 16px 16px 0; border: 1px solid var(--bed-n50); border-radius: 12px; }
.woocommerce-EditAccountForm legend { display: block; width: auto; margin: 0; padding: 0 8px; font-size: 15px; font-weight: 600; color: var(--bed-fg); }
.woocommerce-EditAccountForm .clear { display: none; }

/* ==========================================================================
   12. TRANG 404
   ========================================================================== */
.bed-404 { margin: 24px 0 48px; }
.bed-404__box { max-width: 640px; margin: 0 auto; padding: 40px 16px; text-align: center; background: #fff; border-radius: 12px; }
@media (min-width: 768px) { .bed-404__box { padding: 64px 32px; } }
.bed-404__code { font-family: var(--bed-font-heading); font-size: 96px; font-weight: 600; line-height: 1; color: var(--bed-n100); }
@media (min-width: 768px) { .bed-404__code { font-size: 140px; } }
.bed-404__title { margin: 8px 0 8px !important; font-family: var(--bed-font-heading) !important; font-weight: 600 !important; font-size: 28px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--bed-fg); }
.bed-404__text { max-width: 460px; margin: 0 auto 24px; font-size: 15px; line-height: 1.6; color: var(--bed-n300); }
.bed-404__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }

/* ==========================================================================
   13. Dọn Flatsome còn sót + giảm chuyển động
   ========================================================================== */
.bed-page-cart .cart-sidebar, .bed-page-checkout .checkout-sidebar { display: none; }
.bed-page-cart .woocommerce-cart-form__cart-item.cart_item { display: none; }
a.added_to_cart.wc-forward { display: none !important; }
@media (prefers-reduced-motion: reduce) {
	.bed-facet__inner, .bed-popup__box, .bed-cart-drawer .bed-drawer__panel, .bed-rewards__track i, .bed-account__tile { transition: none; }
}
