/* ==========================================================================
   VN Smart Related & Reviews
   ========================================================================== */

.vnsr-scope {
	--vnsr-accent: #d32f2f;
	--vnsr-star: #ffb400;
	--vnsr-cols: 6;
	--bg: #1c1c20;
	--card: #26262b;
	--card-2: #2e2e34;
	--text: #f1f1f3;
	--muted: #a2a2aa;
	--line: rgba(255, 255, 255, .09);
	--shadow: 0 12px 30px -14px rgba(0, 0, 0, .7);
	color: var(--text);
	font-size: 15px;
	line-height: 1.55;
}
.vnsr-scope[data-theme="light"] {
	--bg: #f6f6f8;
	--card: #ffffff;
	--card-2: #f1f1f4;
	--text: #1d1d1f;
	--muted: #6b6b73;
	--line: rgba(0, 0, 0, .09);
	--shadow: 0 12px 30px -16px rgba(0, 0, 0, .25);
}
.vnsr-scope *, .vnsr-scope *::before, .vnsr-scope *::after { box-sizing: border-box; }
.vnsr-scope button { font-family: inherit; text-transform: none; letter-spacing: 0; }
.vnsr-scope a, .vnsr-scope a:hover { text-decoration: none; box-shadow: none; }

/* ---------- Sao ---------- */
.vnsr-stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.vnsr-stars svg { fill: currentColor; margin-right: 1px; }
.vnsr-stars__bg { color: rgba(127, 127, 127, .35); white-space: nowrap; display: inline-block; }
.vnsr-stars__fg { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--vnsr-star); }

/* ==========================================================================
   Khối liên quan
   ========================================================================== */
.vnsr-section { margin: 36px 0 8px; clear: both; }
.vnsr-section__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
}
.vnsr-section__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vnsr-section__title {
	position: relative;
	margin: 0;
	padding-left: 14px;
	color: var(--text);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1.3;
}
.vnsr-section__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	bottom: 3px;
	width: 4px;
	border-radius: 4px;
	background: var(--vnsr-accent);
}

.vnsr-grid {
	display: grid;
	--gap: 16px;
	--min: 165px;
	grid-template-columns: repeat(auto-fill, minmax(max(var(--min), calc((100% - (var(--vnsr-cols) - 1) * var(--gap)) / var(--vnsr-cols))), 1fr));
	gap: var(--gap);
	align-items: stretch;
}
.vnsr-section--post .vnsr-grid { --min: 240px; --vnsr-cols: 3; }

/* ---------- Thẻ ---------- */
.vnsr-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border-radius: 12px;
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: transform .25s ease, box-shadow .25s ease;
}
.vnsr-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }

.vnsr-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #111; }
.vnsr-card__media--wide { aspect-ratio: 16 / 9; }
.vnsr-card__imglink { display: block; width: 100%; height: 100%; }
.vnsr-card__media img, .vnsr-card__img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; transition: transform .4s ease; }
.vnsr-card:hover .vnsr-card__media img { transform: scale(1.06); }
.vnsr-card__noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: 48px; font-weight: 800; color: var(--muted); background: var(--card-2); }

.vnsr-flag {
	position: absolute;
	bottom: 8px;
	left: 8px;
	z-index: 2;
	padding: 3px 9px;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.5;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.vnsr-flag--sale { background: #ff7043; }
.vnsr-flag--new { background: #2e7d32; }
.vnsr-flag--out { background: #616161; }
.vnsr-flag--cat { background: var(--vnsr-accent); }

/* Nút Xem nhanh (VN Dual Price) trên ảnh */
.vnsr-card .vnsr-card__qv { position: absolute; top: 8px; right: 8px; z-index: 3; }

.vnsr-card__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 6px; padding: 12px 12px 12px; }
.vnsr-card__cat {
	height: 16px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 16px;
	text-transform: uppercase;
}
.vnsr-card__title {
	margin: 0;
	height: calc(1.4em * 3);
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}
.vnsr-card__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	color: var(--text);
	text-decoration: none;
	word-break: break-word;
}
.vnsr-card__title a:hover { color: var(--vnsr-star); }

.vnsr-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	height: 18px;
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
}
.vnsr-card__rating { display: inline-flex; align-items: center; gap: 4px; }
.vnsr-card__rcount { font-size: 11px; }
.vnsr-card__norating .vnsr-stars__fg { display: none; }
.vnsr-card__norating { opacity: .7; }
.vnsr-card__sold { font-size: 11px; font-weight: 600; }

/* Giá: căn giữa, chiều cao cố định */
.vnsr-card__price {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	margin-top: auto;
	padding: 6px 8px;
	border-radius: 10px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
	box-shadow: inset 0 0 0 1px var(--line), inset 0 -2px 0 var(--vnsr-accent);
	text-align: center;
	position: relative;
}
.vnsr-scope[data-theme="light"] .vnsr-card__price { background: var(--card-2); }
.vnsr-card__price .price { display: block; margin: 0; color: var(--text); font-size: 17px; font-weight: 800; line-height: 1.25; }
.vnsr-card__price .price del { display: block; opacity: .5; font-size: .7em; font-weight: 500; }
.vnsr-card__price .price ins, .vnsr-card__price .vndp-amount { text-decoration: none; background: none; font-weight: 800; }
.vnsr-card__contact { font-size: 15px; opacity: .75; }
/* Tương thích giá kép VN Dual Price */
.vnsr-card__price .vndp-price { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vnsr-card__price .vndp-line { justify-content: center; flex-wrap: nowrap; white-space: nowrap; }
.vnsr-card__price .vndp-primary { font-size: clamp(15px, 1.2vw + 6px, 18px); }
.vnsr-card__price .vndp-primary ins { order: 1; }
.vnsr-card__price .vndp-primary del, .vnsr-card__price .vndp-primary .screen-reader-text { display: none; }
.vnsr-card__price .vndp-secondary { font-size: 12.5px; }
.vnsr-card__price .vndp-secondary del { display: none; }
.vnsr-card__price .vndp-badge { position: absolute; top: -7px; right: -4px; font-size: 10px; }

.vnsr-card { container-type: inline-size; }
.vnsr-card__foot { margin-top: 4px; }
.vnsr-card__foot .vnsr-btn { white-space: nowrap; padding: 8px 8px; font-size: 12.5px; }
@container (max-width: 135px) { .vnsr-card__foot .vnsr-btn--cart span { display: none; } }
.vnsr-card__excerpt {
	margin: 0;
	height: calc(1.55em * 2);
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.55;
}
.vnsr-card__postmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.vnsr-card--post .vnsr-card__title { height: calc(1.4em * 2); font-size: 15px; }
.vnsr-card--post .vnsr-card__title a { -webkit-line-clamp: 2; line-clamp: 2; }

/* ---------- Nút ---------- */
.vnsr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 38px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--card-2);
	color: var(--text) !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .2s, border-color .2s, transform .15s, box-shadow .2s, opacity .2s;
}
.vnsr-btn:hover { background: var(--vnsr-accent); border-color: var(--vnsr-accent); color: #fff !important; }
.vnsr-btn:active { transform: translateY(1px); }
.vnsr-btn[disabled] { opacity: .6; cursor: wait; }
.vnsr-btn--primary { width: auto; background: var(--vnsr-accent); border-color: var(--vnsr-accent); color: #fff !important; box-shadow: 0 8px 18px -8px var(--vnsr-accent); padding: 10px 22px; font-size: 14px; }
.vnsr-btn--primary:hover { filter: brightness(1.1); }
.vnsr-btn--ghost { width: auto; background: transparent; }
.vnsr-btn.added { background: #2e7d32; border-color: #2e7d32; color: #fff !important; }
.vnsr-btn.loading { opacity: .7; pointer-events: none; }
.vnsr-card .added_to_cart { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 767px)  {
	.vnsr-grid, .vnsr-section--post .vnsr-grid { --gap: 12px; --min: 140px; }
	.vnsr-section__title { font-size: 17px; }
	/* Cuộn ngang trên điện thoại */
	.vnsr-section--scroll .vnsr-grid {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 44%;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	.vnsr-section--scroll.vnsr-section--post .vnsr-grid { grid-auto-columns: 78%; }
	.vnsr-section--scroll .vnsr-card { scroll-snap-align: start; }
	.vnsr-card:hover { transform: none; }
}

/* ==========================================================================
   Đánh giá & bình luận
   ========================================================================== */
.vnsr-reviews {
	position: relative;
	margin: 32px 0;
	padding: 26px;
	border-radius: 16px;
	background: var(--bg);
	box-shadow: inset 0 0 0 1px var(--line);
	container-type: inline-size;
	container-name: vnsr;
}
.vnsr-anchor { position: absolute; top: -90px; }
.vnsr-reviews__head { margin-bottom: 18px; }
.vnsr-reviews__title { margin: 0; color: var(--text); font-size: 22px; font-weight: 800; line-height: 1.3; }
.vnsr-reviews__total { color: var(--muted); font-weight: 600; font-size: .8em; }

/* Tổng quan */
.vnsr-summary {
	display: grid;
	grid-template-columns: 180px 1fr 260px;
	gap: 24px;
	align-items: center;
	padding: 20px;
	border-radius: 14px;
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
}
.vnsr-summary__score { text-align: center; }
.vnsr-summary__avg { color: var(--text); font-size: 48px; font-weight: 900; line-height: 1; }
.vnsr-summary__avg small { color: var(--muted); font-size: 18px; font-weight: 600; }
.vnsr-summary__score .vnsr-stars { margin: 8px 0 4px; }
.vnsr-summary__count { color: var(--muted); font-size: 13px; }

.vnsr-summary__bars { display: grid; gap: 6px; }
.vnsr-bar {
	display: grid;
	grid-template-columns: 38px 1fr 34px;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 2px 4px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--text);
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	transition: background .2s;
}
.vnsr-bar:hover { background: var(--card-2); }
.vnsr-bar__label { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.vnsr-bar__label svg { color: var(--vnsr-star); }
.vnsr-bar__track { height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.vnsr-bar__fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--vnsr-star), #ff8f00); transition: width .6s ease; }
.vnsr-bar__num { color: var(--muted); text-align: right; }

.vnsr-summary__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-left: 24px; border-left: 1px solid var(--line); }
.vnsr-summary__cta p { margin: 0; color: var(--muted); font-size: 14px; }
.vnsr-quickstars { display: flex; gap: 2px; }
.vnsr-quickstar {
	min-height: 0;
	margin: 0;
	padding: 2px;
	border: 0;
	background: none;
	color: rgba(127, 127, 127, .45);
	cursor: pointer;
	transition: transform .15s, color .15s;
}
.vnsr-quickstar svg { display: block; fill: currentColor; }
.vnsr-quickstar.is-hover, .vnsr-quickstar.is-on { color: var(--vnsr-star); }
.vnsr-quickstar:hover { transform: scale(1.18); }

/* Biểu mẫu */
.vnsr-form {
	display: grid;
	gap: 14px;
	margin-top: 18px;
	padding: 20px;
	border-radius: 14px;
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow .3s;
}
.vnsr-form.is-open { box-shadow: inset 0 0 0 1px var(--vnsr-accent), 0 0 0 4px rgba(211, 47, 47, .12); }

.vnsr-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.vnsr-kind {
	min-height: 0;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card-2);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: all .2s;
}
.vnsr-kind:hover { border-color: var(--vnsr-accent); }
.vnsr-kind.is-active { background: var(--vnsr-accent); border-color: var(--vnsr-accent); color: #fff; }

.vnsr-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.vnsr-rate__label { color: var(--text); font-weight: 700; font-size: 14px; }
.vnsr-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.vnsr-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.vnsr-rate__stars label { margin: 0; padding: 1px; color: rgba(127, 127, 127, .45); cursor: pointer; line-height: 0; transition: transform .15s, color .15s; }
.vnsr-rate__stars label svg { fill: currentColor; }
.vnsr-rate__stars label:hover,
.vnsr-rate__stars label:hover ~ label,
.vnsr-rate__stars input:checked ~ label { color: var(--vnsr-star); }
.vnsr-rate__stars label:hover { transform: scale(1.15); }
.vnsr-rate__stars input:focus-visible + label { outline: 2px solid var(--vnsr-accent); border-radius: 4px; }
.vnsr-rate__text { color: var(--vnsr-star); font-weight: 700; font-size: 14px; min-height: 1.4em; }

.vnsr-field { position: relative; }
.vnsr-scope .vnsr-field input,
.vnsr-scope .vnsr-field textarea {
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--card-2);
	box-shadow: none;
	color: var(--text);
	font-size: 15px;
	line-height: 1.5;
	transition: border-color .2s, box-shadow .2s;
}
.vnsr-scope .vnsr-field input { height: 46px; }
.vnsr-scope .vnsr-field textarea { min-height: 110px; resize: vertical; padding-bottom: 26px; }
.vnsr-scope .vnsr-field input:focus,
.vnsr-scope .vnsr-field textarea:focus { outline: none; border-color: var(--vnsr-accent); box-shadow: 0 0 0 3px rgba(211, 47, 47, .18); }
.vnsr-scope .vnsr-field ::placeholder { color: var(--muted); opacity: 1; }
.vnsr-counter { position: absolute; right: 12px; bottom: 8px; color: var(--muted); font-size: 11px; pointer-events: none; }
.vnsr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.vnsr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vnsr-chip {
	min-height: 0;
	margin: 0;
	padding: 5px 12px;
	border: 1px dashed var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.4;
	cursor: pointer;
	transition: all .2s;
}
.vnsr-chip:hover { color: var(--text); border-color: var(--vnsr-star); }
.vnsr-chip.is-used { color: var(--vnsr-star); border-style: solid; border-color: var(--vnsr-star); }

.vnsr-opts { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 13px; }
.vnsr-opts label { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; font-weight: 400; }
.vnsr-opts input { margin: 0; accent-color: var(--vnsr-accent); }
.vnsr-logged { margin: 0; color: var(--muted); font-size: 14px; }
.vnsr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.vnsr-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.vnsr-form__note { color: var(--muted); font-size: 12px; }

.vnsr-notice:empty { display: none; }
.vnsr-notice { padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.vnsr-notice.is-ok { background: rgba(67, 160, 71, .14); color: #81c784; }
.vnsr-notice.is-err { background: rgba(229, 57, 53, .14); color: #ef9a9a; }
.vnsr-scope[data-theme="light"] .vnsr-notice.is-ok { color: #2e7d32; }
.vnsr-scope[data-theme="light"] .vnsr-notice.is-err { color: #c62828; }
.vnsr-closed { margin: 18px 0 0; padding: 14px; border-radius: 10px; background: var(--card); color: var(--muted); text-align: center; }

/* Thanh lọc */
.vnsr-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 24px 0 8px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
.vnsr-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.vnsr-filter {
	min-height: 0;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--card);
	color: var(--text);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: all .2s;
}
.vnsr-filter:hover { border-color: var(--vnsr-star); }
.vnsr-filter.is-active { border-color: var(--vnsr-accent); color: #fff; background: var(--vnsr-accent); }
.vnsr-sort { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.vnsr-scope .vnsr-sort select {
	width: auto;
	height: 34px;
	margin: 0;
	padding: 0 30px 0 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background-color: var(--card);
	color: var(--text);
	font-size: 13px;
	box-shadow: none;
}

/* Danh sách */
.vnsr-list { margin: 0; padding: 0; list-style: none; transition: opacity .2s; }
.vnsr-list.is-loading { opacity: .4; pointer-events: none; }
.vnsr-empty { margin: 0; padding: 30px 10px; color: var(--muted); text-align: center; list-style: none; }
.vnsr-item { display: flex; gap: 14px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); list-style: none; }
.vnsr-list > .vnsr-item:last-child { border-bottom: 0; }
.vnsr-item.is-new { animation: vnsr-flash 1.6s ease; border-radius: 10px; }
.vnsr-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, hsl(var(--h), 65%, 48%), hsl(calc(var(--h) + 40), 70%, 38%));
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	box-shadow: 0 4px 12px -4px hsla(var(--h), 70%, 40%, .7);
}
.vnsr-item.is-staff > .vnsr-avatar { background: linear-gradient(135deg, var(--vnsr-accent), #ff7043); box-shadow: 0 0 0 2px var(--vnsr-star); }
.vnsr-item__body { flex: 1; min-width: 0; }
.vnsr-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.vnsr-item__name { color: var(--text); font-size: 15px; font-weight: 800; }
.vnsr-item__time { margin-left: auto; color: var(--muted); font-size: 12px; }
.vnsr-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1.5; }
.vnsr-badge--staff { background: rgba(211, 47, 47, .18); color: #ff8a80; }
.vnsr-badge--buyer { background: rgba(67, 160, 71, .18); color: #81c784; }
.vnsr-badge--q { background: rgba(33, 150, 243, .18); color: #90caf9; }
.vnsr-badge--f { background: rgba(255, 180, 0, .16); color: #ffd54f; }
.vnsr-badge--pending { background: rgba(158, 158, 158, .2); color: var(--muted); }
.vnsr-scope[data-theme="light"] .vnsr-badge--staff { color: #c62828; }
.vnsr-scope[data-theme="light"] .vnsr-badge--buyer { color: #2e7d32; }
.vnsr-scope[data-theme="light"] .vnsr-badge--q { color: #1565c0; }
.vnsr-scope[data-theme="light"] .vnsr-badge--f { color: #b26a00; }
.vnsr-item__rating { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.vnsr-item__rating span:last-child { color: var(--vnsr-star); font-size: 12px; font-weight: 700; }
.vnsr-item__text { margin-top: 6px; color: var(--text); font-size: 15px; line-height: 1.65; word-wrap: break-word; }
.vnsr-item__text p { margin: 0 0 .6em; }
.vnsr-item__text p:last-child { margin-bottom: 0; }
.vnsr-item__text a { color: var(--vnsr-star); }
.vnsr-item__actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.vnsr-act {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 0;
	margin: 0;
	padding: 5px 10px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.vnsr-act:hover { background: var(--card-2); color: var(--text); }
.vnsr-act em { font-style: normal; }
.vnsr-like.is-on { color: var(--vnsr-accent); }
.vnsr-like.is-on svg { animation: vnsr-pop .35s ease; }

.vnsr-children { margin: 0; padding: 0 0 0 4px; list-style: none; }
.vnsr-children:not(:empty) { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--line); }
.vnsr-item--child { padding: 12px 0; border-bottom: 0; }
.vnsr-item--child .vnsr-avatar { width: 34px; height: 34px; font-size: 14px; }
.vnsr-item--child .vnsr-item__text { font-size: 14px; }

.vnsr-replyform { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); animation: vnsr-fade .2s ease; }
.vnsr-replyform textarea { min-height: 80px !important; }
.vnsr-replyform__foot { display: flex; justify-content: flex-end; gap: 8px; }

.vnsr-more-wrap { margin-top: 16px; text-align: center; }
.vnsr-more-wrap[hidden] { display: none; }
.vnsr-more { width: auto; padding: 10px 28px; }

.vnsr-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 99999;
	padding: 10px 18px;
	border-radius: 10px;
	background: #222;
	color: #fff;
	font-size: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
	transform: translate(-50%, 16px);
	opacity: 0;
	transition: all .25s;
}
.vnsr-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Ẩn khung đánh giá cũ của WooCommerce nếu theme còn in ra */
.vnsr-reviews ~ #review_form_wrapper, .vnsr-reviews ~ .woocommerce-Reviews { display: none; }

@container vnsr (max-width: 760px) {
	.vnsr-summary { grid-template-columns: 150px 1fr; }
	.vnsr-summary__cta { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
	.vnsr-reviews { padding: 16px 12px; border-radius: 12px; }
}
@container vnsr (max-width: 560px) {
	.vnsr-reviews__title { font-size: 18px; }
	.vnsr-summary { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
	.vnsr-form { padding: 14px; }
	.vnsr-row { grid-template-columns: 1fr; }
	.vnsr-rate__stars label svg { width: 36px; height: 36px; }
	.vnsr-form__foot .vnsr-btn--primary { width: 100%; }
	.vnsr-toolbar { flex-direction: column; align-items: stretch; }
	.vnsr-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.vnsr-filter { flex: none; }
	.vnsr-item { gap: 10px; }
	.vnsr-avatar { width: 38px; height: 38px; font-size: 15px; }
	.vnsr-item__time { margin-left: 0; width: 100%; }
}

@keyframes vnsr-flash { 0% { background: rgba(255, 180, 0, .18); } 100% { background: transparent; } }
@keyframes vnsr-pop { 50% { transform: scale(1.35); } }
@keyframes vnsr-fade { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .vnsr-scope * { animation: none !important; transition: none !important; } }

/* ==========================================================================
   Thanh trượt sản phẩm (hiện N sản phẩm, trượt xem thêm)
   ========================================================================== */
.vnsr-section--slider { --vis: var(--vnsr-cols, 5); --gap: 12px; }
.vnsr-section--slider .vnsr-section__head { gap: 12px; }
.vnsr-section--slider .vnsr-section__head::after { order: 1; }
.vnsr-nav { order: 2; display: flex; gap: 6px; }
.vnsr-nav__btn {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--card);
	color: var(--text);
	cursor: pointer;
	transition: background .2s, border-color .2s, opacity .2s;
}
.vnsr-nav__btn:hover:not([disabled]) { background: var(--vnsr-accent); border-color: var(--vnsr-accent); color: #fff; }
.vnsr-nav__btn[disabled] { opacity: .35; cursor: default; }
.vnsr-section--slider.is-static .vnsr-nav { display: none; }

.vnsr-section--slider .vnsr-grid {
	display: grid;
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--vis) - 1) * var(--gap)) / var(--vis));
	gap: var(--gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 4px 0 6px;
	cursor: grab;
}
.vnsr-section--slider .vnsr-grid::-webkit-scrollbar { display: none; }
.vnsr-section--slider .vnsr-grid.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.vnsr-section--slider .vnsr-grid.is-drag a, .vnsr-section--slider .vnsr-grid.is-drag button { pointer-events: none; }
.vnsr-section--slider .vnsr-card { scroll-snap-align: start; }
.vnsr-section--slider .vnsr-card:hover { transform: translateY(-2px); }

/* Thẻ nhỏ gọn hơn trong thanh trượt */
.vnsr-section--slider .vnsr-card { border-radius: 10px; }
.vnsr-section--slider .vnsr-card__body { gap: 5px; padding: 9px 9px 10px; }
.vnsr-section--slider .vnsr-card__cat { font-size: 10px; height: 14px; line-height: 14px; }
.vnsr-section--slider .vnsr-card__title { font-size: 13px; }
.vnsr-section--slider .vnsr-card__meta { height: 16px; font-size: 11px; }
.vnsr-section--slider .vnsr-card__price { min-height: 50px; padding: 5px 6px; border-radius: 8px; }
.vnsr-section--slider .vnsr-card__price .price { font-size: 15px; }
.vnsr-section--slider .vnsr-card__price .vndp-primary { font-size: 16px; }
.vnsr-section--slider .vnsr-card__price .vndp-secondary { font-size: 11.5px; }
.vnsr-section--slider .vnsr-card__foot .vnsr-btn { min-height: 32px; padding: 6px; font-size: 12px; border-radius: 8px; }
.vnsr-section--slider .vnsr-flag { padding: 2px 7px; font-size: 10px; bottom: 6px; left: 6px; }
.vnsr-section--slider .vnsr-card__qv { top: 6px; right: 6px; }
.vnsr-section--slider .vnsr-card__qv span { display: none; }
.vnsr-section--slider .vnsr-card__qv.vndp-qv-trigger--img { padding: 6px; }

@media (max-width: 991px) { .vnsr-section--slider { --vis: min(var(--vnsr-cols, 5), 4); } }
@media (max-width: 767px) { .vnsr-section--slider { --vis: 2.3; --gap: 10px; } .vnsr-nav { display: none; } }
.vnsr-section--slider .vnsr-card__meta .vnsr-stars svg { width: 11px; height: 11px; }
.vnsr-section--slider .vnsr-card__rcount { font-size: 10px; }
.vnsr-section--slider .vnsr-card__sold { flex: none; font-size: 10.5px; }
