.ppsp-wrap {
	--ppsp-ease: cubic-bezier(.22, 1, .36, 1);
	color: var(--ppsp-text);
	position: relative;
	width: 100%;
}

.ppsp-products {
	display: grid;
	grid-template-columns: repeat(var(--ppsp-cols), minmax(0, 1fr));
	gap: var(--ppsp-gap);
}

.ppsp-layout-carousel .ppsp-products,
.ppsp-layout-slider .ppsp-products {
	display: flex;
	gap: var(--ppsp-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ppsp-layout-carousel .ppsp-products::-webkit-scrollbar,
.ppsp-layout-slider .ppsp-products::-webkit-scrollbar {
	display: none;
}

.ppsp-layout-carousel .ppsp-card,
.ppsp-layout-slider .ppsp-card {
	flex: 0 0 calc((100% - (var(--ppsp-gap) * (var(--ppsp-cols) - 1))) / var(--ppsp-cols));
	scroll-snap-align: start;
}

.ppsp-layout-gallery .ppsp-card:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.ppsp-layout-masonry .ppsp-products {
	align-items: start;
}

.ppsp-layout-masonry .ppsp-card:nth-child(3n+2) {
	margin-top: 28px;
}

.ppsp-card {
	background: var(--ppsp-card-bg);
	border: 1px solid rgba(23, 21, 31, .08);
	border-radius: calc(var(--ppsp-radius) + 6px);
	overflow: hidden;
	position: relative;
	transition: transform .28s var(--ppsp-ease), box-shadow .28s var(--ppsp-ease), border-color .28s var(--ppsp-ease);
}

.ppsp-shadow-soft .ppsp-card {
	box-shadow: 0 14px 38px rgba(24, 20, 35, .08);
}

.ppsp-shadow-deep .ppsp-card {
	box-shadow: 0 24px 70px rgba(24, 20, 35, .16);
}

.ppsp-hover-lift .ppsp-card:hover {
	transform: translateY(-6px);
}

.ppsp-hover-glow .ppsp-card:hover {
	border-color: color-mix(in srgb, var(--ppsp-primary), transparent 45%);
	box-shadow: 0 22px 60px color-mix(in srgb, var(--ppsp-primary), transparent 78%);
}

.ppsp-media {
	aspect-ratio: var(--ppsp-ratio);
	background: #f7f4fb;
	display: block;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.ppsp-media img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: opacity .35s var(--ppsp-ease), transform .45s var(--ppsp-ease);
	width: 100%;
}

.ppsp-hover-zoom .ppsp-card:hover .ppsp-main-image,
.ppsp-hover-lift .ppsp-card:hover .ppsp-main-image {
	transform: scale(1.045);
}

.ppsp-hover-image {
	inset: 0;
	opacity: 0;
	position: absolute;
}

.ppsp-card:hover .ppsp-hover-image {
	opacity: 1;
}

.ppsp-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	left: 12px;
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 2;
}

.ppsp-badge {
	backdrop-filter: blur(14px);
	background: rgba(255, 255, 255, .9);
	border-radius: 999px;
	color: var(--ppsp-text);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 7px 9px;
	text-transform: uppercase;
}

.ppsp-sale {
	background: var(--ppsp-secondary);
	color: #fff;
}

.ppsp-featured,
.ppsp-custom {
	background: var(--ppsp-primary);
	color: #fff;
}

.ppsp-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
}

.ppsp-category,
.ppsp-brand,
.ppsp-desc,
.ppsp-stock {
	color: var(--ppsp-muted);
	font-size: 13px;
	line-height: 1.45;
}

.ppsp-category a {
	color: inherit;
	text-decoration: none;
}

.ppsp-title {
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.2;
	margin: 0;
}

.ppsp-title a {
	color: var(--ppsp-text);
	text-decoration: none;
}

.ppsp-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	min-height: 20px;
}

.ppsp-meta .star-rating {
	color: #f5a623;
	float: none;
	font-size: 12px;
	margin: 0;
}

.ppsp-stock .stock {
	margin: 0;
}

.ppsp-price {
	color: var(--ppsp-text);
	font-size: 18px;
	font-weight: 800;
}

.ppsp-price del {
	color: var(--ppsp-muted);
	font-size: .85em;
	font-weight: 500;
	margin-right: 6px;
}

.ppsp-hide-sale ins {
	display: none;
}

.ppsp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.ppsp-actions .button,
.ppsp-btn,
.ppsp-icon-btn,
.ppsp-load-more {
	align-items: center;
	background: var(--ppsp-primary);
	border: 0;
	border-radius: var(--ppsp-button-radius);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	min-height: 40px;
	padding: 12px 16px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.ppsp-icon-btn {
	background: #f3effa;
	color: var(--ppsp-text);
}

.ppsp-actions .button:hover,
.ppsp-btn:hover,
.ppsp-load-more:hover {
	background: color-mix(in srgb, var(--ppsp-primary), #000 12%);
	color: #fff;
	transform: translateY(-1px);
}

.ppsp-icon-btn:hover,
.ppsp-icon-btn.is-active {
	background: var(--ppsp-secondary);
	color: #fff;
}

.ppsp-nav {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 18px;
}

.ppsp-prev,
.ppsp-next {
	align-items: center;
	background: var(--ppsp-text);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 28px;
	height: 44px;
	justify-content: center;
	line-height: 1;
	width: 44px;
}

.ppsp-pagination {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.ppsp-load-more.is-loading {
	opacity: .72;
	pointer-events: none;
}

.ppsp-modal {
	align-items: center;
	background: rgba(14, 12, 20, .62);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 99999;
}

.ppsp-modal.is-open {
	display: flex;
}

.ppsp-modal-panel {
	background: #fff;
	border-radius: 22px;
	max-height: min(760px, 92vh);
	max-width: 920px;
	overflow: auto;
	position: relative;
	width: 100%;
}

.ppsp-modal-close {
	background: var(--ppsp-text, #17151f);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	font-size: 24px;
	height: 42px;
	position: absolute;
	right: 14px;
	top: 14px;
	width: 42px;
	z-index: 1;
}

.ppsp-modal-product {
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	padding: 28px;
}

.ppsp-modal-image img {
	border-radius: 16px;
	height: auto;
	width: 100%;
}

.ppsp-modal-content h2 {
	margin: 0 0 12px;
}

.ppsp-modal-price {
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 14px;
}

.ppsp-loader {
	padding: 48px;
	text-align: center;
}

@media (max-width: 1024px) {
	.ppsp-products {
		grid-template-columns: repeat(var(--ppsp-cols-tablet), minmax(0, 1fr));
	}

	.ppsp-layout-carousel .ppsp-card,
	.ppsp-layout-slider .ppsp-card {
		flex-basis: calc((100% - (var(--ppsp-gap) * (var(--ppsp-cols-tablet) - 1))) / var(--ppsp-cols-tablet));
	}
}

@media (max-width: 767px) {
	.ppsp-products {
		grid-template-columns: repeat(var(--ppsp-cols-mobile), minmax(0, 1fr));
	}

	.ppsp-layout-carousel .ppsp-card,
	.ppsp-layout-slider .ppsp-card {
		flex-basis: calc((100% - (var(--ppsp-gap) * (var(--ppsp-cols-mobile) - 1))) / var(--ppsp-cols-mobile));
	}

	.ppsp-layout-gallery .ppsp-card:first-child {
		grid-column: auto;
		grid-row: auto;
	}

	.ppsp-layout-masonry .ppsp-card:nth-child(3n+2) {
		margin-top: 0;
	}

	.ppsp-body {
		padding: 15px;
	}

	.ppsp-modal-product {
		grid-template-columns: 1fr;
		padding: 18px;
	}
}

.ppsp-bulk-quote {
	background: #25D366;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.ppsp-bulk-quote::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3Cpath d='M11.996 0C5.373 0 0 5.373 0 11.996c0 2.123.556 4.115 1.529 5.843L0 24l6.32-1.518A11.956 11.956 0 0011.996 24c6.623 0 11.996-5.373 11.996-11.996C23.992 5.381 18.619 0 11.996 0zm0 21.986a9.98 9.98 0 01-5.207-1.459l-.374-.222-3.75.901.944-3.672-.244-.389A9.953 9.953 0 012.01 11.996C2.01 6.48 6.48 2.01 11.996 2.01c5.516 0 9.986 4.47 9.986 9.986 0 5.516-4.47 9.99-9.986 9.99z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.ppsp-bulk-quote:hover {
	background: #1da851;
	color: #fff;
	transform: translateY(-1px);
}

/* ── Pagination Style Variants (from admin setting) ── */
.ppsp-pagination-pill .ppsp-load-more {
	border-radius: 999px;
	padding: 12px 32px;
}

.ppsp-pagination-minimal .ppsp-load-more {
	background: transparent;
	border: 2px solid var(--ppsp-primary);
	color: var(--ppsp-primary);
}

.ppsp-pagination-minimal .ppsp-load-more:hover {
	background: var(--ppsp-primary);
	color: #fff;
}
