/* Наборы по рецептам (23.09.2026): коллаж, значок скидки, старая цена, окно набора с рецептом.
   Цвета, шрифты и радиусы — из токенов витрины (assets/css/tokens.css). */

/* ── карточка в карусели ─────────────────────────────────────────── */
.plvst-photo[data-plv-set-open] {
	cursor: pointer;
}

.plvst-photo--collage {
	background: var(--plv-img-set, #e8e2d4);
}

.plvst-collage {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 2px;
}

.plvst-collage > span {
	background-size: cover;
	background-position: center;
	background-color: var(--plv-surface-2, #f4f1ea);
}

.plvst-collage--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.plvst-collage--2 { grid-template-rows: 1fr; }
.plvst-collage--3 > span:first-child { grid-row: span 2; }

.plvst-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	padding: 3px 9px;
	border-radius: var(--plv-r-pill, 999px);
	background: var(--plv-brand, #00c2e8);
	color: var(--plv-on-brand, #16211c);
	font-family: var(--plv-font-ui, 'Manrope', sans-serif);
	font-size: var(--plv-fs-13, 13px);
	font-weight: 800;
}

.plvst-more {
	display: inline-block;
	margin: -4px 0 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--plv-brand-ink, #00768f);
	font-family: var(--plv-font-ui, 'Manrope', sans-serif);
	font-size: var(--plv-fs-13, 13px);
	font-weight: 700;
	cursor: pointer;
}

.plvst-more::after {
	content: ' →';
}

.plvst-old,
.plvsm-price s {
	font-weight: 600;
	opacity: 0.6;
}

/* ── окно набора ─────────────────────────────────────────────────── */
html.plvsm-open,
html.plvsm-open body {
	overflow: hidden;
}

.plvsm {
	position: fixed;
	inset: 0;
	z-index: 100040;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(22, 33, 28, 0.5);
	font-family: var(--plv-font-ui, 'Manrope', -apple-system, sans-serif);
}

.plvsm[hidden] {
	display: none;
}

.plvsm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	overflow-y: auto;
	border-radius: 22px 22px 0 0;
	background: var(--plv-surface, #fff);
	color: var(--plv-ink, #16211c);
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
	overscroll-behavior: contain;
}

@media (min-width: 700px) {
	.plvsm {
		align-items: center;
		padding: 24px;
	}

	.plvsm-card {
		border-radius: 22px;
	}
}

/* 28.09.2026: «ручка» шторки — окно смахивается вниз */
@media (max-width: 699px) {
	.plvsm-card::before {
		content: '';
		position: sticky;
		top: 0;
		display: block;
		flex: 0 0 auto;
		width: 44px;
		height: 5px;
		margin: 8px auto -13px;
		border-radius: 3px;
		background: rgba(0, 0, 0, 0.18);
		z-index: 4;
	}
}

.plvsm-x {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--plv-ink, #16211c);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.plvsm-photo {
	position: relative;
	flex: 0 0 auto;
	height: 190px;
	background-color: var(--plv-img-set, #e8e2d4);
	background-size: cover;
	background-position: center;
}

.plvsm-photo--collage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 2px;
}

.plvsm-photo--collage > span {
	background-size: cover;
	background-position: center;
}

.plvsm-photo--collage.plvst-collage--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.plvsm-photo--collage.plvst-collage--2 { grid-template-rows: 1fr; }
.plvsm-photo--collage.plvst-collage--3 > span:first-child { grid-row: span 2; }

.plvsm-body {
	padding: 16px 18px 8px;
}

.plvsm-title {
	margin: 0;
	font-family: var(--plv-font-display, 'Literata', Georgia, serif);
	font-size: var(--plv-fs-21, 21px);
	line-height: 1.25;
}

.plvsm-tag {
	margin: 4px 0 0;
	color: var(--plv-text-2, #4a574f);
	font-size: var(--plv-fs-145, 14.5px);
}

.plvsm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 0;
}

.plvsm-chips span {
	padding: 4px 10px;
	border-radius: var(--plv-r-pill, 999px);
	background: var(--plv-teal-tint, #e3eef0);
	color: var(--plv-teal-text, #1e5261);
	font-size: var(--plv-fs-13, 13px);
	font-weight: 700;
}

.plvsm-h {
	margin: 18px 0 8px;
	font-size: var(--plv-fs-15, 15px);
	font-weight: 800;
}

.plvsm-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.plvsm-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px solid var(--plv-line, #eceae3);
}

.plvsm-item:last-child {
	border-bottom: 0;
}

.plvsm-thumb {
	flex: 0 0 40px;
	height: 40px;
	border-radius: 10px;
	background-color: var(--plv-surface-2, #f4f1ea);
	background-size: cover;
	background-position: center;
}

.plvsm-iname {
	flex: 1;
	min-width: 0;
	font-size: var(--plv-fs-145, 14.5px);
	line-height: 1.3;
}

.plvsm-iname small {
	color: var(--plv-text-3, #6e7a72);
	font-size: var(--plv-fs-12, 12px);
}

.plvsm-iname em {
	color: var(--plv-text-3, #6e7a72);
	font-size: var(--plv-fs-12, 12px);
	font-style: normal;
}

.plvsm-why {
	display: block;
	color: #b35c00 !important;
}

.plvsm-iprice {
	flex: 0 0 auto;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.plvsm-item.is-off .plvsm-thumb,
.plvsm-item.is-off .plvsm-iprice {
	opacity: 0.45;
}

.plvsm-item.is-off .plvsm-iname {
	color: var(--plv-text-3, #6e7a72);
}

.plvsm-pantry {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--plv-surface-2, #f4f1ea);
	font-size: var(--plv-fs-135, 13.5px);
}

.plvsm-steps {
	margin: 0;
	padding-left: 22px;
	font-size: var(--plv-fs-145, 14.5px);
	line-height: 1.5;
}

.plvsm-steps li {
	margin-bottom: 6px;
}

.plvsm-note {
	margin: 12px 0 0;
	color: var(--plv-text-3, #6e7a72);
	font-size: var(--plv-fs-12, 12px);
}

.plvsm-foot {
	position: sticky;
	bottom: 0;
	padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(to top, var(--plv-surface, #fff) 75%, rgba(255, 255, 255, 0));
}

.plvsm-add {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	height: 52px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--plv-r-13, 13px);
	background: var(--plv-brand, #00c2e8);
	color: var(--plv-on-brand, #16211c);
	font-family: inherit;
	font-size: var(--plv-fs-155, 15.5px);
	font-weight: 800;
	cursor: pointer;
}

.plvsm-price {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
