/* Thẻ sản phẩm và công cụ so sánh dùng chung. */

.vtxvn-product-card,
.woocommerce ul.products li.product.vtxvn-product-card,
.woocommerce-page ul.products li.product.vtxvn-product-card {
	position: relative;
	display: flex;
	width: auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #dfe8f0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(7, 61, 118, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vtxvn-product-card:hover,
.woocommerce ul.products li.product.vtxvn-product-card:hover,
.woocommerce-page ul.products li.product.vtxvn-product-card:hover {
	transform: translateY(-2px);
	border-color: rgba(8, 120, 201, 0.42);
	box-shadow: 0 12px 28px rgba(7, 61, 118, 0.1);
}

.vtxvn-product-card .vtxvn-product-card__media,
.woocommerce ul.products li.product.vtxvn-product-card .vtxvn-product-card__media {
	position: relative;
	display: flex;
	width: 100%;
	margin: 0;
	padding: 12px;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-bottom: 1px solid #edf2f6;
	background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

.vtxvn-product-card .vtxvn-product-card__media img,
.woocommerce ul.products li.product.vtxvn-product-card .vtxvn-product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	border-radius: 0;
	background: transparent;
	transition: transform 0.25s ease;
}

.vtxvn-product-card:hover .vtxvn-product-card__media img {
	transform: scale(1.025);
}

.vtxvn-product-card .vtxvn-product-card__sale {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	padding: 5px 8px;
	border-radius: 0 0 8px;
	background: #e5232d;
	color: #fff;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.2;
}

.vtxvn-product-card .vtxvn-product-card__body {
	display: flex;
	min-width: 0;
	padding: 9px 10px 10px;
	flex: 1;
	flex-direction: column;
}

.vtxvn-product-card__sku {
	display: block;
	margin: 0 0 5px;
	overflow: hidden;
	color: #8291a1;
	font-size: 9.5px;
	font-weight: 400;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vtxvn-product-card .vtxvn-product-card__title,
.woocommerce ul.products li.product.vtxvn-product-card .vtxvn-product-card__title {
	display: -webkit-box;
	min-height: 2.8em;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--vtxvn-text, #10233c);
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.38;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vtxvn-product-card .vtxvn-product-card__title a {
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
}

.vtxvn-product-card .vtxvn-product-card__title a:hover {
	color: var(--vtxvn-primary, #0878c9);
}

.vtxvn-product-card .vtxvn-product-card__price,
.woocommerce ul.products li.product.vtxvn-product-card .vtxvn-product-card__price {
	display: flex;
	min-height: 23px;
	margin: 6px 0 0;
	padding: 0;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px 6px;
	color: #e5232d;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.3;
}

.vtxvn-product-card__contact-price {
	font-weight: 500;
}

.vtxvn-product-card .vtxvn-product-card__price del {
	order: 2;
	margin: 0;
	color: #9aa8b7;
	font-size: 10px;
	font-weight: 400;
}

.vtxvn-product-card .vtxvn-product-card__price ins {
	order: 1;
	text-decoration: none;
}

.vtxvn-product-card__meta {
	display: grid;
	min-height: 25px;
	margin-top: auto;
	padding-top: 8px;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 5px;
	border-top: 1px solid #edf2f6;
	color: #7e8da0;
	font-size: 9.5px;
	line-height: 1.25;
}
.vtxvn-product-card__metric {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 3px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.vtxvn-product-card__metric .dashicons {
	width: 14px;
	height: 14px;
	color: #08a9d3;
	font-size: 14px;
}

.vtxvn-product-card__reviews .dashicons {
	color: #f3a300;
}

.vtxvn-product-card .vtxvn-product-card__reviews {
	color: #7e8da0;
	font-weight: 400;
}

.vtxvn-product-card__reviews:hover {
	color: var(--vtxvn-primary, #0878c9);
}

.vtxvn-product-card__compare-control {
	position: absolute;
	z-index: 4;
	top: 8px;
	right: 8px;
	display: inline-flex;
	width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.vtxvn-product-card:hover .vtxvn-product-card__compare-control,
.vtxvn-product-card:focus-within .vtxvn-product-card__compare-control,
.vtxvn-product-card__compare-control.is-selected {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.vtxvn-product-card .vtxvn-product-card__compare,
.woocommerce ul.products li.product.vtxvn-product-card .vtxvn-product-card__compare {
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	accent-color: #0878c9;
	cursor: pointer;
}

.vtxvn-product-card__compare-control:has(.vtxvn-product-card__compare:focus-visible) {
	outline: 2px solid #0878c9;
	outline-offset: 2px;
}

.vtxvn-product-card__compare-control.is-selected {
	background: transparent;
	box-shadow: none;
}

.vtxvn-product-card__compare:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.vtxvn-product-card__compare-tooltip {
	position: absolute;
	z-index: 2;
	top: 50%;
	right: calc(100% + 7px);
	width: max-content;
	max-width: 120px;
	padding: 5px 8px;
	border: 1px solid #315675;
	border-radius: 0;
	opacity: 0;
	visibility: hidden;
	background: #173a58;
	color: #fff;
	font-size: 10px;
	font-weight: 650;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	transform: translate(4px, -50%);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.vtxvn-product-card__compare-control:hover .vtxvn-product-card__compare-tooltip,
.vtxvn-product-card__compare-control:focus-within .vtxvn-product-card__compare-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
}

/* Khay so sánh. */
.vtxvn-compare-tray[hidden] {
	display: none;
}

.vtxvn-compare-tray {
	position: fixed;
	z-index: 10020;
	inset: 0;
	pointer-events: none;
}

.vtxvn-compare-tray__backdrop {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	opacity: 0;
	background: rgba(5, 28, 51, 0.35);
	box-shadow: none;
	color: transparent;
	cursor: default;
	pointer-events: auto;
	appearance: none;
	-webkit-appearance: none;
	transform: none;
	transition: opacity 0.2s ease;
}

.vtxvn-compare-tray__backdrop:hover,
.vtxvn-compare-tray__backdrop:focus,
.vtxvn-compare-tray__backdrop:active {
	border-radius: 0;
	background: rgba(5, 28, 51, 0.35);
	box-shadow: none;
	color: transparent;
	outline: 0;
	transform: none;
}

.vtxvn-compare-tray__panel {
	position: absolute;
	right: max(18px, calc((100vw - 1220px) / 2));
	bottom: 18px;
	left: max(18px, calc((100vw - 1220px) / 2));
	display: grid;
	max-height: min(620px, calc(100vh - 36px));
	padding: 18px;
	grid-template-columns: minmax(250px, 0.75fr) minmax(0, 2.2fr);
	grid-template-rows: auto auto auto;
	gap: 14px 20px;
	overflow: auto;
	border: 1px solid #c9ddec;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(4, 38, 72, 0.24);
	pointer-events: auto;
	transform: translateY(calc(100% + 30px));
	transition: transform 0.22s ease;
}

.vtxvn-compare-tray.is-open .vtxvn-compare-tray__backdrop {
	opacity: 1;
}

.vtxvn-compare-tray.is-open .vtxvn-compare-tray__panel {
	transform: translateY(0);
}

.vtxvn-compare-tray__header {
	display: flex;
	min-width: 0;
	grid-row: 1 / span 2;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
}

.vtxvn-compare-tray__eyebrow,
.vtxvn-compare-page__eyebrow {
	display: block;
	margin-bottom: 5px;
	color: #0878c9;
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vtxvn-compare-tray__title {
	margin: 0;
	color: #10233c;
	font-size: 21px;
	line-height: 1.2;
}

.vtxvn-compare-tray__title span {
	color: #0878c9;
	font-size: 13px;
}

.vtxvn-compare-tray__header [data-compare-group-label] {
	margin: 7px 0 0;
	color: #667b91;
	font-size: 12px;
}

.vtxvn-compare-tray__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	width: 34px;
	height: 34px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #edf5fa;
	color: #375a75;
	cursor: pointer;
}

.vtxvn-compare-tray__items {
	display: grid;
	min-width: 0;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 9px;
}

.vtxvn-compare-tray__empty {
	display: flex;
	min-height: 88px;
	margin: 0;
	padding: 18px;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: center;
	border: 1px dashed #bdd2e1;
	border-radius: 12px;
	background: #f8fbfd;
	color: #6d8195;
	font-size: 12px;
	text-align: center;
}

.vtxvn-compare-tray__item {
	position: relative;
	display: grid;
	min-width: 0;
	padding: 7px 28px 7px 7px;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 8px;
	border: 1px solid #dfe9f0;
	border-radius: 11px;
	background: #fff;
}

.vtxvn-compare-tray__item-image {
	display: flex;
	width: 54px;
	height: 54px;
	align-items: center;
	justify-content: center;
}

.vtxvn-compare-tray__item-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.vtxvn-compare-tray__item-body {
	min-width: 0;
}

.vtxvn-compare-tray__item-body > span {
	display: block;
	color: #8593a2;
	font-size: 9px;
}

.vtxvn-compare-tray__item-body > a {
	display: -webkit-box;
	margin-top: 2px;
	overflow: hidden;
	color: #17314c;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vtxvn-compare-tray__item-price {
	margin-top: 4px;
	color: #e5232d;
	font-size: 10px;
	font-weight: 700;
}

.vtxvn-compare-tray__item-price del {
	display: none;
}

.vtxvn-compare-tray__item-price ins {
	text-decoration: none;
}

.vtxvn-compare-tray__item > button {
	position: absolute;
	top: 4px;
	right: 4px;
	display: inline-flex;
	width: 25px;
	height: 25px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #8292a3;
	cursor: pointer;
}

.vtxvn-compare-tray__suggestions {
	min-width: 0;
	padding-top: 12px;
	grid-column: 2;
	border-top: 1px solid #e8eef3;
}

.vtxvn-compare-tray__suggestions-head {
	display: flex;
	margin-bottom: 8px;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.vtxvn-compare-tray__suggestions-head strong {
	color: #17314c;
	font-size: 12px;
}

.vtxvn-compare-tray__suggestions-head span {
	color: #7a8b9d;
	font-size: 10px;
}

.vtxvn-compare-tray__search {
	display: flex;
	margin-bottom: 8px;
	align-items: center;
	gap: 10px;
}

.vtxvn-compare-tray__search label {
	position: relative;
	display: block;
	flex: 1;
	min-width: 0;
}

.vtxvn-compare-tray__search label > .dashicons {
	position: absolute;
	top: 50%;
	left: 10px;
	width: 17px;
	height: 17px;
	color: #6d8195;
	font-size: 17px;
	pointer-events: none;
	transform: translateY(-50%);
}

.vtxvn-compare-tray__search input[type="search"] {
	width: 100%;
	min-height: 36px;
	padding: 7px 12px 7px 34px;
	border: 1px solid #cfdee9;
	border-radius: 9px;
	background: #f8fbfd;
	color: #17314c;
	font-size: 11px;
	outline: 0;
}

.vtxvn-compare-tray__search input[type="search"]:focus {
	border-color: #0878c9;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(8, 120, 201, 0.12);
}

.vtxvn-compare-tray__search-status {
	flex: 0 0 auto;
	color: #6d8195;
	font-size: 9px;
}

.vtxvn-compare-tray__suggestion-list {
	display: flex;
	gap: 7px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.vtxvn-compare-tray__suggestion-empty {
	display: flex;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 10px 12px;
	align-items: center;
	border: 1px dashed #cfdee9;
	border-radius: 9px;
	background: #f8fbfd;
	color: #6d8195;
	font-size: 10px;
}

.vtxvn-compare-tray__suggestions.is-loading .vtxvn-compare-tray__suggestion-list {
	opacity: 0.55;
}

.vtxvn-compare-suggestion {
	display: grid;
	min-width: 170px;
	padding: 6px;
	grid-template-columns: 38px minmax(0, 1fr) 20px;
	align-items: center;
	gap: 7px;
	border: 1px solid #dce7ef;
	border-radius: 10px;
	background: #fff;
	color: #17314c;
	text-align: left;
	cursor: pointer;
}

.vtxvn-compare-suggestion:hover,
.vtxvn-compare-suggestion:focus-visible {
	border-color: #85bfe6;
	background: #f6fbfe;
	color: #17314c;
}

.vtxvn-compare-suggestion:focus-visible {
	outline: 2px solid #0878c9;
	outline-offset: 2px;
}

.vtxvn-compare-suggestion img {
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.vtxvn-compare-suggestion > span {
	min-width: 0;
}

.vtxvn-compare-suggestion strong {
	display: -webkit-box;
	overflow: hidden;
	color: inherit;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vtxvn-compare-suggestion small {
	display: block;
	margin-top: 3px;
	overflow: hidden;
	color: #e5232d;
	font-size: 9px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vtxvn-compare-suggestion small del {
	display: none;
}

.vtxvn-compare-suggestion small ins {
	text-decoration: none;
}

.vtxvn-compare-suggestion > .dashicons {
	color: #0878c9;
}

.vtxvn-compare-tray__footer {
	display: flex;
	grid-column: 1;
	align-items: center;
	gap: 8px;
}

.vtxvn-compare-tray__clear,
.vtxvn-compare-tray__submit {
	display: inline-flex;
	min-height: 38px;
	padding: 8px 12px;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border-radius: 9px;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
}

.vtxvn-compare-tray__clear {
	border: 1px solid #d8e2ea;
	background: #fff;
	color: #60778c;
	cursor: pointer;
}

.vtxvn-compare-tray__submit {
	flex: 1;
	border: 1px solid #0878c9;
	background: #0878c9;
	color: #fff;
}

.vtxvn-compare-tray__submit.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.vtxvn-compare-toast {
	position: absolute;
	right: 50%;
	bottom: 28px;
	max-width: min(420px, calc(100vw - 32px));
	padding: 11px 15px;
	border-radius: 10px;
	opacity: 0;
	background: #102f4c;
	box-shadow: 0 12px 30px rgba(4, 38, 72, 0.2);
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	pointer-events: none;
	transform: translate(50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.vtxvn-compare-toast.is-visible {
	opacity: 1;
	transform: translate(50%, 0);
}

/* Trang so sánh. */
.vtxvn-compare-page {
	min-height: 70vh;
	padding: clamp(30px, 4vw, 58px) 0 clamp(58px, 7vw, 92px);
	background: #f4f8fb;
}

.vtxvn-compare-page__hero {
	display: flex;
	margin-bottom: 22px;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.vtxvn-compare-page__hero h1 {
	margin: 0;
	color: #10233c;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.vtxvn-compare-page__hero p {
	margin: 9px 0 0;
	color: #687d91;
	font-size: 14px;
}

.vtxvn-compare-page__back {
	display: inline-flex;
	min-height: 42px;
	padding: 9px 13px;
	align-items: center;
	gap: 5px;
	border: 1px solid #c7d9e6;
	border-radius: 10px;
	background: #fff;
	color: #075d9c;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.vtxvn-compare-empty {
	display: flex;
	min-height: 360px;
	padding: 38px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	border: 1px dashed #b7cedf;
	border-radius: 18px;
	background: #fff;
	text-align: center;
}

.vtxvn-compare-empty > .dashicons {
	width: 58px;
	height: 58px;
	color: #0797bd;
	font-size: 58px;
}

.vtxvn-compare-empty h2 {
	margin: 18px 0 7px;
	color: #15314d;
	font-size: 24px;
}

.vtxvn-compare-empty p {
	max-width: 610px;
	margin: 0;
	color: #6b7f91;
}

.vtxvn-compare-empty a {
	margin-top: 20px;
	padding: 11px 17px;
	border-radius: 10px;
	background: #0878c9;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.vtxvn-compare-selection,
.vtxvn-compare-table-section,
.vtxvn-compare-recommendations,
.vtxvn-compare-notice {
	margin-top: 18px;
	border: 1px solid #dae6ee;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(7, 61, 118, 0.045);
}

.vtxvn-compare-selection {
	padding: 16px;
}

.vtxvn-compare-selection__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.vtxvn-compare-selection__item,
.vtxvn-compare-selection__add {
	position: relative;
	display: grid;
	min-height: 132px;
	padding: 10px;
	grid-template-columns: 88px minmax(0, 1fr);
	align-items: center;
	gap: 11px;
	border: 1px solid #dfE8ef;
	border-radius: 13px;
	background: #fff;
}

.vtxvn-compare-selection__image {
	display: flex;
	width: 88px;
	height: 88px;
	align-items: center;
	justify-content: center;
}

.vtxvn-compare-selection__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.vtxvn-compare-selection__item > div {
	min-width: 0;
}

.vtxvn-compare-selection__item > div > span {
	color: #8190a0;
	font-size: 9px;
}

.vtxvn-compare-selection__item h2 {
	display: -webkit-box;
	margin: 4px 0 6px;
	overflow: hidden;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.vtxvn-compare-selection__item h2 a {
	color: #15314d;
	text-decoration: none;
}

.vtxvn-compare-selection__price {
	color: #e5232d;
	font-size: 12px;
	font-weight: 750;
}

.vtxvn-compare-selection__price del {
	display: none;
}

.vtxvn-compare-selection__price ins {
	text-decoration: none;
}

.vtxvn-compare-selection__remove {
	position: absolute;
	top: 5px;
	right: 5px;
	display: inline-flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #8493a2;
	text-decoration: none;
}

.vtxvn-compare-selection__add {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	border-style: dashed;
	color: #537086;
	cursor: pointer;
}

.vtxvn-compare-selection__add > .dashicons {
	width: 32px;
	height: 32px;
	color: #0878c9;
	font-size: 32px;
}

.vtxvn-compare-selection__add strong {
	color: #17314c;
	font-size: 12px;
}

.vtxvn-compare-selection__add small {
	font-size: 10px;
}

.vtxvn-compare-table-section {
	padding: 20px;
}

.vtxvn-compare-table-section__head {
	display: flex;
	margin-bottom: 14px;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 20px;
}

.vtxvn-compare-table-section__head span,
.vtxvn-compare-recommendations header span {
	color: #0878c9;
	font-size: 9px;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vtxvn-compare-table-section__head h2,
.vtxvn-compare-recommendations h2 {
	margin: 3px 0 0;
	color: #17314c;
	font-size: 21px;
}

.vtxvn-compare-table-section__head p {
	display: inline-flex;
	margin: 0;
	align-items: center;
	gap: 6px;
	color: #6b7e91;
	font-size: 10px;
}

.vtxvn-compare-difference-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #dff3fd;
}

.vtxvn-compare-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid #e0e8ef;
	border-radius: 12px;
}

.vtxvn-compare-table {
	width: 100%;
	min-width: 760px;
	border: 0;
	border-collapse: collapse;
	background: #fff;
}

.vtxvn-compare-table caption {
	caption-side: top;
	box-sizing: border-box;
	padding: 10px 14px;
	border-bottom: 1px solid #e5edf2;
	background: #f7fafc;
	color: #173a58;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
}

.vtxvn-compare-table th,
.vtxvn-compare-table td {
	padding: 13px 14px;
	border: 0;
	border-right: 1px solid #e5edf2;
	border-bottom: 1px solid #e5edf2;
	color: #425a70;
	font-size: 12px;
	line-height: 1.4;
	text-align: left;
	vertical-align: top;
}

.vtxvn-compare-table thead th {
	background: #f0f6fa;
	color: #17314c;
	font-weight: 700;
}

.vtxvn-compare-table th:first-child {
	position: sticky;
	z-index: 2;
	left: 0;
	width: 190px;
	background: #f7fafc;
}

.vtxvn-compare-table tbody th {
	color: #17314c;
	font-weight: 650;
}

.vtxvn-compare-table tbody th span {
	display: block;
	margin-top: 3px;
	color: #0878c9;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.vtxvn-compare-table tr.is-different th,
.vtxvn-compare-table tr.is-different td {
	background: #f0f9fe;
}

.vtxvn-compare-table tr.is-different th:first-child {
	background: #e2f3fc;
}

.vtxvn-compare-table .amount {
	color: #e5232d;
	font-weight: 750;
}

.vtxvn-compare-table del {
	display: block;
	color: #96a4b1;
	font-size: 10px;
}

.vtxvn-compare-table ins {
	text-decoration: none;
}

.vtxvn-compare-notice {
	display: flex;
	padding: 17px 20px;
	align-items: center;
	gap: 12px;
}

.vtxvn-compare-notice > .dashicons {
	width: 32px;
	height: 32px;
	color: #f3a300;
	font-size: 32px;
}

.vtxvn-compare-notice strong {
	color: #17314c;
}

.vtxvn-compare-notice p {
	margin: 3px 0 0;
	color: #6c8093;
	font-size: 12px;
}

.vtxvn-compare-recommendations {
	padding: 20px;
}

.vtxvn-compare-recommendations header {
	display: flex;
	margin-bottom: 15px;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
}

.vtxvn-compare-recommendations header p {
	max-width: 390px;
	margin: 0;
	color: #6b7e91;
	font-size: 11px;
	text-align: right;
}

.vtxvn-compare-recommendations__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 980px) {
	.vtxvn-compare-tray__panel {
		grid-template-columns: 1fr;
	}

	.vtxvn-compare-tray__header,
	.vtxvn-compare-tray__footer,
	.vtxvn-compare-tray__suggestions {
		grid-column: 1;
		grid-row: auto;
	}

	.vtxvn-compare-tray__header {
		display: block;
	}

	.vtxvn-compare-selection__grid,
	.vtxvn-compare-recommendations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.vtxvn-product-card,
	.woocommerce ul.products li.product.vtxvn-product-card,
	.woocommerce-page ul.products li.product.vtxvn-product-card {
		border-radius: 12px;
	}

	.vtxvn-product-card .vtxvn-product-card__media {
		padding: 8px;
		aspect-ratio: 1 / 1;
	}

	.vtxvn-product-card .vtxvn-product-card__body {
		padding: 0 8px 8px;
	}

	.vtxvn-product-card .vtxvn-product-card__title {
		min-height: 2.6em;
		font-size: 11.5px;
		line-height: 1.3;
		-webkit-line-clamp: 2;
	}

	.vtxvn-product-card__sku {
		margin-bottom: 3px;
		font-size: 8.5px;
	}

	.vtxvn-product-card .vtxvn-product-card__price {
		min-height: 21px;
		margin-top: 4px;
		font-size: 13px;
	}

	.vtxvn-product-card .vtxvn-product-card__price del {
		font-size: 8.5px;
	}

	.vtxvn-product-card__meta {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 3px;
		font-size: 7.7px;
	}
	.vtxvn-product-card__compare-control {
		top: 6px;
		right: 6px;
		width: 21px;
		height: 21px;
	}

	.vtxvn-compare-tray__panel {
		right: 0;
		bottom: 0;
		left: 0;
		max-height: min(82vh, 680px);
		padding: 15px 14px calc(14px + env(safe-area-inset-bottom));
		grid-template-columns: 1fr;
		gap: 12px;
		border-width: 1px 0 0;
		border-radius: 18px 18px 0 0;
		transform: translateY(100%);
	}

	.vtxvn-compare-tray__title {
		font-size: 18px;
	}

	.vtxvn-compare-tray__items {
		display: flex;
		margin-right: -14px;
		margin-left: -14px;
		padding: 0 14px 5px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
	}

	.vtxvn-compare-tray__item {
		min-width: 230px;
		scroll-snap-align: start;
	}

	.vtxvn-compare-tray__suggestions-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.vtxvn-compare-tray__search {
		display: block;
	}

	.vtxvn-compare-tray__search-status {
		display: block;
		margin-top: 4px;
	}

	.vtxvn-compare-tray__suggestion-list {
		margin-right: -14px;
		padding-right: 14px;
	}

	.vtxvn-compare-toast {
		bottom: calc(20px + env(safe-area-inset-bottom));
	}

	.vtxvn-compare-page {
		padding: 24px 0 64px;
	}

	.vtxvn-compare-page__hero {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.vtxvn-compare-page__hero h1 {
		font-size: 32px;
	}

	.vtxvn-compare-selection,
	.vtxvn-compare-table-section,
	.vtxvn-compare-recommendations {
		margin-right: -14px;
		margin-left: -14px;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.vtxvn-compare-selection__grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.vtxvn-compare-selection__item,
	.vtxvn-compare-selection__add {
		min-width: 260px;
		scroll-snap-align: start;
	}

	.vtxvn-compare-table-section__head,
	.vtxvn-compare-recommendations header {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.vtxvn-compare-table-section__head p,
	.vtxvn-compare-recommendations header p {
		text-align: left;
	}

	.vtxvn-compare-recommendations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vtxvn-product-card,
	.vtxvn-product-card__media img,
	.vtxvn-compare-tray__backdrop,
	.vtxvn-compare-tray__panel,
	.vtxvn-compare-toast {
		transition: none;
	}
}

/* Optical lab card refinements. */
.vtxvn-product-card {
	border-color: var(--vtxvn-lab-line);
	border-radius: 0;
	box-shadow: none;
	transition: border-color var(--vtxvn-lab-motion), box-shadow var(--vtxvn-lab-motion), transform var(--vtxvn-lab-motion);
}

.vtxvn-product-card:hover,
.vtxvn-product-card:focus-within {
	border-color: #9fc9df;
	box-shadow: var(--vtxvn-lab-shadow);
}

.vtxvn-product-card__title > a {
	color: var(--vtxvn-lab-navy);
	font-weight: 400;
}

.vtxvn-product-card__quick-specs {
	position: absolute;
	z-index: 8;
	right: 8px;
	bottom: 38px;
	left: 8px;
	margin: 0;
	padding: 9px 10px;
	border: 1px solid #b9cfdd;
	opacity: 0;
	visibility: hidden;
	background: #fff;
	box-shadow: 0 12px 28px rgba(0, 51, 102, 0.18);
	pointer-events: none;
	transform: translateY(6px);
	transition:
		opacity 0.18s ease 0s,
		transform 0.18s ease 0s,
		visibility 0s linear 0.18s;
}

.vtxvn-product-card:not(.is-quick-specs-dismissed):hover .vtxvn-product-card__quick-specs {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0.4s, 0.4s, 0.4s;
}

.vtxvn-product-card:not(.is-quick-specs-dismissed):focus-within .vtxvn-product-card__quick-specs {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0s;
}

.vtxvn-product-card__quick-specs-title {
	display: block;
	margin-bottom: 3px;
	padding-right: 26px;
	color: var(--vtxvn-lab-navy);
	font-size: 12px;
	font-weight: 650;
}

.vtxvn-product-card__quick-specs .vtxvn-product-card__quick-specs-close {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	margin: 0;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 1px solid #c9d9e4;
	border-radius: 0;
	background: #f4f8fb;
	box-shadow: none;
	color: #36536c;
	cursor: pointer;
}

.vtxvn-product-card__quick-specs-close:hover,
.vtxvn-product-card__quick-specs-close:focus-visible {
	border-color: var(--vtxvn-primary);
	background: #e8f5fc;
	color: var(--vtxvn-primary-dark);
	outline: 2px solid rgba(8, 120, 201, .2);
	outline-offset: 1px;
}

.vtxvn-product-card__quick-specs-close .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
	line-height: 14px;
}

.vtxvn-product-card__quick-specs .vtxvn-quick-specs {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-bottom: 0;
}

.vtxvn-product-card__quick-specs .vtxvn-quick-spec {
	min-width: 0;
	padding: 5px 6px;
}

.vtxvn-product-card__quick-specs .vtxvn-quick-spec + .vtxvn-quick-spec {
	border-top: 0;
	border-left: 1px solid var(--vtxvn-lab-line);
}

.vtxvn-product-card__quick-specs .vtxvn-quick-spec:nth-child(2n + 1) {
	border-left: 0;
}

.vtxvn-product-card__quick-specs .vtxvn-quick-spec:nth-child(n + 3) {
	border-top: 1px solid var(--vtxvn-lab-line);
}

.vtxvn-product-card__quick-specs .vtxvn-quick-spec dt {
	display: -webkit-box;
	overflow: hidden;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vtxvn-product-card__quick-specs .vtxvn-quick-spec dd {
	display: -webkit-box;
	max-height: calc(1.35em * 2);
	margin-top: 2px;
	overflow: hidden;
	line-height: 1.35;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

@media (max-width: 700px) {
	.vtxvn-product-card__quick-specs {
		display: none;
	}
}

@media (hover: none), (pointer: coarse) {
	.vtxvn-product-card__compare-control {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.vtxvn-product-card__compare-tooltip {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vtxvn-product-card {
		transition: none;
	}
}
