/* VITIMEX v14.25 – gọn & dễ mua. Đi kèm assets/vtm-v25.js */
:root { --v25-ink: #0a0a0a; --v25-muted: #6b7280; --v25-line: #e5e7eb; --v25-ok: #15803d; --v25-sale: #b51f29; --v25-soft: #f6f7f9; }

/* ---- Trang SP: dòng cam kết dưới giá (liquid) ---- */
.v25-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 2px; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.35; color: #1f2937; }
.v25-trust li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.v25-trust svg { flex: 0 0 auto; color: var(--v25-ok); }
/* bỏ dòng "Giá thấp nhất trong 30 ngày…" (khó hiểu) – thay bằng "Tiết kiệm …" cạnh giá */
.productdetail-layout .pr-notify, .pr-infos--prices .pr-notify { display: none !important; }
.pr-price .v25-save { display: inline-block; margin-left: 8px; font-size: 13.5px; font-weight: 600; color: var(--v25-sale); white-space: nowrap; }
#sticky-pr-price .v25-save { display: none; }

/* ---- Cân nặng dưới nút size ---- */
.pr-infos--variants .select-swap--size.v25-has-w { row-gap: 26px !important; padding-bottom: 18px; }
.pr-infos--variants .select-swap--size label[data-value] { position: relative; overflow: visible; }
.pr-infos--variants .select-swap--size .v25-w { position: absolute; left: -6px; right: -6px; top: calc(100% + 3px); font-size: 11.5px; font-weight: 500; line-height: 1.2; color: var(--v25-muted); text-align: center; white-space: nowrap; pointer-events: none; }
.pr-infos--variants .select-swap--size label.soldout .v25-w { opacity: .55; }
.pr-infos--variants .btn-sizeguide.v25-sg-ask { font-weight: 600; color: var(--v25-ink); text-decoration: underline; text-underline-offset: 3px; }
#variant-swatch-2.v25-flash { animation: v25flash 1.5s ease; border-radius: 6px; }
@keyframes v25flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(181, 31, 41, 0); } 20%, 60% { box-shadow: 0 0 0 3px rgba(181, 31, 41, .45); } }

/* ---- Mô tả dài: gấp lại ---- */
.pr-infos--description .v25-fold:not(.v25-open) { max-height: 420px !important; height: auto !important; overflow: hidden !important; position: relative; }
.pr-infos--description .v25-fold:not(.v25-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.v25-more { display: block; width: 100%; max-width: 360px; margin: 12px auto 4px; min-height: 44px; border: 1px solid var(--v25-ink); background: #fff; color: var(--v25-ink); font-size: 14px; font-weight: 600; border-radius: 2px; cursor: pointer; }

/* ---- Đặt nhanh (khách từ app Facebook/Zalo/TikTok) ---- */
.v25-quick { display: block; width: 100%; margin: 10px 0 0; min-height: 46px; padding: 10px 12px; border: 1px dashed #9ca3af; background: var(--v25-soft); color: #1f2937; font-size: 14px; line-height: 1.35; text-align: center; border-radius: 2px; cursor: pointer; }
.v25-quick b { color: var(--v25-ink); }
.v25-quick.is-busy { opacity: .6; }

/* ---- Thanh mua dính đáy: nút chat theo nguồn ---- */
.productdetail-fixed .sticky-pr__btn { display: flex; align-items: center; gap: 8px; }
.productdetail-fixed .v25-chat { display: none; }
@media (max-width: 991px) {
	.productdetail-fixed .v25-chat { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 52px; min-height: 46px; color: var(--v25-ink); font-size: 11px; font-weight: 600; text-decoration: none; border: 1px solid var(--v25-line); border-radius: 2px; background: #fff; }
	.productdetail-fixed .v25-chat--msg { color: #0866ff; }
	.productdetail-fixed .v25-chat--zalo { color: #0068ff; }
	.productdetail-fixed .v25-chat span { color: var(--v25-ink); }
	/* trang SP đã có nút chat ở thanh mua -> ẩn nút liên hệ nổi (khỏi đè chữ, đè nút mua) */
	html.v25-pdp.v25-has-chat .vtm-float-contact { display: none !important; }
}

/* ---- Danh mục: chữ thẻ SP dễ đọc hơn cho khách trung tuổi ---- */
@media (max-width: 767px) {
	.product-loop .v7-nm, .product-tile .v7-nm { font-size: 14px !important; line-height: 1.35 !important; }
	.product-loop .v7-sub, .product-tile .v7-sub { font-size: 13px !important; }
	.product-loop .vtm-loop-meta, .product-tile .vtm-loop-meta { font-size: 12.5px !important; }
	.product-loop .vtm-loop-low, .product-tile .vtm-loop-low { font-size: 12.5px !important; }
	/* nút liên hệ nổi nhỏ lại, ẩn khi đang mở bộ lọc / sắp xếp */
	.temp-collection .vtm-float-contact, .temp-search .vtm-float-contact { transform: scale(.86); transform-origin: right bottom; }
	body.open-filtermb .vtm-float-contact { display: none !important; }
}
/* tối đa 1 nhãn trên ảnh */
.product-loop--labels .vtm-badge + .vtm-badge { display: none !important; }
/* bộ lọc màu trên điện thoại: hiện tên màu dưới ô màu */
.collection-filter--mb .filter-color .checkbox-list li { width: 25% !important; }
.collection-filter--mb .filter-color .checkbox-list li label { flex-direction: column !important; gap: 6px !important; padding: 10px 4px !important; }
.collection-filter--mb .filter-color .checkbox-list li label span:not(.bg) { display: block !important; font-size: 12px !important; line-height: 1.25; text-transform: none !important; text-align: center; color: #374151; }
/* sắp xếp: chỉ 1 lựa chọn – ô tròn */
#sidebar-box--mb-sort input[type="checkbox"] + label::before, .sortBy input[type="checkbox"] + label::before { border-radius: 50% !important; }

/* ---- Trang tìm kiếm không có kết quả: gợi ý ---- */
.v25-empty { max-width: 640px; margin: 8px auto 28px; text-align: center; }
.v25-empty h3 { font-size: 16px; font-weight: 600; margin: 18px 0 10px; }
.v25-empty__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.v25-empty__chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--v25-line); border-radius: 999px; color: var(--v25-ink); font-size: 14px; text-decoration: none; background: #fff; }
.v25-empty__help { margin-top: 14px; font-size: 14px; color: var(--v25-muted); }
.v25-empty__help a { color: var(--v25-ink); font-weight: 600; text-decoration: underline; }
.v25-empty__try { margin-top: 10px; font-size: 14px; }
.v25-empty__try a { font-weight: 600; text-decoration: underline; color: var(--v25-ink); }

/* ---- Danh mục: giữ chỗ cho hàng ảnh danh mục, "Mua theo dịp", dáng, size (chống nhảy trang khi tải – CLS) ----
   số đo thật trên điện thoại 360–414px: hàng ảnh 146, Mua theo dịp 40 + 10, nút Lọc 52, Dáng 16 + 48, Size 16 + 38 */
@media (max-width: 767px) {
	#collection-page.v25-hold-cate .cate-wrapper.d-none { display: block !important; visibility: hidden; height: 146px; padding: 0 !important; overflow: hidden; }
	#collection-page.v25-hold-need .collection-head { margin-top: 50px; }
	#collection-page.v25-hold-need #v7Need + .collection-head { margin-top: 0; }
	#collection-page.v25-hold-fit.v25-hold-size .collection-head:not(.v25-built) .action-wrapper { min-height: 170px; }
	#collection-page.v25-hold-fit:not(.v25-hold-size) .collection-head:not(.v25-built) .action-wrapper { min-height: 116px; }
	#collection-page.v25-hold-size:not(.v25-hold-fit) .collection-head:not(.v25-built) .action-wrapper { min-height: 106px; }
}

/* ---- v14.25: tên SP gọn, size quen, link cửa hàng ---- */
.pr-infos--heading .pr-title[data-v25] { text-transform: none; letter-spacing: 0; }
.pr-infos--heading .pr-title .v25-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v25-size-hint { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: #1f2937; }
.v25-size-hint b { color: var(--v25-ink); }
.v25-size-hint button { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--v25-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.v25-trust a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
	.pr-infos--heading .pr-title[data-v25] { font-size: 20px; line-height: 1.3; }
}

/* v14.26: giá theo hạng thành viên + nhãn hạng ở đầu trang */
.v26-hang { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #5b6070; }
.v26-hang b { color: #8a5a00; font-weight: 700; }
.v26-hang__in { background: none; border: 0; padding: 0; font: inherit; color: #0f2350; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
a .v26-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #f3ead8; color: #6b4a12; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
@media (max-width: 767px) { a .v26-tag { position: absolute; top: -6px; right: -10px; margin: 0; font-size: 9px; padding: 0 4px; } }
