/* Ad styles for Frigidaire 15k unit */
body {
	font-size: 1.25rem;
	background: #05f;
	font-family: sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-wrap: pretty;
	text-wrap: balance; /* Safari fallback */
	overflow-x: hidden;
}
img {
	max-width: 100%;
	height: auto;
}
a {
	text-decoration: none;
}

* {
	box-sizing: border-box;
}
/* Ensure <article> always expands to fit children, prevent collapse in rare browsers */
article {
	display: block;
}

article {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
	min-width: 1px;
	height: auto;
	padding: 1rem;
	margin: 0;
	max-height: 600px;
	overflow-y: auto;
	background: white;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1100px) {
	.lg {
		display: none;
	}
}
@media (min-width: 1100px) {
	.sm {
		display: none;
	}
}

column,
.column {
	display: flex;
	flex-direction: column;
}
row,
.row {
	display: flex;
	flex-wrap: wrap;
}
grid,
.grid {
	display: grid;
}

row[hidden] {
	display: none;
}

row.grid-left {
	display: grid;
	grid-template-columns: 1fr auto;
}
row.grid-right {
	display: grid;
	grid-template-columns: auto 1fr;
}

.nowrap {
	flex-wrap: nowrap;
}

@media (min-width: 1100px) {
	row,
	.row {
		flex-wrap: nowrap;
	}
}

.flex-wrap {
	flex-wrap: wrap;
}

.justify-content-flex-end {
	justify-content: flex-end;
}
.justify-content-space-between {
	justify-content: space-between;
}
.justify-content-center {
	justify-content: center;
}

.justify-items-center {
	justify-items: center;
}

.align-items-flex-end {
	align-items: flex-end;
}
.align-items-center {
	align-items: center;
}
.text-comic-sans {
	font-family: "Comic Sans MS";
}
.text-justify {
	text-align: justify;
}
.text-center {
	text-align: center;
}
.text-right {
	text-align: right;
}

.text-micro {
	font-size: 0.6rem;
	line-height: 0.9;
}
.text-10px {
	font-size: 10px;
	line-height: 1;
}
.text-12px {
	font-size: 12px;
}
.text-15px {
	font-size: 15px;
	line-height: 1;
}
.text-14px {
	font-size: 14px;
	line-height: 1;
}
.text-16px {
	font-size: 16px;
	line-height: 1;
}
.text-18px {
	font-size: 18px;
	line-height: 1.25;
}
.text-20px {
	font-size: 20px;
	line-height: 1;
}
.text-22px {
	font-size: 22px;
	line-height: 1;
}
.text-24px {
	font-size: 24px;
	line-height: 1;
}
.text-26px {
	font-size: 26px;
	line-height: 1;
}
.text-28px {
	font-size: 28px;
	line-height: 1;
}
.text-30px {
	font-size: 30px;
	line-height: 1;
}
.text-32px {
	font-size: 32px;
	line-height: 1;
}
.text-36px {
	font-size: 36px;
	line-height: 1;
}
.text-40px {
	font-size: 40px;
	line-height: 1;
}
.text-44px {
	font-size: 44px;
	line-height: 1;
}
.text-48px {
	font-size: 30px;
	line-height: 1;
}
@media (min-width: 1100px) {
	.text-48px {
		font-size: 48px;
		line-height: 1;
	}
}
.text-52px {
	font-size: 52px;
	line-height: 1;
}
.text-56px {
	font-size: 56px;
	line-height: 1;
}
.text-60px {
	font-size: 60px;
	line-height: 1;
}
.text-64px {
	font-size: 64px;
	line-height: 1;
}
.text-72px {
	font-size: 72px;
	line-height: 1;
}

.upper {
	text-transform: uppercase;
}
.bold {
	font-weight: bold;
}
.italic {
	font-style: italic;
}

.blue {
	color: #08e;
}
.red {
	color: red;
}
.green {
	color: green;
}
.gray {
	color: gray;
}
.white {
	color: white;
}
.carmine {
	color: #912;
}
.brown {
	color: brown;
}
.yellow {
	color: yellow;
}

.line-height-1o5 {
	line-height: 1.5;
}

.margin-auto {
	margin: auto;
}
.marginx-auto {
	margin-left: auto;
	margin-right: auto;
}
.push {
	margin-right: auto;
}

.pad-1rem {
	padding: 1rem;
}
.pad-8px {
	padding: 8px;
}

.gap-o5rem {
	gap: 0.5rem;
}
.gap-1rem {
	gap: 1rem;
}
.gap-8px {
	gap: 8px;
}
.gap-4px {
	gap: 4px;
}
.gap-2px {
	gap: 2px;
}
.nogap {
	gap: 0;
}

.pointer {
	cursor: pointer;
}

.zindex-1 {
	z-index: 1;
}

.blue-btn {
	background: #05f;
	color: #fff;
	border-top: 2px solid #69f;
	border-right: 2px solid #322dac;
	border-bottom: 2px solid #322dac;
	border-left: 2px solid #69f;
	box-shadow: none;
}

.grow {
	flex-grow: 1;
}

h1.hd {
	background: #f8f8f8;
	padding: 0.5rem;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: #000;
	text-shadow: 1px 1px 2px #bbb;
	/*border-bottom: 1px solid #888;*/
	margin: 0;
	text-align: center;
}
@media (min-width: 1100px) {
	h1.hd {
		padding: 1rem;
		font-size: 48px;
		font-weight: 800;
		text-shadow: 2px 2px 4px #bbb;
		margin: -1rem 0;
	}
}

/* Ad styles for Frigidaire 15k unit */
.ad__center {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 8px;
	border: 2px solid #bbb;
	box-shadow: 2px 2px 8px #eee;
	background: #fff;
}

.frigidaire__15k__tagline {
	align-items: flex-start;
	padding: 0 16px;
}

.frigidaire__15k {
	display: flex;
	flex-direction: row;
	padding: 16px;
	align-items: flex-start;
	width: 100%;
}

.frigidaire__15k__logo {
	width: 200px;
	margin: 10px 0;
}

.frigidaire__15k__model {
	max-width: 300px;
	height: auto;
}

.ad__lg {
	font-size: 24px;
	font-weight: bold;
}

.ad__md {
	font-size: 18px;
	font-weight: bold;
}

.ad__giga {
	font-size: 48px;
	font-weight: bold;
}

.ad__rg {
	font-size: 14px;
}

.blk {
	color: #000 !important;
}

.pad {
	padding: 8px;
}

.col {
	display: flex;
	flex-direction: column;
}

.left {
	text-align: left;
}

.red-ribbon {
	background: linear-gradient(
		180deg,
		rgb(2, 0, 36) 0%,
		rgb(153, 17, 34) 8%,
		rgb(187, 0, 17) 35%,
		rgb(153, 17, 34) 58%,
		rgb(0, 0, 0) 65%,
		rgb(153, 17, 34) 70%,
		rgb(187, 0, 17) 83%,
		rgb(153, 17, 34) 95%,
		rgb(0, 0, 0) 100%
	);
	height: 23px;
	display: flex;
}

.energystar,
.r32 {
	width: 5rem;
}
@media (min-width: 1100px) {
	.energystar {
		width: 6rem;
	}
}

.text-overlay {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}
.text-overlay img {
	grid-column: 1;
	grid-row: 1;
}
.text-overlay::after {
	content: attr(data-copy);
	grid-column: 1;
	grid-row: 1;
	margin: auto;
	font-size: 1rem;
	line-height: 1;
	font-weight: bold;
}
article.unit-ad .ad-head img.model-on-unit {
	max-width: 20rem;
	max-height: 20rem;
	object-fit: contain;
	margin-bottom: -4rem;
	z-index: 2;
}
.unit-ad .ad-head {
	h2 {
		font-size: 2.5em; /* Significantly larger font size */
		white-space: normal;
		word-break: break-word;
		margin: 0.25rem auto;
	}

	h3 {
		margin: 0;
		color: #08e;
		font-size: 2rem;
		text-align: center;
	}
	.copy {
		display: flex;
		flex-direction: column;
		gap: 0.25rem;
		align-items: center;
		justify-content: center;
		padding: 0.5rem;
		margin: 1rem auto;
		flex: 1;
		width: 100%;
		max-width: 25rem;

		h2 {
			font-size: 2rem;
		}
		.logo {
			width: auto;
			max-width: 100%;
			max-height: 200px;
		}

		.heatpump {
			font-size: 2.25rem;
			color: red;
			font-weight: bold;
			white-space: nowrap;
		}

		.wifi,
		.r410a,
		.r32,
		.r22 {
			width: 3rem;
			height: auto;
		}

		.warranty {
			font-size: 0.875rem;
			font-weight: bold;
			color: red;
			font-style: italic;
			text-align: center;
		}

		.seer {
			display: inline-flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			color: green;
			font-weight: bold;
			padding: 2px 6px;
			border: 1px solid #ccc;
			border-radius: 2px;
			margin: 0 2px;
			font-size: 0.875rem;

			&:before {
				content: "SEER";
				font-size: 9px;
				line-height: 1;
			}
		}

		.seer-wrap {
			display: inline-flex;
			color: green;
			border: 1px solid #ccc;
			border-radius: 2px;
			align-items: center;
			padding: 2px 4px;
			font-weight: bold;
			margin: 0 2px;
			font-size: 0.875rem;

			.seer {
				border: 0;
				margin: 0;
				padding: 0 2px;
			}
		}
	}
}
/* Standardize all images in unit ads */
.unit-ad img {
	max-width: 100%;
	height: auto;
}

/* Human model images - constrain size */
.unit-ad img[src*="model"],
.unit-ad img[src*="woman"],
.unit-ad img[src*="man"],
.unit-ad img[src*="person"] {
	/*max-height: 200px;*/
	/*max-width: 200px;*/
	object-fit: contain;
}

/* Product images - make prominent */
.unit-ad img.unit,
.unit-ad img[src*="unit"],
.unit-ad img[src*="ac"],
.unit-ad img[src*="conditioner"] {
	width: 100%;
	object-fit: contain;
}

.blue-model-overlay {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	margin: 0 0 0 1.5rem;
	position: relative;
	min-height: 200px;
	align-items: center;
	justify-items: center;
	img.unit {
		width: 100%;
		max-width: 150px;
		height: 150px;
		object-fit: contain;
		grid-column: 1;
		grid-row: 1;
		margin: auto;
		z-index: 1;
	}
	&::after {
		content: url("/assets/genie/img/blue-model-sm.png");
		grid-column: 1;
		grid-row: 1;
		display: flex;
		margin: auto;
		max-width: 150px;
		max-height: 150px;
		z-index: 2;
	}
	&.nopad-x {
		padding-right: 0;
	}
}
@media (min-width: 1100px) {
	.blue-model-overlay {
		padding-right: 6rem;
		margin: 0;
		min-height: 250px;
		img.unit {
			width: 100%;
			max-width: 250px;
			height: 200px;
			object-fit: contain;
			margin: auto;
		}
		&::after {
			content: url("/assets/genie/img/blue-model.png");
			margin: auto;
			max-width: 90%;
			z-index: 2;
		}
	}
}

.red-model-overlay {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	padding: 2rem;
	position: relative;
	min-height: 200px;
	align-items: center;
	justify-items: center;
	img {
		width: 7rem;
		grid-column: 1;
		grid-row: 1;
		margin: auto;
		z-index: 1;
	}
	&::after {
		content: url("/assets/genie/img/red-model-sm.png");
		grid-column: 1;
		grid-row: 1;
		display: flex;
		margin: auto;
		max-width: 90%;
		z-index: 2;
	}
}
@media (min-width: 1100px) {
	.red-model-overlay {
		margin: 2rem;
		padding: 2rem;
		min-height: 250px;
		img {
			width: 14rem;
			margin: auto;
		}
		&::after {
			content: url(/assets/genie/img/red-model.png);
			margin: auto;
			max-width: 90%;
			z-index: 2;
			position: absolute;
			top: -130px;
			right: 26px;
		}
	}
}

.blue-model3-overlay {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	margin: 1rem 0 0;
	padding: 0 0 0 2rem;
	img {
		width: 7rem;
		grid-column: 1;
		grid-row: 1;
	}
	&:after {
		content: url("/assets/genie/img/blue-model3-sm.png");
		grid-column: 1;
		grid-row: 1;
		display: flex;
		margin: 0 0 0 3rem;
	}
}
@media (min-width: 1100px) {
	.blue-model3-overlay {
		margin: 2rem 0 0;
		padding: 0;
		img {
			width: 14rem;
		}
		&:after {
			content: url("/assets/genie/img/blue-model3.png");
			margin: -4rem 0 0 6rem;
		}
	}
}

@media (min-width: 1100px) {
	wrap {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 1rem;
	}
}

.anton-regular {
	font-family: "Anton", sans-serif;
	font-weight: 400;
	font-style: normal;
}

/* Mobile-specific fixes for product cards */
@media (max-width: 1100px) {
	/* Ensure unit ads don't overflow */
	.unit-ad {
		max-width: 100%;
		overflow: hidden;
	}

	/* Fix auto-ad layout on mobile */
	.auto-ad {
		width: 100%;
	}

	.auto-ad .images {
		max-width: 100%;
		overflow: hidden;
	}

	.auto-ad .images img {
		max-width: 100%;
		width: auto;
		height: auto;
		object-fit: contain;
	}

	/* Ensure copy text doesn't overflow */
	.auto-ad .copy {
		width: 100%;
		padding: 0.5rem;
		word-wrap: break-word;
	}

	/* Fix overlays on mobile */
	.blue-model-overlay,
	.red-model-overlay,
	.blue-model3-overlay {
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}

	/* Ensure data bars don't overflow */
	.data-bars {
		max-width: 100%;
		overflow-x: auto;
	}

	/* Fix header sizes on mobile */
	h1,
	h2,
	h3 {
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	/* Data bar mobile styling - force type and id to their own lines */
	.data-bar:not([hidden]) {
		flex-wrap: wrap !important;
		gap: 0.5rem !important;
		padding: 0.5rem !important;
	}

	/* Force type and id spans to take full width on mobile */
	.data-bar:not([hidden]) > span.type,
	.data-bar:not([hidden]) > span.id {
		flex-basis: 100% !important;
		width: 100% !important;
		text-align: center !important;
	}

	/* Other spans stay inline */
	.data-bar:not([hidden]) > span:not(.type):not(.id) {
		flex: 0 0 auto !important;
	}

	/* Ensure main content doesn't overflow */
	main {
		max-width: 100vw;
		overflow-x: hidden;
	}

	/* Fix grid layout on mobile */
	#unit-ads {
		max-width: 100%;
	}

	/* Ensure article containers respect boundaries */
	article {
		max-width: 100%;
		overflow: hidden;
	}

	/* Fix input zoom on iOS */
	input[type="text"],
	input[type="search"],
	input[type="email"],
	input[type="tel"],
	input[type="number"] {
		font-size: 1rem;
	}

	/* Improve touch targets for navigation */
	aside nav ul li {
		min-height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* Add active states for better touch feedback */
	aside nav ul li:active {
		background: #0040cc;
		-webkit-transform: scale(0.98);
		-moz-transform: scale(0.98);
		-ms-transform: scale(0.98);
		transform: scale(0.98);
	}

	/* Ensure buttons have proper touch targets */
	.btn,
	.blue-btn,
	button {
		min-height: 44px;
		min-width: 44px;
	}

	/* Remove negative margins that break mobile layout */

	.blue-model-overlay::after {
		margin: 0 auto 0 2rem;
	}

	.blue-model3-overlay:after {
		margin: 0 0 0 3rem;
	}
}

/* Image features and lineset styles */
.image-features {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	padding: 0.5rem;
}

.lineset-included {
	display: block;
	font-size: 18px;
	font-weight: bold;
	color: #28a745;
	background: #f8f9fa;
	border: 1px solid #28a745;
	border-radius: 4px;
	padding: 4px 8px;
	text-transform: uppercase;
}
