/* ========== Product Showcase Widget ========== */
.ps-wrap {
	width: 100%;
}

/* Grid */
.ps-grid {
	display: grid;
	gap: 24px;
}

.ps-cols-1 { grid-template-columns: 1fr; }
.ps-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ps-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ps-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.ps-card {
	display: flex;
	flex-direction: column;
}

/* Title */
.ps-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 12px 0;
	text-align: center;
}

.ps-card-title a {
	color: #222;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ps-card-title a:hover {
	color: #3498db;
}

/* Image Wrap */
.ps-card-image-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.ps-card-link {
	display: block;
	position: relative;
	text-decoration: none;
}

.ps-card-image {
	height: 350px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.4s ease;
}

/* Overlay */
.ps-card-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.ps-card-link:hover .ps-card-overlay {
	opacity: 1;
}

.ps-card-link:hover .ps-card-image {
	transform: scale(1.05);
}

/* Excerpt */
.ps-card-excerpt {
	color: #ffffff;
	font-size: 15px;
	line-height: 1.7;
	text-align: center;
	margin: 0 0 16px 0;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Arrow */
.ps-card-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ps-card-arrow svg {
	width: 24px;
	height: 24px;
	color: #ffffff;
	transition: transform 0.2s ease;
}

.ps-card-link:hover .ps-card-arrow svg {
	transform: translateX(4px);
}

/* No Results */
.ps-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: #999;
	font-size: 16px;
}

/* Pagination */
.ps-pagination {
	margin-top: 40px;
	text-align: center;
}

.ps-page-link {
	display: inline-block;
	padding: 10px 14px;
	margin: 0 4px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.ps-page-link:hover {
	background-color: #333;
	color: #fff;
	border-color: #333;
	text-decoration: none;
}

.ps-page-link.current {
	background-color: #333;
	color: #fff;
	border-color: #333;
	cursor: default;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
	.ps-cols-4 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.ps-cols-3,
	.ps-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.ps-card-title {
		font-size: 16px;
	}

	.ps-card-image {
		height: 250px;
	}

	.ps-card-excerpt {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.ps-cols-2,
	.ps-cols-3,
	.ps-cols-4 {
		grid-template-columns: 1fr;
	}

	.ps-card-image {
		height: 220px;
	}
}
