:root {
	--pepw-primary: #a294f9;
	--pepw-secondary: #f5efff;
	--pepw-text: #2f2742;
	--pepw-muted: #7c748f;
	--pepw-border: #ece7f7;
	--pepw-accent-dark: #8a79ee;
}

.pepw-widget {
	position: relative;
	width: 100%;
}

.pepw-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 28px;
}

.pepw-product-card-wrap {
	min-width: 0;
}

.pepw-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	border: 1px solid var(--pepw-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(131, 109, 214, 0.1);
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.pepw-hover-lift:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 50px rgba(162, 148, 249, 0.16);
}

.pepw-hover-soft:hover {
	box-shadow: 0 18px 52px rgba(162, 148, 249, 0.2);
}

.pepw-hover-minimal:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(131, 109, 214, 0.11);
}

.pepw-product-card__media {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	margin: 14px;
	background: linear-gradient(180deg, #faf8ff 0%, #f2ecff 100%);
}

.pepw-product-card__media-link {
	position: relative;
	display: block;
	aspect-ratio: var(--pepw-image-ratio, 4 / 5);
	overflow: hidden;
	border-radius: inherit;
}

.pepw-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease, opacity 0.35s ease;
}

.pepw-product-card__image--secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.pepw-product-card:hover .pepw-product-card__image--secondary {
	opacity: 1;
}

.pepw-product-card.has-image-zoom:hover .pepw-product-card__image {
	transform: scale(1.05);
}

.pepw-product-card__badges {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pepw-badge {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
}

.pepw-badge--sale {
	background: var(--pepw-primary);
	color: #fff;
}

.pepw-badge--stock,
.pepw-badge--custom {
	background: var(--pepw-secondary);
	color: var(--pepw-text);
}

.pepw-badge--custom {
	background: var(--pepw-text);
	color: #fff;
}

.pepw-product-card__actions {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pepw-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--pepw-accent-dark);
	text-decoration: none;
	font-size: 18px;
	box-shadow: 0 10px 24px rgba(45, 45, 45, 0.12);
	transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.pepw-icon-button:hover {
	transform: translateY(-2px);
	background: var(--pepw-primary);
	color: #fff;
}

.pepw-product-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 14px;
	padding: 6px 22px 24px;
}

.pepw-product-card.pepw-align-left .pepw-product-card__content {
	text-align: left;
}

.pepw-product-card.pepw-align-center .pepw-product-card__content {
	text-align: center;
}

.pepw-product-card.pepw-align-right .pepw-product-card__content {
	text-align: right;
}

.pepw-product-card__category {
	color: var(--pepw-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pepw-product-card__title {
	margin: 0;
	font-size: 19px;
	line-height: 1.35;
	color: var(--pepw-text);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.pepw-product-card__title a {
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--pepw-title-lines, 2);
	overflow: hidden;
}

.pepw-product-card__title a:hover {
	color: var(--pepw-primary);
}

.pepw-product-card__excerpt {
	color: var(--pepw-muted);
	font-size: 14px;
	line-height: 1.7;
}

.pepw-product-card__rating {
	font-size: 14px;
}

.pepw-product-card__price {
	font-size: 18px;
	font-weight: 600;
	color: var(--pepw-text);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.pepw-product-card.pepw-align-center .pepw-product-card__price {
	justify-content: center;
}

.pepw-product-card.pepw-align-right .pepw-product-card__price {
	justify-content: flex-end;
}

.pepw-product-card__price del {
	opacity: 0.55;
	margin-right: 8px;
}

.pepw-product-card__price ins {
	text-decoration: none;
}

.pepw-product-card__price del,
.pepw-product-card__price ins,
.pepw-product-card__price .amount,
.pepw-product-card__price bdi {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.pepw-product-card__footer {
	display: flex;
	align-items: center;
	margin-top: auto;
	justify-content: flex-start;
}

.pepw-product-card.pepw-align-center .pepw-product-card__footer {
	justify-content: center;
}

.pepw-product-card.pepw-align-right .pepw-product-card__footer {
	justify-content: flex-end;
}

.pepw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 18px;
	border-radius: 999px;
	background: var(--pepw-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pepw-button:hover {
	transform: translateY(-2px);
	background: #8a79ee;
	color: #fff;
	border-color: #8a79ee;
	box-shadow: 0 12px 28px rgba(138, 121, 238, 0.24);
}

.pepw-button--ghost {
	background: transparent;
	color: var(--pepw-primary);
	border-color: var(--pepw-primary);
}

.pepw-button--ghost:hover {
	background: var(--pepw-primary);
	color: #fff;
}

.pepw-empty-state {
	padding: 34px 24px;
	border: 1px dashed var(--pepw-border);
	border-radius: 20px;
	background: linear-gradient(180deg, #fff 0%, #fbf9ff 100%);
	color: var(--pepw-muted);
	text-align: center;
}

.pepw-pagination {
	margin-top: 28px;
}

.pepw-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pepw-pagination a,
.pepw-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--pepw-border);
	border-radius: 999px;
	background: #fff;
	color: var(--pepw-text);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.pepw-pagination .current {
	background: var(--pepw-primary);
	border-color: var(--pepw-primary);
	color: #fff;
}

.pepw-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

@media (max-width: 1024px) {
	.pepw-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pepw-product-card {
		border-radius: 18px;
	}

	.pepw-product-card__media {
		margin: 10px;
		border-radius: 14px;
	}

	.pepw-product-card__content {
		gap: 10px;
		padding: 2px 16px 16px;
	}

	.pepw-product-card__title {
		font-size: 16px;
	}

	.pepw-product-card__price {
		font-size: 15px;
	}

	.pepw-button {
		padding: 11px 14px;
		font-size: 11px;
	}

	.pepw-badge {
		padding: 6px 9px;
		font-size: 9px;
	}

	.pepw-icon-button {
		width: 34px;
		height: 34px;
		font-size: 15px;
	}
}

@media (max-width: 767px) {
	.pepw-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.pepw-product-card__content {
		padding: 0 14px 14px;
		gap: 8px;
	}

	.pepw-product-card {
		border-radius: 16px;
	}

	.pepw-product-card__media {
		margin: 8px;
	}

	.pepw-product-card__badges {
		top: 10px;
		left: 10px;
		gap: 6px;
	}

	.pepw-badge {
		padding: 5px 8px;
		font-size: 8px;
		letter-spacing: 0.04em;
	}

	.pepw-product-card__actions {
		top: 10px;
		right: 10px;
		gap: 6px;
	}

	.pepw-icon-button {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}

	.pepw-product-card__category {
		font-size: 10px;
	}

	.pepw-product-card__title {
		font-size: 15px;
		line-height: 1.3;
	}

	.pepw-product-card__excerpt {
		font-size: 12px;
		line-height: 1.5;
	}

	.pepw-product-card__price {
		font-size: 14px;
		flex-wrap: nowrap;
	}

	.pepw-button {
		width: 100%;
		padding: 10px 12px;
		font-size: 11px;
	}

	.pepw-pagination {
		margin-top: 20px;
	}

	.pepw-pagination a,
	.pepw-pagination span {
		min-width: 34px;
		height: 34px;
		font-size: 11px;
		padding: 0 10px;
	}
}
