/* Trang sản phẩm mobile: thanh mua dưới (UI-34) + màn "Mua kèm giá sốc" (UI-42 / A25) – thiết kế 17/10. */
.bond-pb, .bond-up { display: none; }
@media (max-width: 849px) {
	body.single-product { padding-bottom: 150px; }
	html.bond-up-lock, html.bond-up-lock body { overflow: hidden; }

	/* thanh dưới */
	.bond-pb { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.08); font-family: "Be Vietnam Pro", sans-serif; color: #1c2a1e; }
	.bond-pb button { text-transform: none; letter-spacing: 0; }
	.bond-pb-up { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 0; margin: 0 0 8px; padding: 6px 2px; border: 0; background: none; font-size: 13px; font-weight: 400; color: #1c2a1e; text-align: left; }
	.bond-pb-up b { color: #14803a; }
	.bond-pb-up em { margin-left: auto; font-style: normal; font-weight: 700; color: #14803a; white-space: nowrap; }
	.bond-pb-buy { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; }
	.bond-pb-sel { min-width: 0; font-size: 12px; line-height: 1.35; color: #3f5242; }
	.bond-pb-var { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.bond-pb-save { display: block; font-style: normal; font-weight: 600; color: #ff6a00; }
	.bond-pb-tot { text-align: right; line-height: 1.2; }
	.bond-pb-tot small { display: block; font-size: 12px; color: #5a6b5c; }
	.bond-pb-price { font-size: 20px; font-weight: 800; color: #1c2a1e; white-space: nowrap; }
	.bond-pb-now { grid-column: 1 / -1; width: 100%; height: 48px; margin: 6px 0 0; border: 0; border-radius: 6px; background: #ff6a00; color: #fff; font-size: 15px; font-weight: 800; }
	.bond-pb-has { display: none; gap: 8px; }
	.bond-pb.is-incart .bond-pb-buy { display: none; }
	.bond-pb.is-incart .bond-pb-has { display: flex; }
	.bond-pb-cart { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #14803a; color: #fff !important; text-decoration: none; }
	.bond-pb-cart-ic { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 17px; }
	.bond-pb-cart-ic i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ff6a00; font-style: normal; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; color: #fff; }
	.bond-pb-cart b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
	.bond-pb-cart small { display: block; font-size: 12px; opacity: .9; }
	.bond-pb-cart em { margin-left: auto; font-style: normal; font-size: 22px; }
	.bond-pb-zalo { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: #0068ff; color: #fff !important; text-decoration: none; line-height: 1.2; }
	.bond-pb-zalo b { font-size: 13px; font-weight: 800; }
	.bond-pb-zalo small { font-size: 11px; }

	/* màn mua kèm */
	.bond-up:not([hidden]) { display: flex; position: fixed; inset: 0; z-index: 100050; align-items: flex-end; background: rgba(0,0,0,.45); font-family: "Be Vietnam Pro", sans-serif; color: #1c2a1e; }
	.bond-up-sheet { display: flex; flex-direction: column; width: 100%; max-height: 82vh; max-height: 82dvh; background: #fff; border-radius: 16px 16px 0 0; }
	.bond-up-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 2px; }
	.bond-up-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: #1c2a1e; }
	.bond-up-head h2 span { padding: 2px 8px; border-radius: 6px; background: #ff6a00; font-size: 11px; font-weight: 800; text-transform: uppercase; color: #fff; }
	.bond-up-x { margin: 0 0 0 auto; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #f1f4f1; font-size: 20px; line-height: 32px; color: #1c2a1e; }
	.bond-up-sub { margin: 0; padding: 0 14px 8px; font-size: 13px; color: #5a6b5c; }
	.bond-up-body { flex: 1; overflow: auto; padding: 0 14px; overscroll-behavior: contain; }
	.bond-up-group { padding: 12px 0; border-top: 1px solid #eef2ee; }
	.bond-up-prod { display: flex; gap: 12px; align-items: center; margin: 0 0 10px; color: #1c2a1e; text-decoration: none; }
	.bond-up-prod img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
	.bond-up-prod b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
	.bond-up-prod small { display: block; font-size: 12px; line-height: 1.35; color: #5a6b5c; }
	.bond-up-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
	.bond-up-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 0; margin: 0; padding: 8px; border: 1.5px solid #d9e2da; border-radius: 10px; background: #fff; text-align: left; text-transform: none; letter-spacing: 0; color: #1c2a1e; }
	.bond-up-opt small { font-size: 11px; font-weight: 400; color: #5a6b5c; }
	.bond-up-opt b { font-size: 13px; font-weight: 700; line-height: 1.25; word-break: break-word; }
	.bond-up-opt strong { font-size: 15px; font-weight: 800; color: #ff6a00; }
	.bond-up-opt del { font-size: 11px; color: #8a958b; }
	.bond-up-opt::after { content: ""; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border: 1.5px solid #c7d1c8; border-radius: 50%; }
	.bond-up-opt[aria-checked=true] { border-color: #34c759; background: #f2fbf4; }
	.bond-up-opt[aria-checked=true]::after { border-color: #34c759; background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }
	.bond-up-foot { padding: 8px 14px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
	.bond-up-msg { margin: 0 0 6px; min-height: 0; font-size: 13px; text-align: center; color: #14803a; }
	.bond-up-msg:empty { display: none; }
	.bond-up-msg.is-error { color: #c62828; }
	.bond-up-add { width: 100%; height: 48px; margin: 0; border: 0; border-radius: 10px; background: #ff6a00; color: #fff; font-size: 15px; font-weight: 800; text-transform: none; }
	.bond-up-add:disabled { background: #d9e2da; color: #5a6b5c; }
}
@media (max-width: 380px) {
	.bond-up-opts { grid-template-columns: repeat(2, 1fr); }
}

/* Trang chủ / danh mục: thanh giỏ hàng (A17 / UI-33) – chỉ hiện khi giỏ có hàng. */
@media (max-width: 849px) {
	.bond-lb { display: none; padding-top: 0; }
	.bond-lb.is-on { display: block; }
	.bond-lb .bond-pb-has { display: flex; }
	.bond-lb-trust { display: flex; justify-content: space-between; margin: 0 -12px 8px; padding: 7px 14px; border-radius: 14px 14px 0 0; background: #eef9f0; font-size: 12px; font-weight: 700; color: #14803a; }
	body.bond-lb-on { padding-bottom: 120px; }
}

/* 5.6 (feedback 23/10): "Gợi ý mua kèm" chỉ hiện khi giỏ đã có sản phẩm khác (khách đang xem sản phẩm thứ 2, thứ 3) */
.bond-pb:not(.has-other) .bond-pb-up { display: none !important; }

/* 6.1 (feedback 23/10): mỗi lựa chọn mua kèm rộng cố định, xếp 1 hàng, kéo ngang (không bóp nhỏ cho vừa lưới) */
.bond-up-opts, .bond-up-opts[class] { display: flex !important; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 -14px; padding: 2px 14px 4px; scroll-padding-inline: 14px; }
.bond-up-opts::-webkit-scrollbar { display: none; }
.bond-up-opt { flex: 0 0 104px; width: 104px; box-sizing: border-box; scroll-snap-align: start; border-radius: 6px; }
.bond-up-opt b { max-width: 100%; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bond-up-opt { justify-content: flex-start; }
.bond-up-opt, .bond-up-opt small, .bond-up-opt strong, .bond-up-opt del { line-height: 1.3; }
.bond-up-opt { gap: 2px; padding: 8px 9px; min-height: 0; height: auto; align-self: stretch; }
.bond-up-opt strong { margin-top: 4px; }
