.profile-product-grid {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
}

.profile-product-card {
	--profile-product-accent: #8c6cff;
	--profile-product-border-color: rgba(140, 108, 255, .28);
	--profile-product-hover-duration: 200ms;
	--profile-product-top-radius: 4px;
	position: relative;
	isolation: isolate;
	display: flex;
	flex: 0 1 calc((100% - 32px) / 3);
	min-width: 0;
	flex-direction: column;
	border: 1px solid var(--profile-product-border-color);
	border-radius: var(--profile-product-top-radius) var(--profile-product-top-radius) 0 0;
	overflow: visible;
	background: rgba(15, 18, 36, .72);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .28), 0 0 10px rgba(140, 108, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .028);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	transition:
		border-color var(--profile-product-hover-duration) ease-out,
		background-color var(--profile-product-hover-duration) ease-out,
		box-shadow var(--profile-product-hover-duration) ease-out,
		opacity var(--profile-product-hover-duration) ease-out;
}

.profile-product-card::before {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	height: 2px;
	background: var(--profile-product-accent);
	box-shadow: 0 0 5px rgba(140, 108, 255, .5);
	content: "";
	pointer-events: none;
	transition: box-shadow var(--profile-product-hover-duration) ease-out;
}

.profile-product-card::after {
	position: absolute;
	inset: -1px;
	z-index: 3;
	border: 1px solid var(--profile-product-border-color);
	border-radius: calc(var(--profile-product-top-radius) + 1px) calc(var(--profile-product-top-radius) + 1px) 0 0;
	content: "";
	pointer-events: none;
	transition: border-color var(--profile-product-hover-duration) ease-out;
}

.profile-product-card:has(.profile-product-card__media:hover),
.profile-product-card:has(.profile-product-card__media:focus-visible),
.profile-product-card:has(h3 a:hover),
.profile-product-card:has(h3 a:focus-visible),
.profile-product-card:has(.profile-product-like:hover),
.profile-product-card:has(.profile-product-like:focus-visible) {
	--profile-product-border-color: rgba(140, 108, 255, .7);
	background-color: rgba(18, 21, 42, .78);
	box-shadow: 0 20px 48px rgba(0, 0, 0, .34), 0 0 18px rgba(140, 108, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.profile-product-card:has(.profile-product-card__media:hover)::before,
.profile-product-card:has(.profile-product-card__media:focus-visible)::before,
.profile-product-card:has(h3 a:hover)::before,
.profile-product-card:has(h3 a:focus-visible)::before,
.profile-product-card:has(.profile-product-like:hover)::before,
.profile-product-card:has(.profile-product-like:focus-visible)::before {
	box-shadow: 0 0 9px rgba(140, 108, 255, .72);
}

.profile-product-card[hidden] {
	display: none;
}

.profile-product-card__preview {
	position: relative;
	aspect-ratio: 1 / 1;
	min-width: 0;
	border-radius: var(--profile-product-top-radius) var(--profile-product-top-radius) 0 0;
}

.profile-product-card__media {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: var(--profile-product-top-radius) var(--profile-product-top-radius) 0 0;
	background: #090c18;
}

.profile-product-card__media::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(5, 7, 18, .42);
	content: "";
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--profile-product-hover-duration) ease-out;
}

.profile-product-card__media::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	height: 1px;
	background: var(--profile-product-border-color);
	content: "";
	pointer-events: none;
	transition: background-color var(--profile-product-hover-duration) ease-out;
}

.profile-product-card__media-label {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .14em;
	opacity: 0;
	pointer-events: none;
	text-shadow: 0 0 10px rgba(140, 108, 255, .72);
	text-transform: uppercase;
	transition: opacity var(--profile-product-hover-duration) ease-out;
}

.profile-product-card__media-label svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.profile-product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	backface-visibility: hidden;
	object-fit: cover;
	transform: translateZ(0) scale(1);
	transform-origin: center;
	will-change: filter, transform;
	transition:
		filter var(--profile-product-hover-duration) ease-out,
		transform var(--profile-product-hover-duration) ease-out;
}

.profile-product-card__media:hover::before,
.profile-product-card__media:focus-visible::before,
.profile-product-card__media:hover .profile-product-card__media-label,
.profile-product-card__media:focus-visible .profile-product-card__media-label {
	opacity: 1;
}

.profile-product-card__media:hover img,
.profile-product-card__media:focus-visible img {
	filter: blur(3px) brightness(.56);
	transform: translateZ(0) scale(1.010);
}

.profile-product-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: rgba(245, 247, 255, .2);
	background: radial-gradient(circle, rgba(132, 101, 255, .2), transparent 64%);
	font-size: 86px;
}

.profile-product-card__badges {
	position: absolute;
	top: -3px;
	right: 10px;
	left: 10px;
	z-index: 5;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}

.profile-product-badge {
	--profile-product-badge-color: #8c6cff;
	--profile-product-badge-rgb: 140, 108, 255;
	--profile-product-badge-background: rgba(18, 13, 38, .68);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 32px;
	padding: 0 10px;
	border: 1px solid rgba(var(--profile-product-badge-rgb), .58);
	border-radius: 0;
	overflow: visible;
	color: #ffffff;
	background: var(--profile-product-badge-background);
	box-shadow: 0 0 11px rgba(var(--profile-product-badge-rgb), .12);
	text-shadow: 0 1px 4px rgba(0, 0, 0, .72), 0 0 5px rgba(255, 255, 255, .16);
	backdrop-filter: blur(14px) saturate(130%);
	-webkit-backdrop-filter: blur(14px) saturate(130%);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .07em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.profile-product-badge > span {
	display: block;
	line-height: 1;
}

.profile-product-badge::before {
	position: absolute;
	top: -1px;
	right: -1px;
	bottom: -1px;
	left: auto;
	z-index: 2;
	width: 3px;
	height: auto;
	background: var(--profile-product-badge-color);
	box-shadow: 0 0 6px rgba(var(--profile-product-badge-rgb), .58);
	content: "";
}

.profile-product-badge svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .72));
}

.profile-product-badge--sale {
	--profile-product-badge-color: #ff4555;
	--profile-product-badge-rgb: 255, 69, 85;
	--profile-product-badge-background: rgba(35, 9, 14, .68);
	margin-right: auto;
}

.profile-product-badge--left::before {
	right: auto;
	left: -1px;
}

/* Shared side-mounted badges for store cards and the product avatar. */
.profile-product-card__badges--commerce {
	top: 12px;
	right: -3px;
	left: -3px;
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	align-items: start;
	gap: 6px 10px;
}

.profile-product-card__badges--commerce .profile-product-badge {
	max-width: 100%;
	margin: 0;
}

.profile-product-card__badges--commerce .profile-product-badge--sale {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.profile-product-card__badges--commerce .profile-product-badge--right {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	justify-content: flex-end;
}

.profile-product-badge--rent {
	--profile-product-badge-color: #41cfff;
	--profile-product-badge-rgb: 65, 207, 255;
	--profile-product-badge-background: rgba(9, 27, 35, .68);
}

.profile-product-badge--installment,
.profile-product-badge--owned {
	--profile-product-badge-color: #38d689;
	--profile-product-badge-rgb: 56, 214, 137;
	--profile-product-badge-background: rgba(9, 35, 28, .68);
}

.profile-product-card__badges--commerce .profile-product-badge--installment {
	grid-column: 1 / -1;
	grid-row: 2;
}

.profile-product-card__badges--commerce:not(:has(.profile-product-badge--rent)) .profile-product-badge--installment {
	grid-column: 2;
	grid-row: 1;
}

.profile-product-owned {
	position: absolute;
	right: -3px;
	bottom: 12px;
	z-index: 5;
	pointer-events: none;
}

.profile-product-card__body {
	--profile-product-body-padding: 22px;
	--profile-product-body-offset: -22px;
	--profile-product-footer-side-spacing: 16px;
	--profile-product-price-top-spacing: 10px;
	--profile-product-price-bottom-spacing: 18px;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: var(--profile-product-body-padding);
	padding-bottom: var(--profile-product-price-bottom-spacing);
}

.profile-product-card h3 {
	margin: 0 0 10px;
	font-size: 25px;
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: -.015em;
}

.profile-product-card__heading {
	position: relative;
	padding-right: 64px;
	margin: 0 0 10px;
}

.profile-product-card__heading h3 {
	min-width: 0;
	margin: 0;
}

.profile-product-stats {
	position: absolute;
	top: 50%;
	right: 0;
	display: grid;
	justify-items: end;
	gap: 0;
	min-width: 48px;
	color: #929db6;
	transform: translateY(-50%);
}

.profile-product-stat {
	display: inline-grid;
	grid-template-columns: auto 16px;
	align-items: center;
	justify-content: end;
	gap: 6px;
	min-height: 16px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
}

.profile-product-stat svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.profile-product-card h3 a {
	color: #f2f0fb;
	text-shadow: 0 0 0 rgba(140, 108, 255, 0);
	transition:
		color var(--profile-product-hover-duration) ease-out,
		text-shadow var(--profile-product-hover-duration) ease-out;
}

.profile-product-card h3 a:hover,
.profile-product-card h3 a:focus-visible {
	color: #bcaaff;
	text-shadow: 0 0 10px rgba(140, 108, 255, .28);
}

.profile-product-card__description {
	display: -webkit-box;
	min-height: 3.1em;
	margin: 0 0 18px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: #929db6;
	font-size: 13px;
	line-height: 1.55;
	line-clamp: 2;
}

.profile-product-card__separator {
	height: 1px;
	margin: auto var(--profile-product-body-offset) var(--profile-product-price-top-spacing);
	flex: 0 0 auto;
	background: rgba(140, 108, 255, .18);
}

.profile-product-card__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content;
	flex: 0 0 52px;
	align-items: end;
	gap: 18px;
	height: 52px;
	min-height: 52px;
	margin: 0 calc(var(--profile-product-footer-side-spacing) - var(--profile-product-body-padding));
	padding: 0;
}

.profile-product-price {
	display: grid;
	align-content: center;
	gap: 3px;
	min-width: 0;
	padding: 0;
}

/* Keep both payment notes on one line and align likes with the bottom of the price block. */
.profile-product-card__footer--alternatives {
	display: flex;
	flex-basis: auto;
	flex-wrap: wrap;
	height: auto;
	column-gap: 12px;
	row-gap: 3px;
}

.profile-product-card__footer--alternatives > .profile-product-price {
	flex: 1 1 auto;
}

.profile-product-card__footer--alternatives > .profile-product-card__footer-side {
	display: block;
	margin-left: auto;
}

.profile-product-card__footer--alternatives .profile-product-like {
	width: min-content;
}

.profile-product-price__alternatives {
	display: flex;
	align-items: baseline;
	gap: 12px;
	min-width: 0;
	white-space: nowrap;
}

.profile-product-price > small:first-child {
	color: #8d96ab;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.profile-product-price > span {
	display: flex;
	align-items: baseline;
	gap: 10px;
	white-space: nowrap;
}

.profile-product-price del {
	position: relative;
	color: rgba(210, 216, 229, .56);
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
}

.profile-product-price del::before {
	position: absolute;
	top: 50%;
	right: -5px;
	left: -5px;
	height: 19px;
	background: url("/static/Assets/StrokeLine.png") center / 100% 100% no-repeat;
	filter: drop-shadow(0 0 3px rgba(255, 36, 50, .38));
	opacity: .94;
	content: "";
	transform: translateY(-50%) rotate(-1.5deg) scaleX(1.03);
	pointer-events: none;
}

.profile-product-price strong {
	color: #ffffff;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	text-shadow: 0 0 14px rgba(167, 139, 250, .34);
}

.profile-product-price__rent {
	color: #8995af;
	font-size: 9px;
	line-height: 1.2;
}

.profile-product-special-access {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 10px;
	min-width: 0;
	color: #a9a1c9;
	transform: translateY(4px);
}

.profile-product-special-access strong {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.profile-product-special-access svg {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	fill: none;
	stroke: #8d84aa;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.profile-product-special-access.is-owned {
	color: #c4b5ff;
}

.profile-product-special-access.is-owned svg {
	stroke: #9d84ff;
	filter: drop-shadow(0 0 4px rgba(140, 108, 255, .38));
}

.profile-product-card__footer-side {
	display: grid;
	align-content: end;
	justify-self: end;
	justify-items: end;
	gap: 7px;
	min-width: 0;
}

.profile-product-like {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: end;
	column-gap: 6px;
	row-gap: 3px;
	min-width: 0;
	padding: 0;
	border: 0;
	color: #a0a8bb;
	background: transparent;
	font: inherit;
	text-align: right;
	cursor: pointer;
	transition:
		color var(--profile-product-hover-duration) ease-out,
		text-shadow var(--profile-product-hover-duration) ease-out;
}

.profile-product-like__value {
	display: flex;
	align-items: center;
	height: 28px;
	color: #f4f1ff;
	font-size: 25px;
	font-weight: 400;
	line-height: 28px;
	transition: color var(--profile-product-hover-duration) ease-out;
}

.profile-product-like__loader {
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	border: 1.5px solid rgba(141, 150, 171, .28);
	border-top-color: #ad97ff;
	border-radius: 50%;
	opacity: 0;
	visibility: hidden;
	filter: drop-shadow(0 0 4px rgba(140, 108, 255, .22));
	transition:
		opacity 100ms ease-out,
		visibility 0s linear 100ms;
}

.profile-product-like[data-request-pending="true"] .profile-product-like__loader {
	opacity: 1;
	visibility: visible;
	animation: profile-product-like-loading 560ms linear infinite;
	transition:
		opacity 100ms ease-out,
		visibility 0s linear 0s;
}

.profile-product-like svg {
	display: block;
	width: 28px;
	height: 28px;
	fill: transparent;
	color: #ff4555;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	transition:
		fill var(--profile-product-hover-duration) ease-out,
		filter var(--profile-product-hover-duration) ease-out,
		stroke var(--profile-product-hover-duration) ease-out;
}

.profile-product-like__label {
	flex: 0 0 100%;
	color: #8d96ab;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.profile-product-like:hover,
.profile-product-like:focus-visible,
.profile-product-like.is-active {
	color: #ad97ff;
	text-shadow: 0 0 9px rgba(140, 108, 255, .32);
}

.profile-product-like:hover .profile-product-like__value,
.profile-product-like:focus-visible .profile-product-like__value,
.profile-product-like.is-active .profile-product-like__value {
	color: #ffffff;
}

.profile-product-like.is-active svg {
	fill: currentColor;
	filter: drop-shadow(0 0 4px rgba(255, 69, 85, .54));
}

.profile-product-like:disabled {
	cursor: default;
	opacity: .62;
}

.profile-product-like[data-request-pending="true"]:disabled {
	opacity: 1;
}

.profile-product-like.is-like-denied {
	animation: profile-product-like-denied 260ms ease-out;
}

.profile-product-like.is-like-clicked {
	animation: profile-product-like-clicked 120ms ease-out;
}

@keyframes profile-product-like-denied {
	0%,
	100% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-4px);
	}

	50% {
		transform: translateX(3px);
	}

	75% {
		transform: translateX(-2px);
	}
}

@keyframes profile-product-like-clicked {
	0%,
	100% {
		transform: scale(1);
	}

	45% {
		transform: scale(.97);
	}
}

@keyframes profile-product-like-loading {
	to {
		transform: rotate(360deg);
	}
}

.profile-catalog-page .profile-product-card :is(a, button):focus-visible {
	outline-color: var(--profile-product-accent);
}

@media (max-width: 1120px) {
	.profile-product-card {
		flex-basis: calc((100% - 16px) / 2);
	}
}

@media (max-width: 680px) {
	.profile-product-card {
		flex-basis: 100%;
	}
}

@media (max-width: 430px) {
	.profile-product-card__body {
		--profile-product-body-padding: 18px;
		--profile-product-body-offset: -18px;
	}

	.profile-product-card h3 {
		font-size: 23px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.profile-product-card,
	.profile-product-card::before,
	.profile-product-card::after,
	.profile-product-card__media::after,
	.profile-product-card * {
		transition-duration: .01ms !important;
	}
}
