/*
 * Light visual refresh layered on top of the original styles.
 * Loaded last in @layout.latte; removing that one <link> restores the previous look.
 * Only spacing, radii, shadows, focus states and transitions change: no colours of the brand,
 * no layout grid, no fonts.
 */

/* Open Sans 400/600/700, self-hosted (www/fonts/opensans, SIL OFL), replaces the thin Light cut. */
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/opensans/open-sans-latin-ext-400-normal.woff2') format('woff2');
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/opensans/open-sans-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/opensans/open-sans-latin-ext-600-normal.woff2') format('woff2');
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/opensans/open-sans-latin-600-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/opensans/open-sans-latin-ext-700-normal.woff2') format('woff2');
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/opensans/open-sans-latin-700-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
	--m-radius: 10px;
	--m-radius-sm: 8px;
	--m-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--m-shadow-hover: 0 10px 24px -6px rgba(16, 24, 40, .18), 0 4px 8px -4px rgba(16, 24, 40, .10);
	--m-ring: 0 0 0 3px rgba(42, 132, 0, .25);
	--m-ease: cubic-bezier(.2, .8, .2, 1);
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.c-background1 {
	background-color: #f4f5f7;
}

/* Cards: product grid, sidebar boxes and other faint-shadow panels */
.boxShadowFaint {
	box-shadow: var(--m-shadow);
	border-radius: var(--m-radius);
}

.productGrid {
	border-radius: var(--m-radius);
	overflow: hidden;
	transition: transform .18s var(--m-ease), box-shadow .18s var(--m-ease);
}

.productGrid:hover {
	transform: translateY(-3px);
	box-shadow: var(--m-shadow-hover);
}

.productGrid-image img {
	border-radius: var(--m-radius-sm);
}

.productGrid-title {
	line-height: 1.35;
}

/* Buttons and price tags (keep the brand gradient, soften the shape).
   .c-background3 is also the header background (#navigate.fullContainer), which must stay square. */
.c-background3:not(.fullContainer) {
	border-radius: var(--m-radius-sm);
	transition: filter .15s ease, box-shadow .15s ease, transform .15s var(--m-ease);
}

a:hover > .c-background3:not(.fullContainer),
a.c-background3:not(.fullContainer):hover,
button.c-background3:hover,
input[type=submit].c-background3:hover,
.productGrid-price:hover {
	filter: brightness(1.15);
	box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35);
}

a:active > .c-background3:not(.fullContainer),
button.c-background3:active {
	transform: translateY(1px);
}

.inputButton,
input[type=submit],
button {
	border-radius: var(--m-radius-sm);
	cursor: pointer;
}

/* Form fields */
.inputTextbox,
#frm-searchForm-phrase,
input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=number],
select,
textarea {
	border-radius: var(--m-radius-sm);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.inputTextbox:focus,
#frm-searchForm-phrase:focus,
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=tel]:focus,
input[type=number]:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: #2a8400;
	box-shadow: var(--m-ring);
}

#frm-searchForm-phrase {
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	border-color: transparent;
	padding-left: 14px;
}

/* Keyboard focus visible on links and buttons */
a:focus-visible,
button:focus-visible,
input[type=submit]:focus-visible {
	outline: none;
	box-shadow: var(--m-ring);
	border-radius: 6px;
}

/* Links: smooth colour change */
a {
	transition: color .15s ease, opacity .15s ease;
}

/* Banner / carousel */
#bannerProducts .bannerProduct {
	border-radius: var(--m-radius);
	overflow: hidden;
}

/* Alphabet bar: pill hover on letters */
#alphabeticListHorizontal .gameList {
	border-radius: 999px;
	transition: background-color .15s ease, color .15s ease;
}

#alphabeticListHorizontal .gameList:hover {
	background-color: #eef6ea;
	color: #2a8400;
}

/* Product detail: cover, video and screenshots match the rounded cards */
#productDetail-image img,
#productDetail-ScreenshotDetail iframe,
#productDetail-ScreenshotDetail img,
#productDetail .screenshots.picture {
	border-radius: var(--m-radius);
}

#productDetail-image img {
	box-shadow: var(--m-shadow-hover);
}

#productDetail .screenshotsHref {
	display: block;
	border-radius: var(--m-radius);
	overflow: hidden;
	transition: opacity .15s ease;
}

#productDetail .screenshotsHref:hover {
	opacity: .85;
}

/* Product detail: gallery as a card. Thumbnail sizes stay as they are (the slider JS uses them). */
#productDetail-Screenshots {
	background: #fff;
	border-radius: var(--m-radius);
	box-shadow: var(--m-shadow);
	padding: 10px;
	box-sizing: border-box;
}

@media (min-width: 1200px) {
	#productDetail-Screenshots {
		width: calc(50% - 20px);
	}

	/* The original strip has a fixed 554px width plus 23px margins (made for a 600px column). */
	#screenshotSelectWrapper {
		width: 100%;
		margin: 16px 0 0;
	}
}

#productDetail-ScreenshotDetail {
	border-radius: var(--m-radius-sm);
	overflow: hidden;
	background: #000;
}

#screenshotSelectSlider .screenshotContainer {
	border-radius: var(--m-radius-sm);
	overflow: hidden;
}

#screenshotSelectSlider .screenshotContainer .video {
	background: #1f2328;
	color: #ff3d3d;
	transition: background-color .15s ease;
}

#screenshotSelectSlider .screenshotContainer .video:hover {
	background: #2d333b;
}

#sliderLeft,
#sliderRight {
	background: rgba(255, 255, 255, .92);
	color: #1f2328;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	border-radius: var(--m-radius-sm);
	z-index: 2;
	transition: background-color .15s ease;
}

#sliderLeft:hover,
#sliderRight:hover {
	background: #fff;
	color: #2a8400;
}

/* Product detail: description as a full-width readable card below image and gallery */
#productDetail-Description {
	float: none;
	clear: both;
	width: 100%;
	box-sizing: border-box;
	margin: 24px 0 8px;
	padding: 22px 28px 26px;
	background: #fff;
	border-radius: var(--m-radius);
	box-shadow: var(--m-shadow);
}

.productDetail-sectionTitle {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: normal;
	color: #1f2328;
}

.productDetail-descriptionText {
	max-width: 820px;
	font-size: 16px;
	line-height: 1.7;
	color: #2f3439;
}

.productDetail-descriptionText p {
	margin: 0 0 1em;
}

.productDetail-descriptionText img,
.productDetail-descriptionText iframe {
	max-width: 100%;
	height: auto;
	border-radius: var(--m-radius-sm);
}

/* Sort menu */
#orderMenu {
	border-radius: var(--m-radius-sm);
}

/* Flash messages and form errors */
.flash {
	border-radius: var(--m-radius-sm);
	box-shadow: var(--m-shadow);
}

.formErrors {
	list-style: none;
	margin: 0 0 10px;
	padding: 8px 12px;
	border-radius: var(--m-radius-sm);
	background: #fdecec;
	color: #b42318;
	font-size: 14px;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
	.productGrid,
	.c-background3,
	a,
	.inputTextbox {
		transition: none;
	}
	.productGrid:hover {
		transform: none;
	}
}

@media (max-width: 640px) {
	#productDetail-Description {
		padding: 16px 16px 20px;
	}
}

/* Checkout progress stepper (app/templates/@checkoutSteps.latte) */
.checkoutSteps {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.checkoutSteps-step {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6b7280;
	white-space: nowrap;
}

.checkoutSteps-step + .checkoutSteps-step::before {
	content: '';
	display: block;
	width: 28px;
	height: 2px;
	margin-right: 2px;
	border-radius: 2px;
	background: #d0d5dd;
}

.checkoutSteps-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid #d0d5dd;
	background: #fff;
	font-size: 13px;
	line-height: 1;
	box-sizing: border-box;
}

.checkoutSteps-step.is-done {
	color: #2a8400;
}

.checkoutSteps-step.is-done .checkoutSteps-number {
	border-color: #2a8400;
	background: #2a8400;
	color: #fff;
}

.checkoutSteps-step.is-done + .checkoutSteps-step::before {
	background: #2a8400;
}

.checkoutSteps-step.is-current {
	color: #1f2328;
	font-weight: bold;
}

.checkoutSteps-step.is-current .checkoutSteps-number {
	border-color: #2a8400;
	color: #2a8400;
	box-shadow: var(--m-ring);
}

@media (max-width: 640px) {
	.checkoutSteps {
		gap: 4px;
		font-size: 12px;
	}
	.checkoutSteps-step + .checkoutSteps-step::before {
		width: 12px;
	}
	.checkoutSteps-step:not(.is-current) .checkoutSteps-label {
		display: none;
	}
}

/* Typography: regular Open Sans instead of the thin Light cut */
body,
input,
textarea,
select,
button {
	font-family: 'Open Sans', OpenSansLight, system-ui, sans-serif;
}

.font-light {
	font-weight: 400;
}

.font-strong {
	font-weight: 700;
}

h1, h2, h3,
.productGrid-price,
.productDetail-price {
	font-weight: 600;
}

/* Header search: placeholder, visible search button inside the field */
#frm-searchForm-phrase {
	-webkit-appearance: none;
	appearance: none;
	color: #1f2328;
}

#frm-searchForm-phrase::placeholder {
	color: #8a9099;
	opacity: 1;
}

#frm-searchForm-phrase::-webkit-search-cancel-button {
	cursor: pointer;
}

#frm-searchForm-phrase {
	box-sizing: content-box; /* type=search defaults to border-box, keep the original 50px field */
}

#frm-searchForm-send {
	color: #2a8400;
	font-weight: 600;
	border-radius: var(--m-radius-sm);
	transition: color .15s ease;
}

#frm-searchForm-send:hover {
	color: #1d5c00;
}

/* Alphabet bar label stays on one line with the wider font */
#alphabeticListHorizontal > li:first-child {
	white-space: nowrap;
	padding-right: 10px;
}

/* Product cards: titles take exactly two lines so prices line up */
.productGrid-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: 2.7em;
	max-height: 2.7em;
}

/* Footer: compact dark band */
#footer {
	background: #17191c;
	padding: 28px 0 20px;
	margin-top: 32px;
}

#footer,
#footer .c-foreground-text3 {
	color: #c4c9cf;
}

#footer a.c-foreground-text3:hover,
#footer a:hover {
	color: #7fd35a;
}

#footerMenu {
	font-size: 15px;
}

#footerMenu .menuItem {
	padding: 4px 14px;
}

#footerLinks {
	font-size: 14px;
}

#footerLinks a {
	color: #9aa1a9;
}

#footerMenu {
	margin-top: 0;
}

#footerMenuWrapper,
#footerLinks {
	min-height: 0;
}

#footerAC img {
	filter: brightness(0) invert(.75);
	opacity: .9;
}

/* ===== Mobile and tablet (original layout switches at 1010px) ===== */
@media all and (max-width: 1010px) {

	/* Inputs at 16px so iOS Safari does not zoom in on focus */
	input[type=text],
	input[type=search],
	input[type=email],
	input[type=password],
	input[type=tel],
	input[type=number],
	select,
	textarea {
		font-size: 16px;
	}

	/* Header icons: 44px touch targets */
	#searchButton,
	#header-cart,
	#header-profile {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		margin-right: 4px;
		border-radius: var(--m-radius-sm);
	}

	#searchButton:active,
	#header-cart:active,
	#header-profile:active {
		background: rgba(255, 255, 255, .12);
	}

	/* Filter toggle as a button next to "Katalog produktů" */
	#filterOpenIcon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		margin: -6px 10px 0 0;
		line-height: 1;
		font-size: 18px;
		border-radius: var(--m-radius-sm);
		background: #fff;
		box-shadow: var(--m-shadow);
		color: #2a8400;
	}

	/* Off-canvas navigation: readable logo, full-width rows, bigger close button */
	#navigation #navLogo {
		filter: invert(1) brightness(.35);
	}

	#navigateButtonClose {
		padding: 10px;
		top: 6px;
		left: 6px;
	}

	#navigateButtonClose .fa {
		font-size: 26px;
		color: #4b5563;
	}

	#navUlWrapper,
	#navUlWrapper > ul {
		width: 100%;
		float: none;
	}

	#navUlWrapper li > a,
	#navUlWrapper li > span#navSearch {
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 48px;
		padding: 0 24px;
		border-bottom: 1px solid #eef0f2;
		box-sizing: border-box;
	}

	#navUlWrapper li > a > span,
	#navUlWrapper li > span#navSearch {
		font-size: 17px;
	}

	#navUlWrapper li > a > span.c-foreground-textGreen {
		font-size: 15px;
	}

	#navUlWrapper li {
		margin: 0;
		padding: 0;
	}

	#navUlWrapper li:first-child > a {
		border-bottom: 0;
		min-height: 72px;
	}

	/* Checkout stepper must not touch the screen edge */
	.sectionTitle .checkoutSteps {
		padding: 0 12px 0 20px;
	}

	/* Footer links: comfortable spacing to tap */
	#footerMenu .menuItem a,
	#footerLinks a {
		display: inline-block;
		padding: 10px 8px;
	}

	/* Product detail: full-width buy button and description card spacing */
	#productDetail-addToCart {
		min-height: 56px;
	}
}
