@font-face {
	font-family: 'MS PGothic';
	src: url('../fonts/ms-pgothic-regular.ttf') format('truetype');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

h1:focus {
	outline: none;
}

.velux-blue {
	background-color: rgb(217, 225, 224);
}

.velux-beige {
	background-color: rgb(235, 230, 222);
}

.border-velux-blue {
	border-color: rgb(217, 225, 224) !important;
}

/* ===== Compact Appbar ===== */
.appbar-compact {
	min-height: 40px !important;
	height: 40px !important;
}

	.appbar-compact .mud-toolbar {
		min-height: 40px !important;
		height: 40px !important;
		padding: 0 8px;
	}

.appbar-logo {
	height: 30px;
	filter: brightness(0) invert(1);
	pointer-events: none;
}

.appbar-menu-btn {
	padding: 4px !important;
	margin-left: 8px !important;
}

@media (max-width: 600px) {
	.appbar-compact {
		min-height: 36px !important;
		height: 36px !important;
	}

		.appbar-compact .mud-toolbar {
			min-height: 36px !important;
			height: 36px !important;
			padding: 0 4px;
		}

	.appbar-logo {
		height: 18px;
	}

	.mud-main-content {
		padding-top: var(--mud-appbar-height) !important;
	}

		.mud-main-content .mt-4 {
			margin-top: 0 !important;
		}
}

.whatsapp-fab {
	position: fixed;
	right: 26px;
	bottom: 60px;
	z-index: 1200;
}

/* Language selector — fixed bottom-right */
.lang-fab {
	position: fixed;
	bottom: 12px;
	right: 12px;
	z-index: 1200;
}

@media (max-width: 600px) {
	.whatsapp-fab {
		position: static;
		display: flex;
		justify-content: center;
		align-items:center;
		gap: 12px;
		padding: 8px 0;
		color: #fff;
		z-index: 1;
	}

	.lang-fab {
		position: static;
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 12px;
		padding: 8px 0;
		background: var(--mud-palette-appbar-background, #594ae2);
		color: #fff;
		z-index: 1;
	}

		.lang-fab .footer-logo {
			display: block;
			height: 20px;
			filter: brightness(0) invert(1);
		}
}

@media (min-width: 601px) {
	.lang-fab .footer-logo {
		display: none;
	}
}

/* ===== MudBlazor layout offsets (no contact bar) ===== */
.mud-container--gutters {
	padding-right: 4px !important;
}

.mud-appbar.mud-appbar-fixed-top {
	top: 0 !important;
}

.mud-drawer {
	margin-top: 0 !important;
	height: calc(100vh - var(--mud-appbar-height)) !important;
}

.mud-main-content {
	padding-top: var(--mud-appbar-height) !important;
	padding-bottom: 120px !important;
}

/* ===== Cart pill button ===== */
.cart-pill {
	text-transform: none !important;
	min-width: unset !important;
	padding: 2px 10px 2px 6px !important;
	font-weight: 700;
	font-size: 0.8rem;
	border-radius: 20px !important;
	line-height: 1.4;
}

/* ===== Splash / Loading Screen ===== */
.splash-screen {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1e1e1e 0%, #e22222 100%);
	z-index: 9999;
}

.splash-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	margin-top: -5rem;
}

.splash-logo {
	width: 380px;
	animation: splashFadeIn 1s ease-out;
	filter: brightness(0) invert(1);
	margin-left: 2%;
	margin-right: 2%;
}

.splash-loader {
	display: flex;
	align-items: center;
	justify-content: center;
}

.splash-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid rgba(255, 255, 255, 0.25);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: splashSpin 0.8s linear infinite;
}

.splash-text {
	color: #ffffff;
	font-family: 'Roboto', sans-serif;
	font-size: 1.1rem;
	font-weight: 300;
	letter-spacing: 0.5px;
	text-align: center;
	min-height: 1.6em;
	transition: opacity 0.4s ease;
}

@keyframes splashSpin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes splashFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}
/* ===== End Splash Screen ===== */

#blazor-error-ui {
	background: lightyellow;
	bottom: 0;
	box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
	display: none;
	left: 0;
	padding: 0.6rem 1.25rem 0.7rem 1.25rem;
	position: fixed;
	width: 100%;
	z-index: 1000;
}

	#blazor-error-ui .dismiss {
		cursor: pointer;
		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MgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
	padding: 1rem 1rem 1rem 3.7rem;
	color: white;
}

	.blazor-error-boundary::after {
		content: "An error has occurred."
	}

@media print {
	.no-print {
		display: none;
	}

	.print-container {
		width: 100%;
	}

	.page-break {
		page-break-after: always;
		break-after: page;
	}
}

.mud-input-control {
	margin-top: 10px;
}

/* ===== Configurator card grid ===== */

/* Equal-height cards: grid items stretch, cards fill height */
.configurator-grid.mud-grid {
	display: flex;
	flex-wrap: wrap;
}

.configurator-grid > .mud-grid-item {
	display: flex;
}

/* ===== Expanding panels — accessoire group products ===== */
.panels {
	display: flex;
	gap: 8px;
	height: clamp(400px, 65vh, 600px);
	padding: 4px 0;
}

.panels__item {
	position: relative;
	flex: 1;
	min-width: 0;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	background: rgb(235, 230, 222);
	transition: flex 0.5s cubic-bezier(.4, 0, .2, 1), filter 0.4s ease;
}

.panels:hover .panels__item {
	flex: 0.6;
	filter: brightness(0.85);
}

	.panels:hover .panels__item:hover {
		flex: 3;
		filter: brightness(1);
	}

.panels__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
}

.panels__item:hover img {
	transform: scale(1.05);
}

.panels__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 40%, transparent 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 20px 12px;
	pointer-events: none;
}

.panels__label {
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0,0,0,0.6);
	letter-spacing: 0.3px;
	line-height: 1.3;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	transition: font-size 0.4s ease;
}

.panels__item:hover .panels__label {
	font-size: 1.4rem;
}

.panels__check {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(255,255,255,0.92);
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
	z-index: 1;
}

.panels__item--selected {
	outline: 3px solid var(--mud-palette-primary);
	outline-offset: -3px;
}

	.panels__item--selected::after {
		content: '';
		position: absolute;
		inset: 0;
		border-radius: 16px;
		box-shadow: inset 0 0 0 3px var(--mud-palette-primary);
		pointer-events: none;
	}

@media (max-width: 960px) {
	.panels {
		height: clamp(300px, 50vh, 450px);
	}
}

@media (max-width: 600px) {
	.panels {
		flex-direction: column;
		height: auto;
		gap: 8px;
	}

	.panels__item {
		flex: none !important;
		height: 120px;
		filter: brightness(1) !important;
	}

		.panels__item:hover img {
			transform: none;
		}

	.panels__label {
		font-size: 1.1rem;
		white-space: normal;
	}
}
/* ===== End Expanding panels ===== */

/* ===== Category cards — category selection ===== */
.category-hero {
	text-align: center;
	padding: 16px 0 0;
}

.category-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	max-width: 1400px;
	margin: 0 auto;
}

.category-card {
	position: relative;
	display: flex;
	width: calc((100% - 48px) / 3);
	min-width: 380px;
	flex-direction: column;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	background: rgb(235, 230, 222);
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s ease;
}

	.category-card:hover {
		transform: translateY(-6px);
		box-shadow: 0 12px 32px rgba(0,0,0,0.14);
	}

.category-card--selected {
	outline: 3px solid var(--mud-palette-primary);
	outline-offset: -3px;
	box-shadow: 0 4px 20px rgba(var(--mud-palette-primary-rgb, 33,150,243), 0.25);
}

.category-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: rgb(235, 230, 222);
}

	.category-card__image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
		transition: transform 0.5s cubic-bezier(.4,0,.2,1);
	}

.category-card:hover .category-card__image img {
	transform: scale(1.06);
}

.category-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
}

.category-card__check {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(255,255,255,0.95);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	z-index: 1;
}

.category-card__body {
	display: flex;
	flex-direction: column;
	padding: 16px 16px 12px;
	flex: 1;
}

.category-card__name {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--mud-palette-text-primary);
	line-height: 1.3;
}

.category-card__desc {
	font-size: 0.85rem;
	color: var(--mud-palette-text-secondary);
	margin-top: 4px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.category-card__action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 16px 14px;
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-card:hover .category-card__action {
	opacity: 1;
	transform: translateX(0);
}

/* Tablet */
@media (max-width: 960px) {
	.category-card {
		width: calc((100% - 24px) / 2);
		min-width: 280px;
	}

	.category-cards {
		gap: 16px;
	}
}

/* Mobile */
@media (max-width: 600px) {
	.category-cards {
		gap: 12px;
	}

	.category-card {
		width: 100%;
		min-width: 0;
		flex-direction: row;
		align-items: stretch;
	}

	.category-card__image {
		width: 120px;
		min-height: 100px;
		aspect-ratio: auto;
		flex-shrink: 0;
	}

	.category-card__body {
		padding: 12px 14px;
		justify-content: center;
	}

	.category-card__action {
		opacity: 1;
		transform: none;
		padding: 12px 12px 12px 0;
		align-self: center;
	}

	.category-card:hover {
		transform: none;
	}
}
/* ===== End Category cards ===== */

.configurator-grid > .mud-grid-item > .mud-card {
	display: flex;
	flex-direction: column;
	width: 100%;
}

	.configurator-grid > .mud-grid-item > .mud-card > .mud-card-content {
		flex: 1;
		display: flex;
		flex-direction: column;
	}

/* 5 items per row on large screens (lg ≥ 1280px) */
@media (min-width: 1280px) {
	.configurator-grid > .mud-grid-item {
		flex: 0 0 20%;
		max-width: 20%;
	}
}

/* Image area */
.configurator-card-img {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	height: 380px;
}

/* Square image container — keeps photos fully visible without cropping */
.configurator-card-img-square {
	height: auto;
	aspect-ratio: 1 / 1;
}

/* Compact image for identification plates — shorter on mobile */
.configurator-card-img-compact {
	height: auto;
	aspect-ratio: 3 / 2;
}

/* Larger image for window category cards (step 0) */
.configurator-card-img-lg {
	height: auto;
	width: 100%;
	aspect-ratio: 4 / 3;
}

/* Smaller image for accessoire types & products */
.configurator-card-img-sm {
	height: auto;
	width: 100%;
	aspect-ratio: 1 / 1;
}

.configurator-card-img img {
	transition-property: transform;
	transition-timing-function: cubic-bezier(.4, 0, .2, 1);
	transition-duration: 1s;
}

.configurator-card-img:hover img {
	transform: scale(1.05);
}

/* Description text — multiline, subtle color */
.configurator-card-desc {
	margin-top: 8px;
	font-size: 0.85rem;
	line-height: 1.5;
	color: rgba(0,0,0,0.55);
	white-space: pre-line;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Card rounding — all configurator cards */
.configurator-grid > .mud-grid-item > .mud-card {
	border-radius: 16px;
	overflow: hidden;
}

/* ===== End Configurator card grid ===== */

/* ===== Welcome hero ===== */
.welcome-hero {
	padding: 80px 0 100px;
	min-height: 480px;
	margin-top: 80px;
}

.welcome-hero-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 48px;
	display: flex;
	align-items: center;
	gap: 64px;
}

.welcome-hero-text {
	flex: 1;
	min-width: 0;
}

.welcome-greeting {
	font-weight: 700 !important;
	margin-bottom: 8px !important;
}

.welcome-heading {
	font-weight: 600 !important;
	margin-bottom: 16px !important;
	line-height: 1.3 !important;
}

.welcome-desc {
	color: rgba(0,0,0,0.55);
	line-height: 1.7 !important;
	max-width: 560px;
}

.welcome-hero-image {
	flex: 0 0 45%;
	max-width: 45%;
}

	.welcome-hero-image img {
		width: 100%;
		height: auto;
		border-radius: 16px;
		object-fit: cover;
		max-height: 480px;
	}

@media (max-width: 960px) {
	.welcome-hero-inner {
		flex-direction: column;
		padding: 0 24px;
		gap: 40px;
	}

	.welcome-hero-image {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	.welcome-hero {
		padding: 48px 0 64px;
	}
}
/* ===== End Welcome hero ===== */

/* ===== Contact page hero ===== */
.contact-hero-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 48px;
	display: flex;
	align-items: flex-start;
	gap: 48px;
}

.contact-hero-image {
	flex: 0 0 38%;
	max-width: 38%;
	position: sticky;
	top: 100px;
}

	.contact-hero-image img {
		width: 100%;
		height: auto;
		border-radius: 16px;
		object-fit: cover;
		max-height: 560px;
	}

.contact-hero-form {
	flex: 1;
	min-width: 0;
}

	.contact-hero-form .mud-input-control {
		margin-top: 4px;
	}

@media (max-width: 960px) {
	.contact-hero-inner {
		flex-direction: column;
		padding: 0 16px;
		gap: 24px;
	}

	.contact-hero-image {
		flex: none;
		max-width: 100%;
		width: 100%;
		position: static;
	}
}
/* ===== End Contact page hero ===== */
