/* 8 Bit Homes — custom styles (Photon theme accents) */

/* Showcase image — livingroom hero beside intro copy */
.showcase-img {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-img:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.showcase-img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Service Modals */
.service-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 10010;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.service-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.service-modal {
	position: relative;
	background: #2e3842;
	color: rgba(255, 255, 255, 0.85);
	border-radius: 10px;
	width: 90%;
	max-width: 680px;
	max-height: 85vh;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transform: translateY(30px) scale(0.97);
	transition: transform 0.35s ease;
}

.service-modal-overlay.active .service-modal {
	transform: translateY(0) scale(1);
}

.service-modal-close {
	position: absolute;
	top: 1em;
	right: 1em;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 1.8em;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	z-index: 2;
	transition: color 0.2s ease;
}

.service-modal-close:hover {
	color: #fff;
}

.service-modal-body {
	padding: 2.5em 2.5em 2em;
	overflow-y: auto;
	max-height: 85vh;
}

.service-modal-body h2 {
	color: #fff;
	font-size: 1.6em;
	margin: 0 0 0.5em;
}

.service-modal-body h2 .icon {
	margin-right: 0.4em;
	color: #6bd4c8;
}

.service-modal-intro {
	font-size: 1.05em;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 1.8em;
	line-height: 1.7;
}

.service-solution {
	background: rgba(255, 255, 255, 0.05);
	border-left: 3px solid #6bd4c8;
	border-radius: 0 6px 6px 0;
	padding: 1.4em 1.6em;
	margin-bottom: 1.4em;
}

.service-solution:last-child {
	margin-bottom: 0;
}

.service-solution h3 {
	color: #fff;
	font-size: 1.15em;
	margin: 0 0 0.6em;
}

.service-solution h3 .icon {
	margin-right: 0.35em;
	color: #6bd4c8;
	font-size: 0.9em;
}

.service-solution p {
	margin: 0 0 0.7em;
	font-size: 0.95em;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.75);
}

.service-solution p:last-child {
	margin-bottom: 0;
}

.service-solution strong {
	color: #fff;
}

@media screen and (max-width: 736px) {
	.service-modal {
		width: 95%;
		max-height: 90vh;
	}

	.service-modal-body {
		padding: 2em 1.5em 1.5em;
		max-height: 90vh;
	}

	.service-solution {
		padding: 1em 1.2em;
	}
}

/* Cart — 8 Bit Homes (Photon theme accents) */
#cart-button {
	position: fixed;
	top: 1.25em;
	right: 1.25em;
	width: 3.75em;
	height: 3.75em;
	background: #555;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25em;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
	z-index: 10001;
	transition: transform 0.2s ease, background 0.2s ease;
}

#cart-button:hover {
	transform: scale(1.08);
	background: #6bd4c8;
	color: #fff;
}

#cart-badge {
	position: absolute;
	top: -0.25em;
	right: -0.25em;
	background: #e74c3c;
	color: #fff;
	font-size: 0.45em;
	font-weight: bold;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#cart-modal {
	position: fixed;
	top: 0;
	right: -400px;
	width: 400px;
	max-width: 100%;
	height: 100vh;
	background: #2e3842;
	color: #fff;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.35);
	z-index: 10002;
	transition: right 0.35s ease;
	display: flex;
	flex-direction: column;
}

#cart-modal.open {
	right: 0;
}

#cart-header {
	padding: 1.25em;
	background: #1e252b;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#cart-header h2 {
	margin: 0;
	font-size: 1.35em;
	color: #fff;
}

#cart-close {
	background: none;
	border: none;
	color: #aaa;
	font-size: 1.5em;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

#cart-close:hover {
	color: #fff;
}

#cart-items {
	flex: 1;
	overflow-y: auto;
	padding: 1.25em;
}

.cart-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1em;
	padding-bottom: 1em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-info {
	flex: 1;
}

.cart-item-title {
	font-weight: bold;
	margin-bottom: 0.35em;
}

.cart-item-price {
	color: #6bd4c8;
	font-size: 0.9em;
}

.cart-item-controls {
	display: flex;
	align-items: center;
	gap: 0.65em;
}

.cart-item-btn {
	background: #ffffff;
	color: #1a1d21;
	border: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	width: 1.5em;
	height: 1.5em;
	border-radius: 3px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.85em;
	line-height: 1;
}

.cart-item-btn:hover {
	background: #e8f4f3;
	color: #000;
	border-color: #6bd4c8;
}

.cart-item-btn:active {
	background: #d4e8e6;
	color: #000;
}

.cart-item-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9em;
	height: 1.9em;
	padding: 0;
	margin-left: 0.45em;
	background: rgba(201, 42, 42, 0.15);
	color: #ff6b6b;
	border: 1px solid rgba(201, 42, 42, 0.5);
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.85em;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cart-item-remove .icon,
.cart-item-remove .icon::before {
	font-size: 1em;
	color: inherit;
}

.cart-item-remove:hover {
	background: rgba(201, 42, 42, 0.4);
	color: #fff;
	border-color: #ff6b6b;
}

.cart-item-remove:active {
	background: rgba(201, 42, 42, 0.6);
	color: #fff;
}

.empty-cart-msg {
	text-align: center;
	color: #999;
	margin-top: 3em;
}

#cart-footer {
	padding: 1.25em;
	background: #1e252b;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
	display: flex;
	justify-content: space-between;
	font-size: 1.15em;
	font-weight: bold;
	margin-bottom: 1em;
	color: #fff;
}

#cart-checkout {
	width: 100%;
	background: #6bd4c8;
	color: #fff;
	border: none;
	padding: 0.85em;
	font-size: 1em;
	font-weight: bold;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s ease;
}

#cart-checkout:hover {
	background: #57aed3;
}

.product-price {
	font-size: 1.15em;
	font-weight: bold;
	color: #6bd4c8;
	margin: 0.65em 0;
}

.add-to-cart-btn {
	display: inline-block;
	background: #555;
	color: #fff;
	padding: 0.5em 1em;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.9em;
	cursor: pointer;
	transition: background 0.2s ease;
	border: none;
	font-family: inherit;
}

.add-to-cart-btn:hover {
	background: #6bd4c8;
	color: #fff;
}

/*
 * Product cards — same visual language as eightbithomes (Prologue):
 * section.two background (#f5fafa) + .item box-shadow + white header band.
 */
.products-page .main.hardware-ecosystem {
	background: #f5fafa !important;
	box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.05), inset 0 0.1em 0.1em 0 rgba(0, 0, 0, 0.025);
}

.products-page .hardware-ecosystem article.item {
	box-shadow: 0 0.05em 0.15em 0 rgba(0, 0, 0, 0.08);
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 2.5em;
	text-align: center;
}

.products-page .hardware-ecosystem article.item .image {
	display: block;
	margin: 0;
}

.products-page .hardware-ecosystem article.item .image img {
	display: block;
	width: 100%;
	vertical-align: middle;
}

.products-page .hardware-ecosystem article.item header {
	background: #fff;
	margin: 0;
	padding: 1em 1em 1.25em;
	font-size: 0.9em;
}

.products-page .hardware-ecosystem article.item header h3 {
	font-size: 1em;
	margin: 0 0 0.35em 0;
}

.products-page .hardware-ecosystem .product-price {
	margin-top: 0.35em;
	margin-bottom: 0.65em;
}
