/* ==========================================================================
   FUGA — So sánh mẫu ("Compare Our Models")
   ========================================================================== */
.fg-mcompare { background: #fff; color: #1c1c1c; }
.fg-mcompare__inner { max-width: 1523px; margin: 0 auto; padding: 82px 10%; }
.fg-mcompare__title { margin-bottom: calc(20.25 * var(--u)); text-align: center; font-size: 40px; line-height: normal; font-weight: 500; letter-spacing: normal; }

.fg-mcompare__products { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; margin-bottom: 40px; }
.fg-mcompare__card { text-align: center; }
.fg-mcompare__card--pick { border-bottom: 1px solid #e8e8e8; }
.fg-mcompare__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin-bottom: calc(20.25 * var(--u)); overflow: hidden; background: #f6f7f9; }
.fg-mcompare__img { width: 100%; height: 100%; object-fit: contain; }
.fg-mcompare__name { margin-bottom: 12px; font-size: 22px; line-height: 20px; font-weight: 600; }

/* Ô chọn mẫu */
.fg-mcompare__select { position: relative; margin-bottom: 17px; }
.fg-mcompare__toggle {
	position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 32px; padding: 0 42px;
	color: #000; letter-spacing: normal;
}
.fg-mcompare__toggle .fg-mcompare__name { margin: 0; text-align: center; }
.fg-mcompare__toggle .fg-icon { position: absolute; top: 50%; right: 0; transform: translateY(-50%); pointer-events: none; transition: transform .2s; }
.fg-mcompare__toggle[aria-expanded="true"] .fg-icon { transform: translateY(-50%) rotate(180deg); }
.fg-mcompare__toggle:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
.fg-mcompare__list {
	position: absolute; z-index: 100; top: calc(100% + 10px); left: 50%; width: min(360px, 100%); max-height: 280px; overflow-y: auto;
	padding: 4px 0; background: #fff; border: 1px solid #d0d0d0; border-radius: 2px; box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
	transform: translateX(-50%); text-align: left;
}
.fg-mcompare__option { display: flex; align-items: center; gap: 10px; padding: 8px 14px; cursor: pointer; transition: background-color .15s; }
.fg-mcompare__option:hover, .fg-mcompare__option.is-active, .fg-mcompare__option:focus { background: #f0f0f0; outline: none; }
.fg-mcompare__option img { flex: none; width: 36px; height: 36px; object-fit: contain; border-radius: 2px; }
.fg-mcompare__option span { overflow: hidden; font-size: 13px; line-height: 1.3; font-weight: 500; color: #111; letter-spacing: normal; text-overflow: ellipsis; white-space: nowrap; }
.fg-mcompare__option[aria-selected="true"] span { font-weight: 700; }

/* Dòng thông số */
.fg-mcompare__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px 0; border-bottom: 1px solid #e8e8e8; }
.fg-mcompare__cell { padding: 0 10px; text-align: center; }
.fg-mcompare__sname { margin-bottom: 4px; font-size: 16px; line-height: 20px; font-weight: 400; letter-spacing: -.64px; text-transform: uppercase; color: #898989; }
.fg-mcompare__sval { font-size: 16px; line-height: 20px; font-weight: 600; color: #111; }

/* Link tới mẫu đang chọn */
.fg-mcompare__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; margin-top: 56px; }
.fg-mcompare__more {
	display: inline-block; width: max-content; margin: 0 auto; font-size: 16px; line-height: 20px; font-weight: 700; color: #000;
	text-decoration: underline; text-underline-position: from-font; text-decoration-skip-ink: none;
}
.fg-mcompare__foot .fg-mcompare__more { grid-column: 2; }
.fg-mcompare__more:hover { opacity: .7; }
.fg-mcompare__more--mobile { display: none; }

@media (max-width: 999px) {
	.fg-mcompare__inner { padding: 27px 14px; }
	.fg-mcompare__title { margin-bottom: 34px; text-align: left; }
	.fg-mcompare__products { gap: 8px; margin-bottom: 26px; }
	.fg-mcompare__card { text-align: left; }
	.fg-mcompare__media { margin-bottom: 13px; }
	.fg-mcompare__name { margin-bottom: 13px; font-size: 16px; letter-spacing: -.64px; }
	.fg-mcompare__select { margin-bottom: 17px; }
	.fg-mcompare__toggle { justify-content: flex-start; min-height: 28px; padding: 0 24px 0 0; }
	.fg-mcompare__toggle .fg-mcompare__name { text-align: left; }
	.fg-mcompare__toggle .fg-icon { width: 16px; height: 16px; }
	.fg-mcompare__list { left: auto; right: 0; width: min(300px, calc(100vw - 28px)); transform: none; }
	.fg-mcompare__more--mobile {
		display: inline-block; width: auto; max-width: 100%; margin: 4px 0 17px; font-size: 12px; line-height: 20px;
		text-decoration-thickness: 7%; text-underline-offset: 50%;
	}
	.fg-mcompare__row { gap: 5px; padding: 12px 0 10px; border-bottom-color: #e5e5e5; }
	.fg-mcompare__cell { min-width: 0; padding: 0; text-align: left; }
	.fg-mcompare__sname { margin: 0; font-size: 12px; line-height: 17px; font-weight: 600; letter-spacing: .56px; }
	.fg-mcompare__sval { font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
	.fg-mcompare__foot { display: none; }
}
@media (max-width: 699px) {
	.fg-mcompare__title { font-size: 24px; }
}
