/* Tarjeta de vendedor (rediseño del 2026-11-10): «Quién lo vende» bajo la ficha de producto (sections/product-seller.php) y
   cada persona de «A quién sigo» (mi-perfil_siguiendo.php). La portada de la persona a la izquierda (arriba en el móvil). */

/* «Quién lo vende» (sections/product-seller.php): el vendedor sobre su portada a la izquierda (arriba en el móvil) y lo
   que da confianza a la derecha; debajo, una fila con más prendas suyas. No repite el perfil. */
.ps {
	--ps-brand: #c1121f;
	--ps-ink: #1b1b1f;
	--ps-muted: #6b6b73;
	--ps-line: #e6e6ea;
	--ps-radius: var(--bs-border-radius, .375rem);
	--ps-radius-lg: var(--bs-border-radius-lg, .5rem);
	--ps-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 40px rgba(0, 0, 0, .08);
	background: #f5f5f7;
	color: var(--ps-ink);
	padding: 4px 0 32px;
}
.ps-card {
	display: grid;
	background: #fff;
	border-radius: var(--ps-radius-lg);
	box-shadow: var(--ps-shadow);
	overflow: hidden;
}
.ps-id {
	position: relative;
	isolation: isolate;
	color: #fff;
}
.ps-cover {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}
.ps-id::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(27, 27, 31, .3) 0%, rgba(27, 27, 31, .78) 60%, rgba(27, 27, 31, .9) 100%);
}
.ps-id-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 22px 16px 20px;
	text-align: center;
}
.ps-kicker {
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .85;
}
.ps-avatar {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border: 3px solid #fff;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	color: var(--ps-brand);
	font-size: 2.2rem;
	font-weight: 900;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.ps-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ps-name {
	margin: 4px 0 0;
	font-size: 1.45rem;
	overflow-wrap: anywhere;
}
.ps-name a {
	color: #fff;
	text-decoration: none;
}
.ps-name a:hover {
	text-decoration: underline;
}
.ps-verified {
	margin-left: 4px;
	font-size: .8em;
}
.ps-tagline {
	max-width: 34ch;
	margin: 0;
	font-style: italic;
	opacity: .92;
}
.ps-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 14px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	font-size: .85rem;
}
.ps-meta i {
	margin-right: 5px;
	font-size: .8em;
	opacity: .75;
}
.ps-meta .ps-online i {
	color: #3ddc84;
	opacity: 1;
}
.ps-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 10px;
}
.ps-actions .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
}
.ps-chat {
	flex: 1 1 auto;
	max-width: 280px;
}
/* «Seguir» sobre la portada oscura: blanco; «Siguiendo», solo el borde */
.ps-actions .ps-follow.btn-primary {
	background: #fff;
	border-color: #fff;
	color: var(--ps-brand);
}
.ps-actions .ps-follow.is-on {
	background: transparent;
	border-color: rgba(255, 255, 255, .7);
	color: #fff;
}
.ps-profile-link {
	margin-top: 6px;
	color: #fff;
	font-size: .88rem;
	font-weight: 700;
	text-underline-offset: 3px;
}
.ps-profile-link:hover {
	color: #fff;
}
.ps-menu {
	position: absolute;
	top: 8px;
	right: 8px;
}
.ps-menu-btn {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: var(--ps-radius);
	background: rgba(0, 0, 0, .25);
	color: #fff;
}
.ps-info {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 18px 16px 20px;
}
.ps-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2×2 en el móvil; 4 en fila desde 576 px */
	margin: 0;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
}
.ps-stats > div {
	padding: 10px 4px;
	text-align: center;
}
.ps-stats > div:nth-child(even) {
	border-left: 1px solid var(--ps-line);
}
.ps-stats > div:nth-child(n + 3) {
	border-top: 1px solid var(--ps-line);
}
@media (min-width: 576px) {
	.ps-stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.ps-stats > div + div {
		border-left: 1px solid var(--ps-line);
	}
	.ps-stats > div:nth-child(n + 3) {
		border-top: 0;
	}
}
.ps-stats dt {
	color: var(--ps-muted);
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.ps-stats dd {
	margin: 2px 0 0;
	font-size: 1rem;
	font-weight: 900;
	white-space: nowrap;
}
.ps-stats dd a {
	color: inherit;
	text-decoration: none;
}
.ps-stats dd small {
	color: var(--ps-muted);
	font-weight: 600;
}
.ps-stats .fa-star,
.ps .up-stars {
	color: #e8a400;
}
.ps .up-stars {
	display: inline-flex;
	gap: 2px;
	font-size: .8rem;
}
.ps-title {
	margin: 0 0 8px;
	color: var(--ps-muted);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ps-about {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	white-space: pre-line;
}
.ps-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.ps-tags span {
	padding: 4px 10px;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: #fafafb;
	font-size: .85rem;
}
.ps .review-tags-summary {
	margin-bottom: 10px;
}
.ps-quotes {
	display: grid;
	gap: 10px;
	margin-bottom: 10px;
}
.ps-quote {
	margin: 0;
	padding: 12px 14px;
	border-left: 3px solid var(--ps-brand);
	border-radius: var(--ps-radius);
	background: #f8f8fa;
}
.ps-quote blockquote {
	display: -webkit-box;
	margin: 6px 0 8px;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.ps-quote figcaption {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ps-muted);
	font-size: .8rem;
}
.ps-quote figcaption b {
	color: var(--ps-ink);
}
.ps-quote-avatar {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #dcdce0 center / cover no-repeat;
}
.ps-link {
	color: var(--ps-brand);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.ps-link:hover {
	text-decoration: underline;
}
.ps-muted {
	margin: 0;
	color: var(--ps-muted);
}
.ps-more {
	margin-top: 24px;
}
.ps-more-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.ps-more-title {
	margin: 0;
	font-size: 1.15rem;
	overflow-wrap: anywhere;
}
@media (min-width: 768px) {
	.ps {
		padding-bottom: 44px;
	}
	.ps-card {
		grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
	}
	.ps-id-body {
		justify-content: center;
		height: 100%;
		padding: 36px 24px;
	}
	.ps-info {
		padding: 26px 28px;
	}
	.ps-quotes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* Entre 992 y 1199 px caben 3 por fila: la cuarta sobraría sola */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.ps-row > .product-card:nth-child(4) {
		display: none;
	}
}
.ps-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	padding-top: 16px;
	border-top: 1px solid var(--ps-line);
}
.ps-links .ps-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ps-links .cu-flame {
	width: 1em;
	height: 1em;
}
/* Al llegar desde la barra del móvil: la foto del vendedor «recoge» la barra */
.ps-card.is-arrived .ps-avatar {
	animation: ps-arrive .5s ease-out;
}
@keyframes ps-arrive {
	0% { transform: scale(.6); opacity: .4; }
	70% { transform: scale(1.06); opacity: 1; }
	100% { transform: none; }
}

/* «A quién sigo»: una tarjeta por persona, más compacta, con sus últimas prendas */
.ps-plain {
	display: grid;
	gap: 16px;
	padding: 0;
	background: transparent;
}
.ps-new {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: var(--ps-radius);
	background: var(--ps-brand);
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
}
.ps-card-list .ps-id-body {
	padding: 30px 16px 18px;
}
.ps-card-list .ps-avatar {
	width: 80px;
	height: 80px;
	font-size: 1.8rem;
}
.ps-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}
.ps-thumbs a {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--ps-radius);
	background: #ececf0;
}
.ps-thumbs img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .2s;
}
.ps-thumbs a:hover img {
	transform: scale(1.05);
}
.ps-thumbs span {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(27, 27, 31, .55);
	color: #fff;
	font-size: 1.2rem;
	font-weight: 900;
}
@media (min-width: 768px) {
	.ps-card-list {
		grid-template-columns: minmax(240px, 4fr) minmax(0, 7fr);
	}
	.ps-card-list .ps-id-body {
		padding: 30px 20px 22px;
	}
}
