/* --- Header & Logo --- */
#logo h1 {
	font-family: 'Source Sans Pro', sans-serif !important;
	font-weight: 300;
	font-size: 3.8em;
	letter-spacing: 12px;
	word-spacing: 10px;
	text-transform: uppercase;
	margin-bottom: 0.25em;
}

#logo h1 a {
	text-decoration: none;
	color: #fff;
}

#logo p {
	font-family: 'Source Sans Pro', sans-serif !important;
	font-weight: 400;
	letter-spacing: 6px;
	font-size: 0.9em;
	text-transform: uppercase;
	opacity: 0.9;
}

/* Responsive Logo adjustments */
@media screen and (max-width: 980px) {
	#logo h1 {
		font-size: 2.5em;
		letter-spacing: 8px;
	}
}

@media screen and (max-width: 736px) {
	#logo h1 {
		font-size: 1.8em;
		letter-spacing: 6px;
		word-spacing: 5px;
	}

	#logo p {
		letter-spacing: 3px;
		font-size: 0.8em;
	}
}

/* --- Homepage Header Image --- */
.homepage-header-image picture {
	display: block;
}

.homepage-header-image img {
	aspect-ratio: 4 / 1;
	height: auto;
	object-fit: cover;
}

/* --- Accessibility: Contrast Improvements --- */
#main.wrapper.style2,
#main.wrapper.style2 p,
#main.wrapper.style2 header.style1 p {
	color: #606167;
}

#main.wrapper.style2 .feature-list h3 {
	color: #b8463f !important;
}

#footer form input[type="text"],
#footer form input[type="email"],
#footer form input[type="password"],
#footer form select,
#footer form textarea {
	color: #333;
}

/* --- reCAPTCHA --- */

/* reCAPTCHA Badge Auto-hide */
@keyframes hideBadge {
	0% {
		opacity: 1;
	}

	80% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		pointer-events: none;
	}
}

.grecaptcha-badge {
	animation: hideBadge 1s forwards 5s !important;
	z-index: 10000 !important;
}

/* --- Back to Top Button --- */
#back-to-top {
	position: fixed;
	bottom: 2em;
	right: 2em;
	width: 3.5em;
	height: 3.5em;
	line-height: 3.5em;
	text-align: center;
	background: #e97770 url("escape-velocity/images/overlay.webp");
	color: #fff !important;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10001 !important;
	opacity: 0;
	visibility: hidden;
	-moz-transition: all 0.5s ease;
	-webkit-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	transition: all 0.5s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	text-decoration: none;
}

#back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

#back-to-top:hover {
	background-color: #f98780;
	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-ms-transform: scale(1.1);
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#back-to-top i {
	font-size: 1.2em;
	vertical-align: middle;
}

/* --- Pagination --- */
.pagination {
	text-align: center;
	margin-top: 3em;
}

.pagination ul {
	list-style: none;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5em;
}

.pagination ul li {
	display: block;
	margin: 0;
}

.pagination .button.small {
	min-width: 3em;
	padding: 0 1em;
	height: 3em;
	line-height: 3em;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media screen and (max-width: 736px) {
	.pagination .button.small {
		min-width: 2.5em;
		height: 2.5em;
		line-height: 2.5em;
		padding: 0 0.5em;
		font-size: 0.9em;
	}

	.pagination ul {
		gap: 0.25em;
	}
}

/* --- Product Grid & Cards Alignment --- */
.product-column {
	display: flex !important;
}

.product-column .highlight {
	display: flex !important;
	flex-direction: column !important;
	height: 100%;
	width: 100% !important;
	text-align: center;
	background: transparent;
}

.product-column .highlight .image {
	border: solid 10px #fff;
	display: block;
	margin-bottom: 2em;
}

.product-column .highlight h3 {
	font-size: 1.3em !important;
	min-height: 1.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #e97770 !important;
	margin: 0 0 0.5em 0;
}

.product-column .highlight p {
	min-height: 6em;
	margin-bottom: 1em !important;
}

.product-column .highlight .actions {
	margin-top: auto !important;
	padding-top: 1em;
}

/* --- Product Hover Image Swap (Flip) --- */
.product-column .highlight .image.featured {
	position: relative;
	overflow: hidden;
	background: #fff;
	padding-bottom: 125%;
	/* Ratio 4:5 */
	margin-bottom: 2em;
}

.product-column .highlight .image.featured picture {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.product-column .highlight .image.featured img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.4s ease;
	margin: 0;
}

.product-column .highlight .image.featured .secondary {
	opacity: 0;
	z-index: 2;
}

.product-column .highlight .image.featured .primary {
	opacity: 1;
	z-index: 1;
}

/* Hover & Touch Flip Effect */
.product-column .highlight:hover .image.featured .secondary,
.product-column .highlight:active .image.featured .secondary {
	opacity: 1;
}

/* --- Catalog Page Padding Overrides --- */
.catalog {
	padding: 4em 0 3em 0 !important;
}

@media screen and (max-width: 1280px) {
	.catalog {
		padding: 4em 0 3em 0 !important;
	}
}

@media screen and (max-width: 736px) {
	.catalog {
		padding: 2em 0 1em 0 !important;
	}
}

.catalog+#highlights {
	padding-top: 0 !important;
}

/* --- Utility Classes --- */
.button.disabled {
	pointer-events: none;
	opacity: 0.5;
}

/* Flash Messages */
.flash-message {
	padding: 1em;
	margin-bottom: 1em;
	border-radius: 5px;
	text-align: center;
	border: 1px solid transparent;
}

.flash-message.success {
	color: #009423;
	border-color: #009423;
}

.flash-message.error {
	color: #e97770;
	border-color: #e97770;
}

.flash-messages-placeholder {
	min-height: 4em;
	margin-top: 3em;
}

.flash-messages-container {
	position: relative;
	z-index: 1000;
}

/* --- Header --- */
#header {
	background-image: url('../images/verity_wizytowka.jpg');
	background-size: cover;
	background-position: center;
}

/* --- Product Carousel (Homepage) --- */
.carousel-container {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

.carousel-track-wrapper {
	overflow: hidden;
	width: 100%;
}

.carousel-track {
	display: flex;
	flex-wrap: nowrap !important;
	/* Override standard .row wrap */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
	margin: 0 -1em;
	/* Adjust for padding on items */
}

.carousel-track::-webkit-scrollbar {
	display: none;
}

.carousel-track .product-column {
	flex: 0 0 33.33333%;
	/* Default 3 items */
	width: auto !important;
	max-width: none !important;
	scroll-snap-align: start;
	padding: 0 1em;
	/* Spacing between items */
}

@media screen and (max-width: 980px) {
	.carousel-track .product-column {
		flex: 0 0 50%;
		/* 2 items on tablet */
	}
}

@media screen and (max-width: 736px) {
	.carousel-track .product-column {
		flex: 0 0 100%;
		/* 1 item on mobile */
	}
}

/* Carousel Navigation Arrows */
.carousel-nav {
	position: absolute;
	top: 38%;
	/* Align with image center (approx) */
	transform: translateY(-50%);
	background: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	display: inline-block;
	cursor: pointer;
	z-index: 10;
	color: #e97770;
	transition: all 0.3s ease;
	opacity: 0.8;
	box-shadow: none !important;
}

.carousel-nav:hover {
	background: none !important;
	opacity: 1;
	color: #444;
	transform: translateY(-50%) scale(1.2);
}

.carousel-nav.prev {
	left: -30px;
}

.carousel-nav.next {
	right: -30px;
}

@media screen and (max-width: 1280px) {
	.carousel-nav.prev {
		left: -10px;
	}

	.carousel-nav.next {
		right: -10px;
	}

	.carousel-nav {
		opacity: 1;
		text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
	}
}

@media screen and (max-width: 736px) {
	.carousel-nav.prev {
		left: 5px;
	}

	.carousel-nav.next {
		right: 5px;
	}

	.carousel-nav {
		top: 35%;
		/* Adjust for mobile aspect ratio */
	}
}

.carousel-nav i {
	font-size: 2.5em;
	/* Larger, more prominent icons */
}

/* --- Cookie Consent Banner Styles --- */
.cookie-banner {
	opacity: 1;
	visibility: visible;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #484d55;
	color: #fff;
	box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.2);
	z-index: 11000;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 1.5em 0;
	margin: 0;
}

.cookie-banner .inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2em;
}

.cookie-banner-title {
	color: #fff;
	margin-bottom: 0.5em;
	font-size: 1.25em;
	font-weight: 700;
	letter-spacing: 0.075em;
}

.cookie-banner p {
	color: #e3e3e3;
	margin-bottom: 1.5em;
	font-size: 0.9em;
}

.cookie-banner .actions {
	margin: 0;
}

#rejectConsent {
	color: #999 !important;
	box-shadow: inset 0px 0px 2px 0px #999 !important;
}

#rejectConsent:hover,
#rejectConsent:active {
	color: #bbb !important;
	box-shadow: inset 0px 0px 2px 0px #bbb !important;
}

.cookie-banner.cookie-consent-hidden {
	visibility: hidden !important;
	opacity: 0 !important;
}

#footer .footer-intro {
	text-align: center;
	padding: 3em 0 5em 0;
	margin-bottom: 5em;
	border-bottom: solid 1px rgba(255, 255, 255, 0.05);
}

#footer .footer-intro h2 {
	color: #fff;
	font-weight: 700;
	font-size: 2em;
	letter-spacing: 0.075em;
	line-height: 1.5em;
}

#footer .footer-intro p {
	color: #b1b4b9;
	display: block;
	margin: 1.15em 0 0 0;
	font-size: 1.3em;
	letter-spacing: 0.075em;
	line-height: 1.5em;
}

@media screen and (max-width: 980px) {
	#footer .footer-intro {
		padding-bottom: 3em;
		margin-bottom: 3em;
		border-bottom: solid 1px rgba(255, 255, 255, 0.05);
	}
}

@media screen and (max-width: 736px) {
	.cookie-banner {
		padding: 1em 0;
	}

	.cookie-banner .inner {
		padding: 0 1em;
	}

	#footer .footer-intro {
		padding-bottom: 0;
		margin-bottom: 2em;
		border-bottom: 0;
	}
}
