/*
 * Featured season outside its own page (includes/theme/seasons/promo.php, assets/js/season-promo.js):
 * .ssn-bar (bar above the header, every page), .ssn-hb (homepage banner above "Hit týždňa") and the
 * extras of the seasonal menu item (.mm-ico icon, .mm-badge badge; colours in megamenu.css).
 * Colours from the season palette: --season-* set inline on .ssn-bar / .ssn-hb, defaults here
 * (Mobilky purple). The green of "Do košíka" is never used here.
 */

.ssn-bar,
.ssn-hb {
	--season-main: var(--primary);
	--season-accent: var(--nd-c-sale, #ea7e1e);
	--season-bg: var(--primary-ultra-dark);
	--season-bg-dark: #0d0712;
	--season-on-dark: #fff;
}

/* Hidden by the script (season over, bar closed); display rules below must not win. */
.ssn-bar[hidden],
.ssn-hb[hidden],
.mm-item[hidden],
.mm-pane[hidden],
.mm-acc__sec[hidden],
.mm-acc__head[hidden],
.ssn-bar [hidden],
.ssn-hb [hidden] {
	display: none !important;
}

/* ================================================================ Bar above the header */
.ssn-bar {
	background: linear-gradient(90deg, var(--season-bg-dark) 0%, var(--season-bg) 50%, var(--season-bg-dark) 100%);
	color: var(--season-on-dark);
}

.ssn-bar__in {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--nd-sp-8, 8px);
	min-height: 40px;
}

.ssn-bar__link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	min-width: 0;
	padding: 6px 0;
	color: var(--season-on-dark) !important;
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none !important;
}

.ssn-bar__text {
	overflow: hidden;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssn-bar__left {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: baseline;
	gap: 6px;
	font-size: 13px;
	opacity: 0.92;
}

.ssn-bar__clock {
	color: var(--season-accent);
	font-size: 14px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.ssn-bar__go {
	flex: 0 0 auto;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--season-accent);
	color: var(--season-on-dark);
	font-size: 13px;
	font-weight: 700;
	transition: filter 0.15s;
}

.ssn-bar__link:hover .ssn-bar__go {
	filter: brightness(1.08);
}

.ssn-bar__x {
	display: grid;
	flex: 0 0 32px;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--season-on-dark);
	cursor: pointer;
	opacity: 0.75;
}

.ssn-bar__x:hover,
.ssn-bar__x:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	opacity: 1;
}

@media (max-width: 720px) {
	.ssn-bar__in {
		padding-right: 4px;
	}

	.ssn-bar__link {
		justify-content: flex-start;
		font-size: 13px;
	}

	.ssn-bar__left-l,
	.ssn-bar__go {
		display: none;
	}
}

/* ================================================================ Homepage banner */
.ssn-hb {
	padding-top: var(--nd-home-sec-pt, 32px);
}

.ssn-hb > .wa-container {
	display: block;
}

.ssn-hb__box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 20px;
	overflow: hidden;
	padding: 28px 24px;
	border-radius: var(--nd-radius, 12px);
	background:
		radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--season-accent) 28%, transparent) 0%, transparent 60%),
		linear-gradient(135deg, var(--season-bg) 0%, var(--season-bg-dark) 100%);
	color: var(--season-on-dark);
}

.ssn-hb__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.ssn-hb__kicker {
	margin: 0;
	color: var(--season-accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ssn-hb__title {
	margin: 0;
	color: var(--season-on-dark);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 800;
	line-height: 1.02;
	text-transform: uppercase;
}

.ssn-hb__title span {
	color: var(--season-accent);
}

.ssn-hb__text {
	max-width: 56ch;
	margin: 0;
	font-size: 16px;
	opacity: 0.9;
}

.ssn-hb__left {
	margin: 0;
	font-size: 14px;
}

.ssn-hb__left time {
	color: var(--season-accent);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.ssn-hb__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	padding: 12px 22px;
	border-radius: var(--nd-radius-sm, 8px);
	background: var(--season-accent);
	color: var(--season-on-dark) !important;
	font-weight: 800;
	text-decoration: none !important;
	transition: filter 0.15s;
}

.ssn-hb__btn:hover {
	filter: brightness(1.08);
}

/* Whole banner clickable through the button. */
.ssn-hb__btn::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ssn-hb__img img {
	display: block;
	width: 100%;
	max-height: 260px;
	object-fit: contain;
}

/* ---- Offer on the right (no own image): the tile effect of the season page – big number, two tilted
   photos running over the bottom right edge, a strip with the product the number belongs to. ---- */
.ssn-hb__box[data-mark]::before {
	content: attr(data-mark);
	position: absolute;
	right: -10px;
	bottom: -48px;
	color: currentColor;
	font-size: 240px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.06em;
	opacity: 0.05;
	pointer-events: none;
}

.ssn-hb__offer {
	position: relative;
	align-self: stretch;
	min-height: 230px;
	margin: 0 -24px -28px;
}

.ssn-hb__big {
	position: relative;
	z-index: 2;
	margin: 0 24px;
	color: var(--season-accent);
	font-size: 44px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.ssn-hb__big small {
	font-size: 0.5em;
	font-weight: 700;
	letter-spacing: 0;
}

.ssn-hb__imgs {
	position: absolute;
	right: 4px;
	bottom: -26px;
	z-index: 1;
	width: 66%;
	height: 92%;
}

.ssn-hb__imgs img {
	position: absolute;
	bottom: 0;
	width: 66%;
	height: 88%;
	padding: 10px;
	border-radius: var(--radius-xxl, 24px);
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
	object-fit: contain;
	transition: transform 0.3s;
}

.ssn-hb__imgs img:first-child {
	right: 34%;
	opacity: 0.92;
	transform: rotate(-10deg) scale(0.86);
	transform-origin: bottom right;
}

.ssn-hb__imgs img:last-child {
	right: 6%;
	opacity: 1;
	transform: rotate(6deg);
	transform-origin: bottom left;
}

.ssn-hb__box:hover .ssn-hb__imgs img:last-child {
	transform: rotate(2deg) translateY(-8px) scale(1.04);
}

.ssn-hb__box:hover .ssn-hb__imgs img:first-child:not(:only-child) {
	transform: rotate(-14deg) scale(0.86) translateX(-8px);
}

/* Above the whole-banner link of the button (.ssn-hb__btn::after). */
.ssn-hb__strip {
	position: absolute;
	right: 14px;
	bottom: 14px;
	left: 14px;
	z-index: 3;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 8px;
	padding: 5px 12px 5px 5px;
	border-radius: var(--nd-radius-sm, 8px);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	color: var(--season-bg-dark) !important;
	font-size: 14px;
	text-decoration: none !important;
	transition: transform 0.15s;
}

.ssn-hb__strip:hover {
	transform: translateY(-2px);
}

.ssn-hb__strip:focus-visible {
	outline: 3px solid var(--season-accent);
	outline-offset: 2px;
}

.ssn-hb__strip img {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	background: #fff;
	object-fit: contain;
}

.ssn-hb__strip-n {
	overflow: hidden;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ssn-hb__strip-p {
	white-space: nowrap;
}

.ssn-hb__strip-p b {
	color: var(--season-main);
	font-size: 16px;
	font-weight: 900;
}

.ssn-hb__strip-p del {
	color: #8a8590;
	font-size: 12px;
}

.ssn-hb__strip-go {
	color: var(--season-main);
	font-weight: 900;
}

@media (min-width: 721px) {
	.ssn-hb__box {
		padding: 36px 40px;
	}

	.ssn-hb--img .ssn-hb__box {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}

	.ssn-hb--offer .ssn-hb__box {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}

	.ssn-hb__offer {
		min-height: 300px;
		margin: -36px -40px -36px 0;
		padding-top: 36px;
	}

	.ssn-hb__big {
		margin: 0;
		font-size: 64px;
	}

	.ssn-hb__imgs {
		right: 24px;
		width: 70%;
		height: 100%;
	}

	.ssn-hb__strip {
		right: 24px;
		bottom: 24px;
		left: 0;
	}
}

/* ================================================================ Seasonal menu item extras */
.mm-ico {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}

.mm-badge {
	flex: 0 0 auto;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--mm-season-accent, var(--nd-c-sale, #ea7e1e));
	color: var(--mm-season-on, #fff);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.3;
}

/* Accordion heading: icon, text and badge together on the left, the plus stays right. */
.mm-acc__head .mm-ico,
.mm-acc__head .mm-badge {
	margin-right: 8px;
}

.mm-acc__txt {
	margin-right: 8px;
}

.mm-acc__head > i {
	margin-left: auto;
}
