/* ==========================================================================
   Loop — "You might also like" (product page related products)
   Soft lilac panel, header with kicker + Shop all link, 4-up card grid on
   desktop, swipe row on phones. Loaded after style.css + mobile polish.
   ========================================================================== */

.pdp-related {
	--rel-ink: var(--ink, #2E2B38);
	--rel-flash: var(--flash, #FF3E7F);
	--rel-muted: #8A849C;
	--rel-line: rgba(46, 43, 56, .08);
	margin-top: 96px;
	padding: 44px 44px 48px;
	border-radius: 32px;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(247, 217, 227, .55) 0%, rgba(247, 217, 227, 0) 60%),
		linear-gradient(160deg, #F8F7FB 0%, #F1ECFB 100%);
}

/* Header row */
.pdp-related__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.pdp-related__kicker {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rel-flash);
}
.pdp-related .pdp-h2 {
	margin: 0;
}
.pdp-related__all {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1.5px solid rgba(46, 43, 56, .14);
	background: #fff;
	color: var(--rel-ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.pdp-related__all span {
	transition: transform .18s ease;
}
.pdp-related__all:hover,
.pdp-related__all:focus-visible {
	background: var(--rel-ink);
	border-color: var(--rel-ink);
	color: #fff;
}
.pdp-related__all:hover span {
	transform: translateX(3px);
}

/* Grid: exactly four equal columns (was auto-fill, which left a gap) */
.pdp-related__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

/* Card */
.pdp-related .pdp-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--rel-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(46, 43, 56, .04);
	text-decoration: none;
}
.pdp-related .pdp-card:hover {
	border-color: rgba(255, 62, 127, .45);
}
.pdp-related .pdp-card__media {
	margin: 8px 8px 0;
	border-radius: 16px;
}
.pdp-related .pdp-card__media > img {
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.pdp-related .pdp-card:hover .pdp-card__media > img {
	transform: scale(1.045);
}

/* "View" arrow chip that slides in over the photo on hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
	.pdp-related .pdp-card__media::after {
		content: "\2192";
		position: absolute;
		right: 12px;
		bottom: 12px;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		display: grid;
		place-items: center;
		background: #fff;
		color: var(--rel-ink);
		font-size: 18px;
		font-weight: 700;
		box-shadow: 0 8px 20px -8px rgba(46, 43, 56, .35);
		opacity: 0;
		transform: translateY(8px);
		transition: opacity .2s ease, transform .2s ease;
	}
	.pdp-related .pdp-card:hover .pdp-card__media::after {
		opacity: 1;
		transform: none;
	}
}

/* Card text — the body is a <span>, so make it a real block (fixes the
   missing padding: text used to touch the card edge) */
.pdp-related .pdp-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px 16px 18px;
}
.pdp-related .pdp-card__cat {
	display: block;
	margin-bottom: 5px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rel-muted);
}
.pdp-related .pdp-card__name {
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: 2.6em;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rel-ink);
}
.pdp-related .pdp-card__price {
	margin-top: auto;
	padding-top: 10px;
	font-size: 16px;
	font-weight: 700;
	color: var(--rel-flash);
}

/* Tablet: 2 x 2 */
@media (min-width: 768px) and (max-width: 899px) {
	.pdp-related {
		padding: 36px 32px 40px;
	}
	.pdp-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phone: full-bleed panel, swipe row (row itself comes from style.css) */
@media (max-width: 767px) {
	.pdp-related {
		margin-top: 36px;
		padding: 30px 0 22px;
		border-radius: 0;
	}
	.pdp-related__head {
		padding: 0 20px;
		margin-bottom: 16px;
		align-items: center;
	}
	.pdp-related__kicker {
		font-size: 11px;
		margin-bottom: 4px;
	}
	.pdp-related .pdp-h2 {
		padding: 0;
		margin: 0;
	}
	.pdp-related__all {
		padding: 7px 13px;
		font-size: 13px;
		gap: 6px;
	}
	.pdp-related__grid {
		gap: 12px;
		padding-bottom: 8px;
	}
	.pdp-related .pdp-card {
		flex: 0 0 46%;
		border-radius: 18px;
	}
	.pdp-related .pdp-card__media {
		margin: 6px 6px 0;
		border-radius: 13px;
	}
	.pdp-related .pdp-card__body {
		padding: 10px 12px 13px;
	}
	.pdp-related .pdp-card__cat {
		font-size: 10px;
		margin-bottom: 3px;
	}
	.pdp-related .pdp-card__name {
		font-size: 13.5px;
	}
	.pdp-related .pdp-card__price {
		font-size: 14.5px;
		padding-top: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pdp-related .pdp-card__media > img,
	.pdp-related .pdp-card__media::after,
	.pdp-related__all span {
		transition: none;
	}
	.pdp-related .pdp-card:hover .pdp-card__media > img,
	.pdp-related__all:hover span {
		transform: none;
	}
}
