/* Gộp quy cách Lon / Lốc / Thùng (HTMart_Pack_Groups). */

/* ---- Thẻ sản phẩm: hàng chip quy cách ---- */
.htm-card__packs {
	display: flex; flex-wrap: nowrap; gap: 4px; min-width: 0; overflow: hidden;
	margin: -2px 0 0; height: 22px;
}
.htm-chipu {
	flex: 0 0 auto; display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
	border: 1px solid #dbe4ee; border-radius: 6px; background: #fff; color: #475569;
	font-family: inherit; font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
}
button.htm-chipu:hover { border-color: var(--blue, #0878C9); color: var(--blue, #0878C9); }
.htm-chipu.is-active {
	border-color: var(--blue, #0878C9); background: #eef6fd; color: var(--blue, #0878C9);
	font-weight: 700; cursor: default;
}
.htm-chipu--more { cursor: default; color: #94a3b8; padding: 0 6px; }

/* ---- Trang chi tiết + xem nhanh: ô chọn quy cách ---- */
.htm-pack { margin: 4px 0 16px; }
.htm-pack__title { font-size: 13px; font-weight: 600; color: var(--muted, #64748b); margin-bottom: 8px; }
.htm-pack__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.htm-pack__opt {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
	padding: 9px 12px; border: 1.5px solid #dbe4ee; border-radius: 12px; background: #fff;
	color: var(--ink, #0f172a); text-align: left; text-decoration: none; line-height: 1.2;
	font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
a.htm-pack__opt:hover, button.htm-pack__opt:hover { border-color: var(--blue, #0878C9); box-shadow: 0 2px 10px rgba(8, 120, 201, .12); }
.htm-pack__opt.is-active { border-color: var(--blue, #0878C9); background: #eef6fd; cursor: default; }
.htm-pack__opt.is-active::after {
	content: ""; position: absolute; top: -1.5px; right: -1.5px; width: 18px; height: 18px;
	border-radius: 0 12px 0 8px; background: var(--blue, #0878C9)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.htm-pack__name { font-size: 13.5px; font-weight: 600; }
.htm-pack__price { font-size: 15px; font-weight: 800; color: var(--red, #dc2626); }
.htm-pack__per { font-size: 11.5px; color: var(--muted, #64748b); }
.htm-pack__oos { font-size: 11.5px; font-weight: 600; color: #b91c1c; }
.htm-pack__opt.is-oos { background: #f8fafc; }
.htm-pack__opt.is-oos .htm-pack__price { color: #94a3b8; }
.htm-pack__save {
	position: absolute; top: -9px; left: 10px; padding: 2px 6px; border-radius: 999px;
	background: var(--orange, #F58220); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1.2;
}
.htm-pack__opt.is-active .htm-pack__save { left: 10px; }

/* Xem nhanh: gọn hơn một chút. */
.htm-pack--qv { margin: 0 0 14px; }
.htm-pack--qv .htm-pack__opts { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
.htm-pack--qv .htm-pack__opt { padding: 8px 10px; }

@media (max-width: 768px) {
	.htm-card__packs { height: 20px; }
	.htm-chipu { height: 20px; padding: 0 6px; }
	.htm-chipu { font-size: 11px; }
	.htm-pack__opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
	.htm-pack__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
