/*
 * "Hit týždňa" (assets/js/weekly-deal.js, includes/theme/inc/weekly-deal.php):
 *   - the sticker icon in front of the label (.wdeal-icon, used everywhere),
 *   - the row in the phone buy box, under the accessories; it reuses .service from the product
 *     page styles, here only the red accent of the deal,
 *   - the strip above the totals of the add-to-cart popup (.wdeal-atc; the button is .atc__add
 *     from added-to-cart.css).
 * Side cart card: minicart.css. The homepage box (.wdeal-home) is below: the homepage and the "Hit týždňa"
 * block of season pages (includes/theme/seasons/blocks/hit.php) print the same markup.
 */

.wdeal-icon {
	display: inline-block;
	flex: none;
	width: 1.3em;
	height: 1.3em;
	margin-right: 0.3em;
	vertical-align: -0.3em;
	transform: rotate(-12deg);
}
.wdeal-pdp {
	--wdeal: #e8352b;
	--wdeal-soft: #fff1ef;
	margin-top: 8px;
}

.amtc-npp .wdeal-pdp .wdeal-pdp__row {
	border-color: rgba(232, 53, 43, 0.45);
	background: var(--wdeal-soft);
}

.amtc-npp .wdeal-pdp .wdeal-pdp__row.on {
	border-color: var(--wdeal);
}

.amtc-npp .wdeal-pdp .wdeal-pdp__row.on .cb {
	border-color: var(--wdeal);
	background: var(--wdeal);
}

.wdeal-pdp__img {
	position: relative;
	flex: 0 0 44px;
}

.wdeal-pdp__img img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background: #fff;
	object-fit: contain;
}

.wdeal-pdp__pct {
	position: absolute;
	bottom: -6px;
	left: -6px;
	padding: 0 4px;
	border-radius: 4px;
	background: var(--wdeal);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 16px;
	white-space: nowrap;
}

.wdeal-pdp__tag {
	display: block;
	color: var(--wdeal);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.wdeal-pdp__left {
	letter-spacing: 0;
	text-transform: none;
	font-variant-numeric: tabular-nums;
}

.amtc-npp .wdeal-pdp .wdeal-pdp__price {
	color: var(--wdeal);
}

/* ------------------------------------------------------------ popup „Produkt bol pridaný“ */
.wdeal-atc {
	--wdeal: #e8352b;
	--wdeal-dark: #b8231b;
	--wdeal-soft: #fff1ef;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px;
	border-top: 1px solid rgba(232, 53, 43, 0.25);
	background: var(--wdeal-soft);
	font-size: 13px;
	line-height: 1.3;
}

.wdeal-atc__img {
	position: relative;
	flex: 0 0 48px;
}

.wdeal-atc__img img {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #fff;
	object-fit: contain;
}

.wdeal-atc__pct {
	position: absolute;
	bottom: -6px;
	left: -6px;
	padding: 0 4px;
	border-radius: 4px;
	background: var(--wdeal);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 16px;
	white-space: nowrap;
}

.wdeal-atc__txt {
	flex: 1;
	min-width: 0;
}

.wdeal-atc__tag {
	display: block;
	color: var(--wdeal);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wdeal-atc__left {
	color: var(--wdeal-dark);
	letter-spacing: 0;
	text-transform: none;
	font-variant-numeric: tabular-nums;
}

.wdeal-atc__name {
	display: block;
	overflow: hidden;
	color: inherit;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-decoration: none;
}

.wdeal-atc__name:hover {
	text-decoration: underline;
}

.wdeal-atc__note {
	display: block;
	overflow: hidden;
	color: var(--nd-c-muted, #6b6b6b);
	font-size: 12px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.wdeal-atc__prices {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	white-space: nowrap;
}

.wdeal-atc__prices b {
	color: var(--wdeal);
	font-size: 16px;
	font-weight: 800;
}

.wdeal-atc__prices del {
	color: var(--nd-c-muted, #6b6b6b);
	font-size: 12px;
}

.atc .wdeal-atc__add:not(.is-done) {
	border-color: var(--wdeal);
	background: var(--wdeal);
	color: #fff;
}

.atc .wdeal-atc__add:not(.is-done):hover {
	border-color: var(--wdeal-dark);
	background: var(--wdeal-dark);
}

/* Phone: one row (image, name, price, small button), so the popup keeps room for its list. */
@media (max-width: 520px) {
	.wdeal-atc {
		gap: 10px;
		padding: 8px 12px;
	}

	.wdeal-atc__img {
		flex-basis: 40px;
	}

	.wdeal-atc__img img {
		width: 40px;
		height: 40px;
	}

	.wdeal-atc__note {
		display: none;
	}

	.wdeal-atc__prices b {
		font-size: 14px;
	}

	.atc .wdeal-atc__add {
		padding: 6px 10px;
	}
}

/* ---- "Hit týždňa" box (inc/weekly-deal.php, assets/js/weekly-deal.js) ----
   Warm red of its own, apart from the purple brand and the green "Do košíka". */
/* Two classes: beats .home-sec padding from pages/hlavna-stranka.css, which loads after components. */
.home-sec.wdeal-home {
	--wdeal: #e8352b;
	--wdeal-dark: #b8231b;
	padding-bottom: 0;
}

.wdeal-home__box {
	display: grid;
	gap: var(--nd-sp-12);
	padding: var(--nd-sp-16, 16px);
	border-radius: var(--nd-radius);
	background:
		radial-gradient(circle at 18% 40%, rgba(232, 53, 43, 0.14), transparent 55%),
		linear-gradient(120deg, #fff6f4, var(--nd-c-surface));
	box-shadow: inset 0 0 0 2px rgba(232, 53, 43, 0.25);
}

.wdeal-home__img {
	position: relative;
	display: block;
	width: 100%;
	max-width: 260px;
	margin-inline: auto;
	border-radius: var(--nd-radius);
	background: var(--nd-c-surface);
}

.wdeal-home__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	padding: var(--nd-sp-16, 16px);
}

.wdeal-home__pct {
	position: absolute;
	top: var(--nd-sp-12);
	left: var(--nd-sp-12);
	padding: var(--nd-sp-4) var(--nd-sp-10);
	border-radius: var(--nd-radius-m);
	background: var(--wdeal);
	color: var(--white);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.wdeal-home__tag {
	display: inline-flex;
	align-items: center;
	padding: var(--nd-sp-3) var(--nd-sp-10);
	border-radius: 999px;
	background: var(--wdeal);
	color: var(--white);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wdeal-home__name {
	margin: var(--nd-sp-12) 0 var(--nd-sp-8);
	font-size: clamp(20px, 2.6vw, 32px);
	line-height: 1.15;
}

.wdeal-home__name a {
	color: inherit;
	text-decoration: none;
}

.wdeal-home__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--nd-sp-4) var(--nd-sp-10);
}

.wdeal-home__prices b {
	color: var(--wdeal);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.wdeal-home__prices del {
	color: var(--nd-c-muted);
	font-size: 16px;
}

.wdeal-home__save {
	margin: var(--nd-sp-8) 0 var(--nd-sp-14);
}

.wdeal-home__clock {
	display: flex;
	gap: var(--nd-sp-8);
}

.wdeal-home__clock > span {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	max-width: 64px;
	padding: var(--nd-sp-6) var(--nd-sp-4);
	border-radius: var(--nd-radius-m);
	background: #1d1d1f;
	color: rgba(255, 255, 255, 0.7);
	font-size: 11px;
	line-height: 1.2;
}

.wdeal-home__clock b {
	color: var(--white);
	font-size: 22px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.1;
}

.wdeal-home__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--nd-sp-12) var(--nd-sp-16, 16px);
	margin-top: var(--nd-sp-16, 16px);
}

.wdeal-home__buy {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: var(--nd-radius-btn);
	background: var(--nd-c-cta);
	color: var(--nd-c-on-cta);
	font: inherit;
	font-weight: var(--nd-fw-bold);
	cursor: pointer;
	transition: background 0.15s;
}

/* Do košíka = zelená ako v kartách produktov (zelená patrí len tlačidlám košíka). */
.wdeal-home__buy:hover,
.wdeal-home__buy:focus-visible {
	background: var(--nd-c-cta-hover);
}

.wdeal-home__more {
	font-weight: var(--nd-fw-bold);
	text-decoration: none;
}

@media (min-width: 721px) {
	.wdeal-home__box {
		grid-template-columns: minmax(220px, 380px) 1fr;
		align-items: center;
		gap: 32px;
		padding: 28px 36px;
	}

	.wdeal-home__img {
		max-width: none;
	}

	.wdeal-home__pct {
		font-size: 22px;
	}

	.wdeal-home__prices b {
		font-size: 34px;
	}

	.wdeal-home__prices del {
		font-size: 18px;
	}

	.wdeal-home__clock > span {
		flex: 0 0 54px;
	}

	.wdeal-home__buy {
		flex: 0 0 auto;
	}
}
