/* =====================================================================
   chubee-ui.css — 2026-11-06 — giao dien uu tien mobile (Chubee yeu cau)
   Nap sau main/index/swiper (snippets/header_style.bwt). Go dong nap = quay ve cu.
   Mau: chu dao #9e795b · nau dam #2b2420 · nen am #f7f1ec · do KM #c0392b
   ===================================================================== */

/* ---------- 1. Dau trang mobile (<992px) ---------- */
@media (max-width: 991px) {
	header.header { box-shadow: 0 1px 0 #efe7e0; background: #fff; padding-top: 2px !important; padding-bottom: 2px !important; }
	header.header .row-header, header.header > .container > .header-top-row { padding-top: 4px !important; padding-bottom: 4px !important; }
	header.header .logo { padding: 4px 0 !important; }
	header.header .logo img { max-height: 44px; }
	/* menu cu (.header-nav trong header) + lop phu cu: thay bang ngan keo .cbm-drawer */
	header.header .header-row-nav, .opacity_menu { display: none !important; }
	header.header .menu-bar {
		top: 50% !important; left: 6px !important; transform: translateY(-50%);
		width: 44px; height: 44px; display: flex !important; align-items: center; justify-content: center;
		border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent;
	}
	header.header .menu-bar:active { background: #f5efe9; }
	header.header .menu-bar svg { width: 22px; height: 22px; }
	header.header .menu-bar svg path { fill: #2b2420 !important; }
}

/* Thanh gon khi cuon (kieu Shopee): chi o tim kiem + gio hang */
.cbm-bar { display: none; }
@media (max-width: 991px) {
	.cbm-bar {
		display: flex; align-items: center; gap: 8px;
		position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
		height: 52px; padding: 7px 8px 7px 12px;
		background: rgba(255, 255, 255, .97);
		box-shadow: 0 2px 14px rgba(60, 40, 25, .10);
		transform: translateY(-110%); visibility: hidden;
		transition: transform .22s ease, visibility 0s linear .22s;
	}
	html.cbm-bar-on .cbm-bar { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; }
	.cbm-search {
		flex: 1; min-width: 0; height: 38px; margin: 0;
		display: flex; align-items: center; gap: 8px; padding: 0 12px;
		border: 1.5px solid #9e795b; border-radius: 10px; background: #fff; color: #9e795b;
	}
	.cbm-search svg { flex: none; }
	.cbm-search input {
		flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
		font-size: 16px; color: #2b2420; -webkit-appearance: none; appearance: none;
	}
	.cbm-search input::placeholder { color: #9b8f86; font-size: 14px; }
	.cbm-search input::-webkit-search-cancel-button { display: none; }
	.cbm-cart {
		position: relative; flex: none; width: 44px; height: 44px;
		display: flex; align-items: center; justify-content: center; color: #2b2420;
	}
	.cbm-count {
		position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
		border-radius: 9px; background: #c0392b; color: #fff; border: 2px solid #fff;
		font-size: 10.5px; font-weight: 700; line-height: 14px; text-align: center;
	}
}

/* ---------- 2. Ngan menu mobile ---------- */
.cbm-overlay, .cbm-drawer { display: none; }
@media (max-width: 991px) {
	html.cbm-open, html.cbm-open body { overflow: hidden; }
	.cbm-overlay {
		display: block; position: fixed; inset: 0; z-index: 100000;
		background: rgba(35, 25, 18, .45); opacity: 0; visibility: hidden;
		transition: opacity .25s ease, visibility 0s linear .25s;
	}
	html.cbm-open .cbm-overlay { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
	.cbm-drawer {
		display: flex; flex-direction: column;
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 100001;
		width: min(86vw, 360px); background: #fff;
		border-radius: 0 20px 20px 0; box-shadow: 8px 0 30px rgba(40, 25, 15, .18);
		transform: translateX(-104%); visibility: hidden;
		transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
		font-family: "Be Vietnam Pro", Arial, sans-serif;
	}
	html.cbm-open .cbm-drawer { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
	.cbm-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 18px; }
	.cbm-logo img { height: 40px; width: auto; display: block; }
	.cbm-x {
		width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f5efe9; color: #2b2420;
		display: flex; align-items: center; justify-content: center; cursor: pointer;
	}
	.cbm-dsearch {
		display: flex; align-items: center; gap: 10px; margin: 4px 16px 8px; padding: 0 14px;
		height: 46px; border-radius: 12px; background: #f5efe9; color: #8a7262;
	}
	.cbm-dsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: #2b2420; padding: 0; -webkit-appearance: none; appearance: none; }
	.cbm-dsearch input::placeholder { color: #9b8f86; font-size: 14.5px; }
	.cbm-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 10px 14px; }
	.cbm-nav { list-style: none; margin: 0; padding: 0; }
	.cbm-item { border-bottom: 1px solid #f1ebe6; }
	.cbm-item:last-child { border-bottom: 0; }
	.cbm-row {
		width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px;
		padding: 10px 8px; border: 0; background: none; text-align: left; cursor: pointer;
		color: #2b2420; font-size: 15.5px; font-weight: 600; line-height: 1.3; text-decoration: none !important;
		-webkit-tap-highlight-color: transparent; border-radius: 12px;
	}
	.cbm-row:active { background: #faf6f2; }
	.cbm-thumb {
		flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f5efe9;
		display: flex; align-items: center; justify-content: center; color: #9e795b;
	}
	.cbm-label { flex: 1; text-transform: lowercase; }
	.cbm-label::first-letter { text-transform: uppercase; }
	.cbm-chev { flex: none; color: #9e795b; transition: transform .2s ease; }
	.cbm-item.is-open .cbm-chev { transform: rotate(180deg); }
	.cbm-item.is-open > .cbm-row { color: #9e795b; }
	.cbm-sub { display: none; padding: 0 8px 16px 64px; }
	.cbm-item.is-open .cbm-sub { display: block; animation: cbmIn .2s ease; }
	@keyframes cbmIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
	.cbm-group { margin: 10px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a7262; }
	.cbm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
	.cbm-chips a {
		display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px;
		background: #f7f2ee; color: #3a2f28 !important; font-size: 13.5px; font-weight: 500; text-decoration: none !important;
	}
	.cbm-chips a:active { background: #eadfd5; }
	.cbm-chips a.is-hot { background: #2b2420; color: #fff !important; }
	.cbm-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 36px; color: #9e795b !important; font-size: 14px; font-weight: 600; }
	.cbm-foot {
		display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #f1ebe6;
		padding-bottom: env(safe-area-inset-bottom);
	}
	.cbm-foot a {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		min-height: 64px; padding: 10px 4px; color: #4a3d35 !important; font-size: 12px; font-weight: 500;
		text-align: center; text-decoration: none !important;
	}
	.cbm-foot a svg { color: #9e795b; }
	.cbm-foot .cbm-call { font-weight: 700; color: #2b2420 !important; }
}

/* ---------- 3. Trang chu: banner dau trang mobile ---------- */
.cb-hero { margin: 10px 0 2px; }
.cb-hero__slide {
	position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
	border-radius: 18px; background: #f3ede7; text-decoration: none !important;
}
.cb-hero__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cb-hero__cap {
	position: absolute; left: 10px; right: 10px; bottom: 10px;
	display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px;
	padding: 10px 10px 10px 14px; border-radius: 14px;
	background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	box-shadow: 0 6px 20px rgba(40, 25, 15, .12);
}
.cb-hero__cap small { grid-column: 1; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9e795b; line-height: 1.3; }
.cb-hero__cap b { grid-column: 1; font-size: 15.5px; font-weight: 700; color: #2b2420; line-height: 1.3; }
.cb-hero__cap i {
	grid-column: 2; grid-row: 1 / span 2; font-style: normal; white-space: nowrap;
	display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px;
	border-radius: 999px; background: #2b2420; color: #fff; font-size: 13px; font-weight: 600;
}
.cb-hero__dots { position: static; display: flex; justify-content: center; gap: 6px; margin-top: 10px; min-height: 6px; }
.cb-hero__dots .swiper-pagination-bullet { width: 6px; height: 6px; margin: 0 !important; border-radius: 3px; background: #d8cbbf; opacity: 1; transition: width .25s ease, background .25s ease; }
.cb-hero__dots .swiper-pagination-bullet-active { width: 20px; background: #9e795b; }
/* 2026-11-20 anh bia Boys Signature: mobile 1 anh 4:5 (le 15px nhu ban cu), PC khung 1920x800 = ti le anh (truoc 1920x600 cat tren/duoi) */
.cb-hero--single { padding: 0 15px; }
.home-slider picture { aspect-ratio: 1920 / 800; }

/* ---------- 4. Trang chu: dai chinh sach gon ---------- */
.section_chinhsach { padding: 12px 0 6px !important; background: none !important; border: 0 !important; }
.section_chinhsach .cb-perks-strip__row {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
	padding: 10px 6px; border-radius: 16px; background: #f7f1ec;
}
.section_chinhsach .chinhsach-item {
	display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start;
	gap: 6px !important; padding: 2px 2px !important; border: 0 !important; text-align: center;
	text-decoration: none !important; min-width: 0;
}
.section_chinhsach .chinhsach-item .icon-wrap { width: 34px !important; height: 34px !important; border: 0 !important; background: #fff !important; color: #9e795b !important; box-shadow: 0 2px 8px rgba(158, 121, 91, .16); }
.section_chinhsach .chinhsach-item .icon-wrap svg { width: 19px !important; height: 19px !important; stroke-width: 1.7; }
.section_chinhsach .chinhsach-item .text .title {
	font-family: "Be Vietnam Pro", Arial, sans-serif !important; font-size: 11.5px !important; font-weight: 600 !important;
	line-height: 1.3; letter-spacing: 0 !important; color: #2b2420 !important; margin: 0 !important; text-decoration: none !important;
}
.section_chinhsach .chinhsach-item .text .des { display: none; }
@media (min-width: 768px) {
	.section_chinhsach { padding: 18px 0 10px !important; }
	.section_chinhsach .cb-perks-strip__row { padding: 14px 10px; gap: 10px; }
	.section_chinhsach .chinhsach-item { flex-direction: row; text-align: left; gap: 12px !important; padding: 4px 10px !important; }
	.section_chinhsach .chinhsach-item .icon-wrap { width: 44px !important; height: 44px !important; flex: none; }
	.section_chinhsach .chinhsach-item .icon-wrap svg { width: 22px !important; height: 22px !important; }
	.section_chinhsach .chinhsach-item .text .title { font-size: 15px !important; }
	.section_chinhsach .chinhsach-item .text .des { display: block; font-size: 12.5px; color: #6f625a; line-height: 1.45; margin-top: 2px; }
	.section_chinhsach .chinhsach-item .text .des .des-line:not(:first-child) { display: none; }
}

/* ---------- 5. Trang chu: Mua sam theo danh muc ---------- */
.cb-cats { padding: 16px 0 6px; }
.cb-cats .title-module { margin: 0 0 12px !important; text-align: center; }
.cb-cats__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 12px; }
.cb-cats__tab {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
	cursor: pointer; color: #6f625a; -webkit-tap-highlight-color: transparent; min-width: 0;
}
.cb-cats__tab-img {
	width: 66px; height: 66px; padding: 3px; border-radius: 50%; border: 2px solid #ece3db; background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cb-cats__tab-img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.cb-cats__tab-name { font-size: 13px; font-weight: 600; line-height: 1.2; padding: 4px 10px; border-radius: 999px; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.cb-cats__tab.is-active .cb-cats__tab-img { border-color: #9e795b; box-shadow: 0 6px 16px rgba(158, 121, 91, .28); transform: translateY(-2px); }
.cb-cats__tab.is-active .cb-cats__tab-name { background: #2b2420; color: #fff; }
.cb-cats__tab:focus-visible { outline: 2px solid #9e795b; outline-offset: 3px; border-radius: 12px; }
.cb-cats__panel { background: #faf6f2; border-radius: 18px; padding: 12px 0 14px 12px; }
.cb-cats__panel[hidden] { display: none; }
.cb-cats__panel.is-active { animation: cbmIn .22s ease; }
.cb-cats__grid {
	display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 10px; overflow: visible; padding-right: 12px;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cb-cats__grid::-webkit-scrollbar { display: none; }
.cb-cats__item { display: flex; flex-direction: column; gap: 6px; text-align: center; scroll-snap-align: start; text-decoration: none !important; min-width: 0; }
.cb-cats__img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #efe6de; }
.cb-cats__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cb-cats__badge { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 6px; background: #c0392b; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.4; }
.cb-cats__name { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: #2b2420; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-cats__item.is-hot .cb-cats__name { color: #c0392b; }
@media (min-width: 768px) {
	.cb-cats { padding: 30px 0 10px; }
	.cb-cats__tabs { display: flex; justify-content: center; gap: 28px; margin-bottom: 18px; }
	.cb-cats__tab-img { width: 88px; height: 88px; }
	.cb-cats__tab-name { font-size: 15px; }
	.cb-cats__panel { padding: 20px; }
	.cb-cats__grid { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fit, minmax(120px, 150px)); justify-content: center; overflow: visible; padding: 0; gap: 18px 16px; }
	.cb-cats__name { font-size: 14px; }

}
@media (hover: hover) {
	.cb-cats__item:hover .cb-cats__img img { transform: scale(1.05); }
	.cb-cats__tab:hover .cb-cats__tab-img { border-color: #c9b29f; }
}

/* ---------- 6. Trang chu: Winter Edit - moi nhom 1 hang ---------- */
.cb-edit { padding-top: 10px; }
.cb-edit .title-module { margin-bottom: 4px !important; }
.cb-edit__row { margin-top: 18px; }
.cb-edit__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cb-edit__title { margin: 0; font-family: "Be Vietnam Pro", Arial, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.cb-edit__title a { color: #2b2420 !important; text-decoration: none !important; }
.cb-edit__more { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: #9e795b !important; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cb-edit__wrap { position: relative; }
.cb-edit__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 10px) / 2); gap: 10px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cb-edit__track::-webkit-scrollbar { display: none; }
.cb-edit__card { scroll-snap-align: start; min-width: 0; }
.cb-edit__btn {
	position: absolute; top: calc((100vw - 40px) * .3125); transform: translateY(-50%); z-index: 3;
	width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .96); color: #2b2420; box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
	cursor: pointer; transition: opacity .2s ease;
}
.cb-edit__prev { left: 4px; }
.cb-edit__next { right: 4px; }
.cb-edit__btn:disabled { opacity: 0; pointer-events: none; }
@media (min-width: 768px) {
	.cb-edit__track { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; }
	.cb-edit__btn { top: 135px; width: 42px; height: 42px; }
	.cb-edit__prev { left: -10px; }
	.cb-edit__next { right: -10px; }
	.cb-edit__title { font-size: 20px; }
}
@media (min-width: 992px) { .cb-edit__track { grid-auto-columns: calc((100% - 48px) / 4); } }
@media (min-width: 1200px) { .cb-edit__track { grid-auto-columns: calc((100% - 80px) / 5); gap: 20px; } .cb-edit__prev { left: -20px; } .cb-edit__next { right: -20px; } }

/* ---------- 7. The san pham kieu Shopee (toan site) ---------- */
.product-action .product-thumbnail { position: relative; }
.product-action .product-info .price-box { flex-wrap: nowrap !important; align-items: baseline; gap: 6px !important; white-space: nowrap; overflow: hidden; }
/* % giam da hien tren dai chuong trinh o anh (.cb-ribbon) -> an nhan trung o dong gia (van giu trong DOM cho :has() va sap xep gia) */
.product-action .product-info .price-box .smart { display: none !important; }
.product-action .product-info .price-box .compare-price { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.product-action .product-info .price-box .cb-now { font-weight: 700; }
.product-action .product-info .price-box .compare-price { text-decoration: line-through; color: #8d847e !important; }
.product-action .product-info .price-box .smart { align-self: center; border-radius: 4px !important; padding: 1px 5px !important; font-size: 10.5px !important; line-height: 1.5; background: #fde8e4 !important; color: #c0392b !important; }
.cb-perks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; height: 20px; overflow: hidden; }
.cb-perk {
	display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; border: 1px solid;
	font-family: "Be Vietnam Pro", Arial, sans-serif; font-size: 10.5px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.cb-perk--voucher { color: #c0392b; border-color: #f2b8ae; background: #fff6f4; }
.cb-perk--ship { color: #0b7a62; border-color: #9fd8c8; background: #f0faf7; }
.cb-ribbon {
	position: absolute; left: 0; bottom: 0; z-index: 2; display: flex; height: 22px;
	font-family: "Be Vietnam Pro", Arial, sans-serif; font-size: 10.5px; font-weight: 800; line-height: 22px;
	text-transform: uppercase; letter-spacing: .03em; pointer-events: none;
}
.cb-ribbon b { background: #141414; color: #fff; padding: 0 7px; font-weight: 800; }
.cb-ribbon i { background: #c0392b; color: #fff; padding: 0 6px; font-style: normal; border-top-right-radius: 8px; }
@media (min-width: 768px) {
	.cb-perk { font-size: 11.5px; height: 22px; padding: 0 7px; }
	.cb-perks { height: 22px; }
	.cb-ribbon { height: 26px; line-height: 26px; font-size: 11.5px; }
}

/* ---------- 8. Banner Black Friday tren trang Be trai / Be gai ---------- */
.cb-catbanner { display: block; margin: 0 0 18px; border-radius: 16px; overflow: hidden; background: #f3ede7; }
.cb-catbanner img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) { .cb-catbanner { margin-bottom: 14px; border-radius: 12px; } }
@media (min-width: 768px) { .cb-catbanner { max-width: 880px; margin: 0 auto 24px; } }