/* ==========================================================================
   Header 2 hàng (cài đặt "Kiểu header" = 2 hàng): hàng trên nền màu chủ đạo (logo · từ khóa + ô tìm kiếm · 4 hành động có nhãn),
   hàng dưới nền nhạt (menu + liên kết phụ). Mẫu OH! Cosmetics: hàng trên cao 82px, hàng dưới 35px, container 1190px.
   ========================================================================== */
.bed-hdr.bed-hdr--double { display: block; padding: 0; min-height: 0; background: transparent; }
.bed-hdr.bed-hdr--double .bed-container { max-width: 1190px; padding-left: 0; padding-right: 0; }
.bed-hdr.bed-hdr--double .bed-hdr__top { background: var(--bed-primary); color: #fff; }
.bed-hdr.bed-hdr--double .bed-hdr__inner { display: grid; grid-template-columns: 178px minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; min-height: 82px; padding: 6px 0; }
.bed-hdr.bed-hdr--double .bed-hdr__logo { max-width: 178px; margin: 0; color: #fff; }
.bed-hdr.bed-hdr--double .bed-logo--img { max-height: 70px; max-width: 178px; }
.bed-hdr.bed-hdr--double .bed-hamburger { display: none; color: #fff; }

.bed-hdr__searchbox { min-width: 0; width: 100%; max-width: 595px; margin: 0 auto; }
.bed-hdr__kw { display: flex; gap: 20px; margin: 0 0 3px; padding: 0; list-style: none; white-space: nowrap; overflow: auto; scrollbar-width: none; line-height: 1; }
.bed-hdr__kw::-webkit-scrollbar { display: none; }
.bed-hdr__kw li { margin: 0; }
.bed-hdr__kw a { color: #fff; font-size: 12px; }
.bed-hdr__kw a:hover { color: var(--bed-accent); }
.bed-hdr__form { position: relative; margin: 0; }
.bed-hdr__form input[type=search] { display: block; width: 100%; height: 38px; min-height: 38px; margin: 0; padding: 0 44px 0 14px; border: 0; border-radius: 20px; background: #fff; box-shadow: none; font-size: 14px; color: var(--bed-fg); }
.bed-hdr__form input[type=search]:focus { outline: none; box-shadow: 0 0 0 2px var(--bed-accent); }
.bed-hdr__form button { position: absolute; top: 0; right: 0; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--bed-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; }

.bed-hdr__actions { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.bed-hdr__act { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: #fff !important; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.bed-hdr__act svg { width: 28px; height: 28px; }
.bed-hdr__act:hover { color: var(--bed-accent) !important; }
.bed-hdr.bed-hdr--double .bed-hdr__act .bed-cart-count { position: absolute; top: -6px; left: 50%; margin-left: 4px; }
.bed-hdr.bed-hdr--double .bed-hdr__search--m, .bed-hdr--double .bed-hdr__cart--m { display: none; }

.bed-hdr__navrow { background: var(--bed-accent); }
.bed-hdr.bed-hdr--double .bed-hdr__navinner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bed-hdr.bed-hdr--double .bed-hdr__nav { display: block; flex: 1 1 auto; margin: 0; min-width: 0; }
.bed-hdr.bed-hdr--double .bed-hdr__nav.is-overflow { width: auto; }
.bed-hdr.bed-hdr--double .bed-nav__pad { padding: 0; }
.bed-hdr.bed-hdr--double .bed-nav__wrap { margin: 0; }
.bed-hdr.bed-hdr--double .bed-nav__item { padding: 0 16px 0 0; }
.bed-hdr.bed-hdr--double .bed-nav__item:first-child { padding-left: 0; }
.bed-hdr.bed-hdr--double .bed-nav__link { display: flex; align-items: center; min-height: 35px; padding: 0 !important; font-size: 14px !important; font-weight: 700 !important; line-height: 35px !important; color: var(--bed-primary) !important; text-transform: none; }
.bed-hdr.bed-hdr--double .bed-nav__item:hover > .bed-nav__link, .bed-hdr--double .bed-nav__item.is-open > .bed-nav__link { color: var(--bed-secondary) !important; }
.bed-hdr.bed-hdr--double .bed-hdr .bed-nav__arrow, .bed-hdr--double .bed-nav__arrow { height: 35px; color: var(--bed-primary); }

.bed-hdr__extra { flex: 0 0 auto; }
.bed-hdr__extra-list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.bed-hdr__extra-list li { margin: 0; padding: 0 14px; line-height: 1; }
.bed-hdr__extra-list li + li { border-left: 1px solid var(--bed-primary); }
.bed-hdr__extra-list li:last-child { padding-right: 0; border-left: 1px solid var(--bed-primary); }
.bed-hdr__extra-list a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--bed-primary); }
.bed-hdr__extra-list a:hover { color: var(--bed-secondary); }

/* ---------- Tablet / mobile: một thanh nền chủ đạo (hamburger · logo · tìm kiếm · giỏ), bỏ hàng menu ---------- */
@media (max-width: 1023px) {
	.bed-hdr.bed-hdr--double .bed-container { padding-left: 12px; padding-right: 12px; }
	.bed-hdr.bed-hdr--double .bed-hdr__inner { grid-template-columns: auto 1fr auto auto; min-height: 60px; }
	.bed-hdr.bed-hdr--double .bed-hamburger { display: inline-flex; margin: 0; }
	.bed-hdr.bed-hdr--double .bed-hdr__logo { margin: 0 auto; max-width: 150px; }
	.bed-hdr.bed-hdr--double .bed-logo--img { max-height: 46px; max-width: 150px; }
	.bed-hdr__searchbox, .bed-hdr__actions, .bed-hdr__navrow { display: none; }
	.bed-hdr.bed-hdr--double .bed-hdr__search--m { display: inline-flex; color: #fff; }
	.bed-hdr.bed-hdr--double .bed-hdr__cart--m { display: inline-flex; color: #fff; }
}

/* Mega kiểu tab: panel 1000px canh lề trái container (như mẫu), không phủ hết bề rộng */
.bed-hdr.bed-hdr--double .bed-mega:has(.has-tabs) { left: max(0px, calc((100% - 1190px) / 2)); width: 1000px; max-width: 100%; padding: 0; overflow: visible; }
.bed-hdr.bed-hdr--double .bed-mega:has(.has-tabs) .bed-mega__inner { padding: 0; max-width: none; }
.bed-hdr.bed-hdr--double .bed-nav__item:hover > .bed-nav__link, .bed-hdr.bed-hdr--double .bed-nav__item.is-open > .bed-nav__link { color: var(--bed-secondary) !important; }
.bed-hdr.bed-hdr--double .bed-nav__arrow { height: 35px; color: var(--bed-primary); }
.bed-hdr.bed-hdr--double .bed-hdr__search--m, .bed-hdr.bed-hdr--double .bed-hdr__cart--m { display: none; }
@media (max-width: 1023px) { .bed-hdr.bed-hdr--double .bed-hdr__search--m, .bed-hdr.bed-hdr--double .bed-hdr__cart--m { display: inline-flex; } }
