
/* Editorial category mosaic */
.fyd-v2-categories {
	background: var(--fyd-surface);
}

.fyd-v2-category-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 36px;
}

.fyd-v2-category {
	position: relative;
	container-name: fyd-v2-category-card;
	container-type: inline-size;
	min-height: 330px;
	overflow: hidden;
	border-radius: 18px;
	background: var(--fyd-rose);
}

.fyd-v2-category--1 {
	grid-column: span 7;
	min-height: 560px;
}

.fyd-v2-category--2 {
	grid-column: span 5;
	min-height: 560px;
}

.fyd-v2-category--3,
.fyd-v2-category--4,
.fyd-v2-category--5,
.fyd-v2-category--6 {
	grid-column: span 3;
}

.fyd-v2-category img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fyd-v2-category__shade {
	position: absolute;
	inset: 38% 0 0;
	background: linear-gradient(180deg, transparent, rgba(25, 17, 22, 0.68));
}

.fyd-v2-category__content {
	position: absolute;
	right: 22px;
	bottom: 20px;
	left: 22px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 3px 14px;
	color: #fff;
}

.fyd-v2-category__content small {
	grid-column: 1 / -1;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.88);
}

.fyd-v2-category__content strong {
	min-width: 0;
	font-family: var(--fyd-serif);
	font-size: clamp(23px, 2.4vw, 38px);
	font-weight: 400;
	line-height: 1.05;
}

.fyd-v2-category__content i {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 0.5px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	font-size: 16px;
	font-style: normal;
	transition: transform 180ms ease, background-color 180ms ease;
}

.fyd-v2-category:hover img {
	transform: scale(1.025);
}

.fyd-v2-category:hover .fyd-v2-category__content i {
	transform: translate(3px, -3px);
	background: rgba(255, 255, 255, 0.14);
}

/* Product edit */
.fyd-v2-products-section--rose {
	background: color-mix(in srgb, var(--fyd-rose) 42%, var(--fyd-porcelain));
}

.fyd-v2-products-section--clearance {
	background:
		radial-gradient(circle at 92% 0%, rgba(167, 86, 116, 0.2), transparent 34%),
		color-mix(in srgb, var(--fyd-rose) 64%, var(--fyd-porcelain));
	border-block: 0.5px solid rgba(141, 49, 85, 0.16);
}

.fyd-v2-clearance-intro {
	max-width: 560px;
	margin-top: 14px;
	color: var(--fyd-ink-soft);
	font-size: 13px;
	line-height: 1.6;
}

.fyd-v2-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(24px, 2.8vw, 40px);
}

.fyd-v2-product {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

/*
 * Фото не редактируется — работает только оправа вокруг него:
 *   1. плашка залита цветом краёв самого снимка (см. plateTint в контроллере),
 *      поэтому граница «студийный кадр в белом прямоугольнике» растворяется;
 *   2. вместо рамки — тень: карточка приподнята над фоном секции.
 * Бокс квадратный: снимки поставщика сняты 1:1, вертикальный бокс добавлял
 * белые поля сверху и снизу.
 */
.fyd-v2-product__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	background: var(--fyd-surface);
	box-shadow: 0 2px 4px rgba(36, 28, 33, 0.07), 0 16px 30px -12px rgba(36, 28, 33, 0.3);
	transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* на наведении карточка поднимается ещё немного — тень растёт вместе с ней */
.fyd-v2-product:hover .fyd-v2-product__media {
	transform: translateY(-5px);
	box-shadow: 0 4px 8px rgba(36, 28, 33, 0.08), 0 26px 46px -14px rgba(36, 28, 33, 0.34);
}

.fyd-v2-product__media > a {
	display: block;
	width: 100%;
	height: 100%;
}

/* фото занимает плашку целиком: полей нет, обрезки тоже — кадр 1:1 в боксе 1:1 */
.fyd-v2-product__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fyd-v2-product:hover .fyd-v2-product__media img {
	transform: scale(1.025);
}

.fyd-v2-product__badge {
	position: absolute;
	top: 12px;
	left: 14px;
	z-index: 2;
	padding: 0;
	background: transparent;
	color: var(--fyd-berry-dark);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.fyd-v2-product__wish {
	position: absolute;
	top: 4px;
	right: 6px;
	z-index: 2;
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--fyd-ink-soft) !important;
	font-size: 20px !important;
	line-height: 1 !important;
	box-shadow: none !important;
	/* в покое скрыт: у обтравленного товара угол медиа-бокса пустой,
	   и одинокая иконка там висит в воздухе */
	opacity: 0;
	transition: color 180ms ease, opacity 180ms ease !important;
}

.fyd-v2-product:hover .fyd-v2-product__wish,
.fyd-v2-product__wish:focus-visible {
	opacity: 1;
}

.fyd-v2-product__wish:hover {
	color: var(--fyd-berry) !important;
	opacity: 1;
}

.fyd-v2-product__wish.is-selected,
.fyd-v2-product__wish.is-selected:hover {
	background: transparent !important;
	color: var(--fyd-berry) !important;
	opacity: 1;
}

.fyd-v2-product__wish.is-loading,
.fyd-v2-product__add.is-loading {
	cursor: wait !important;
	opacity: 0.64;
	transform: none !important;
}

.fyd-v2-product__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: 18px;
}

.fyd-v2-product__brand {
	margin-bottom: 7px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fyd-berry-dark);
}

.fyd-v2-product h3 {
	font-family: var(--fyd-serif);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--fyd-ink);
}

/* комплектация вынесена из названия: «(1 syringe x 2ml)» ломало переносы */
.fyd-v2-product__spec {
	margin-top: 5px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.01em;
	color: var(--fyd-ink-soft);
}

.fyd-v2-product__availability {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 9px;
}

.fyd-v2-product__expiry,
.fyd-v2-product__stock {
	width: fit-content;
	padding: 5px 8px;
	border: 0.5px solid rgba(141, 49, 85, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.54);
	color: var(--fyd-berry-dark);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.045em;
	line-height: 1;
}

.fyd-v2-product__stock {
	background: var(--fyd-berry-dark);
	color: var(--fyd-porcelain);
}

.fyd-v2-product h3 a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.fyd-v2-product h3 a:hover {
	color: var(--fyd-berry);
}

/* без разделителя: воздух вместо линейки — линейка читалась как прайс-лист */
.fyd-v2-product__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
}

.fyd-v2-product__price {
	display: flex !important;
	min-width: 0;
	flex: 1 1 auto;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 4px 8px;
	margin: 0 !important;
	font-family: var(--fyd-sans) !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 20px !important;
	font-variant-numeric: tabular-nums;
	color: var(--fyd-ink) !important;
	white-space: nowrap;
}

.fyd-v2-product__price .price-old {
	font-size: 12px;
	font-weight: 400;
	color: var(--fyd-ink-soft);
	text-decoration: line-through;
}

.fyd-v2-product__price .price-new {
	color: var(--fyd-berry);
}

/* Compact outlined commerce CTA keeps the price primary while making the
 * action unambiguous and stable across cards. */
.fyd-v2-product__add {
	display: inline-flex !important;
	width: 116px;
	min-width: 116px;
	height: 38px;
	min-height: 38px;
	flex: 0 0 116px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 14px !important;
	border: 1px solid var(--fyd-berry) !important;
	border-radius: 6px !important;
	background: transparent !important;
	color: var(--fyd-berry-dark) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	line-height: 16px !important;
	text-transform: none;
	white-space: nowrap;
	box-shadow: none !important;
	transform: none !important;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease !important;
}

.fyd-v2-product__add-label {
	border: 0;
	padding: 0;
}

.fyd-v2-product__add-icon {
	display: inline-flex;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	align-items: center;
	justify-content: center;
}

.fyd-v2-product__add-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fyd-v2-product__add:not(:disabled):hover {
	border-color: var(--fyd-berry) !important;
	background: var(--fyd-berry) !important;
	color: #fff !important;
	transform: none !important;
}

.fyd-v2-product__add:focus-visible {
	outline: 2px solid var(--fyd-berry) !important;
	outline-offset: 3px;
	box-shadow: none !important;
}

.fyd-v2-product__add:not(:disabled):active {
	border-color: var(--fyd-berry-dark) !important;
	background: var(--fyd-berry-dark) !important;
	color: #fff !important;
	transform: none !important;
}

.fyd-v2-product__add.is-disabled {
	color: var(--fyd-ink-soft) !important;
	border-color: var(--fyd-line) !important;
	letter-spacing: 0.02em;
	opacity: 0.7;
}

/* Trust story */
.fyd-v2-story {
	background: var(--fyd-surface);
}

.fyd-v2-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
	align-items: stretch;
	gap: clamp(36px, 6vw, 88px);
}

.fyd-v2-story__image {
	position: relative;
	min-height: 600px;
	overflow: hidden;
	border-radius: 18px;
}

.fyd-v2-story__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fyd-v2-story__image > span {
	position: absolute;
	bottom: 20px;
	left: 20px;
	padding: 9px 13px;
	border-radius: 999px;
	background: rgba(255, 252, 250, 0.88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.fyd-v2-story__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding-block: 32px;
}

.fyd-v2-story__copy h2 {
	font-size: clamp(48px, 4.9vw, 72px);
	line-height: 1.04;
}

.fyd-v2-story__copy > p {
	margin-top: 28px;
	color: var(--fyd-ink-soft);
	line-height: 1.8;
}

.fyd-v2-story__copy ul {
	width: 100%;
	margin: 30px 0 34px;
	padding: 0;
	list-style: none;
}

.fyd-v2-story__copy li {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-block: 13px;
	border-top: 1px solid var(--fyd-line);
	font-size: 13px;
	font-weight: 600;
}

.fyd-v2-story__copy li:last-child {
	border-bottom: 1px solid var(--fyd-line);
}

.fyd-v2-story__copy li span {
	font-family: var(--fyd-serif);
	font-size: 15px;
	color: var(--fyd-berry);
}

/* Brands */
.fyd-v2-brands {
	background: var(--fyd-ink);
	color: #fff;
}

.fyd-v2-brands .fyd-v2-eyebrow,
.fyd-v2-brands .fyd-v2-text-link {
	color: var(--fyd-rose);
}

.fyd-v2-brands h2 {
	color: #fff;
}

.fyd-v2-brands .fyd-v2-text-link {
	border-color: rgba(255, 255, 255, 0.28);
}

.fyd-v2-brand-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 0.5px solid rgba(255, 255, 255, 0.3);
	border-left: 0.5px solid rgba(255, 255, 255, 0.3);
}

.fyd-v2-brand {
	position: relative;
	display: flex;
	min-height: 152px;
	align-items: center;
	justify-content: center;
	padding: 24px;
	border-right: 0.5px solid rgba(255, 255, 255, 0.3);
	border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
	background: transparent;
	transition: background-color 220ms ease;
}

.fyd-v2-brand:hover {
	background: rgba(216, 188, 187, 0.1);
}

.fyd-v2-brand img {
	max-width: 76%;
	max-height: 72px;
	filter: grayscale(1) invert(1) contrast(1.08);
	mix-blend-mode: screen;
	opacity: 0.82;
	transition: opacity 220ms ease, transform 220ms ease;
}

.fyd-v2-brand:nth-child(2) img {
	max-width: 68%;
}

.fyd-v2-brand:nth-child(3) img,
.fyd-v2-brand:nth-child(7) img,
.fyd-v2-brand:nth-child(8) img {
	max-width: 90%;
}

.fyd-v2-brand:hover img {
	opacity: 1;
	transform: scale(1.03);
}

.fyd-v2-brand > strong {
	font-family: var(--fyd-serif);
	font-size: 25px;
	font-weight: 400;
}

.fyd-v2-brand > span {
	position: absolute;
	right: 12px;
	bottom: 9px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

/* Journal */
.fyd-v2-journal {
	background: color-mix(in srgb, var(--fyd-rose) 24%, var(--fyd-surface));
}

.fyd-v2-journal__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 34px);
}

.fyd-v2-post__image {
	position: relative;
	display: block;
	overflow: hidden;
	/* обложки блога свёрстаны в 16:9 вместе с заголовком внутри кадра */
	aspect-ratio: 16 / 9;
	border: 0.5px solid rgba(36, 28, 33, 0.22);
	border-radius: 2px;
	background: linear-gradient(135deg, var(--fyd-rose), var(--fyd-berry));
	box-shadow: 0 18px 42px rgba(36, 28, 33, 0.12);
}

.fyd-v2-post__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 550ms ease;
}

.fyd-v2-post:hover .fyd-v2-post__image img {
	transform: scale(1.025);
}

.fyd-v2-post__image.is-placeholder {
	background:
		linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 38%),
		var(--fyd-berry);
}

.fyd-v2-post:nth-child(2n) .fyd-v2-post__image.is-placeholder {
	background:
		linear-gradient(rgba(255, 255, 255, 0.08), transparent 42%),
		var(--fyd-ink);
}

.fyd-v2-post:nth-child(3n) .fyd-v2-post__image.is-placeholder {
	background:
		linear-gradient(rgba(255, 255, 255, 0.18), transparent 45%),
		#72545e;
}

.fyd-v2-post__cover {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: clamp(22px, 2.3vw, 34px);
	color: #fff;
}

.fyd-v2-post__cover::before,
.fyd-v2-post__cover::after {
	content: "";
	position: absolute;
	right: clamp(22px, 2.3vw, 34px);
	left: clamp(22px, 2.3vw, 34px);
	height: 0.5px;
	background: rgba(255, 255, 255, 0.72);
}

.fyd-v2-post__cover::before {
	top: 46px;
}

.fyd-v2-post__cover::after {
	bottom: 42px;
}

.fyd-v2-post__cover small {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.fyd-v2-post__cover strong {
	margin-block: auto;
	font-family: var(--fyd-serif);
	font-size: clamp(20px, 1.9vw, 28px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.fyd-v2-post__cover i {
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.fyd-v2-post__body {
	padding-top: 20px;
}

.fyd-v2-post__body > small {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	color: var(--fyd-berry-dark);
}

.fyd-v2-post h3 {
	margin-top: 8px;
	font-family: var(--fyd-serif);
	font-size: clamp(24px, 2.1vw, 31px);
	font-weight: 400;
	line-height: 1.12;
}

.fyd-v2-post h3 a:hover {
	color: var(--fyd-berry);
}

.fyd-v2-post p {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 13px;
	color: var(--fyd-ink-soft);
	font-size: 13px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.fyd-v2-post__link {
	display: inline-flex;
	gap: 8px;
	margin-top: 16px;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--fyd-line);
	font-size: 11px;
	font-weight: 700;
}

.fyd-v2-post__link:hover {
	color: var(--fyd-berry);
	border-color: var(--fyd-berry);
}
