/* ============================================================
   Zetu Commerce – Product List Widget
   ============================================================ */

.zc-product-list {
	width: 100%;
	position: relative;
}

/* Add any custom styles that Tailwind doesn't cover here if needed */

/* ============================================================
   Zetu Commerce – Product List Widget
   ============================================================ */

.zc-product-list {
	width: 100%;
	position: relative;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Section Header ──────────────────────────────────────── */
.zc-product-list__header {
	text-align: center;
	margin-bottom: 40px;
}

.zc-product-list__title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 2rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
	line-height: 1.2;
}

.zc-product-list__subtitle {
	font-size: 1rem;
	color: #64748b;
	margin: 0;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

/* ── Product Grid ────────────────────────────────────────── */
.zc-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* ── Product Card ────────────────────────────────────────── */
.zc-product-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.zc-product-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* ── Card Image ──────────────────────────────────────────── */
.zc-product-card__image {
	position: relative;
	height: 260px;
	background: #f8f9fa;
	overflow: hidden;
}

.zc-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 20px;
	transition: transform 0.5s ease;
}

.zc-product-card:hover .zc-product-card__img {
	transform: scale(1.05);
}

.zc-product-card__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

/* ── Badges ──────────────────────────────────────────────── */
.zc-product-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	gap: 6px;
	z-index: 2;
}

.zc-product-card__badge {
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.zc-product-card__badge--sale {
	background: #fef2f2;
	color: #dc2626;
}

.zc-product-card__badge--featured {
	background: #f0fdf4;
	color: #16a34a;
}

/* ── Wishlist ────────────────────────────────────────────── */
.zc-product-card__wishlist {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: #94a3b8;
	transition: all 0.2s ease;
	z-index: 2;
	padding: 0;
	backdrop-filter: blur(4px);
}

.zc-product-card__wishlist:hover {
	color: #ef4444;
	background: #fff;
	transform: scale(1.1);
}

.zc-product-card__wishlist svg {
	width: 18px;
	height: 18px;
}

/* ── Card Content ────────────────────────────────────────── */
.zc-product-card__content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* ── Product Name ────────────────────────────────────────── */
.zc-product-card__name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
	margin-bottom: 6px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
	transition: color 0.2s ease;
}

.zc-product-card__name:hover {
	color: #003229;
}

/* ── Rating Stars ────────────────────────────────────────── */
.zc-product-card__stars {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-bottom: 8px;
}

.zc-product-card__stars svg {
	width: 14px;
	height: 14px;
}

.zc-product-card__stars svg.star-filled {
	fill: #f59e0b;
	stroke: #f59e0b;
}

.zc-product-card__stars svg.star-empty {
	fill: none;
	stroke: #d1d5db;
}

.zc-product-card__stars-count {
	font-size: 12px;
	color: #94a3b8;
	margin-left: 4px;
}

/* ── Excerpt ─────────────────────────────────────────────── */
.zc-product-card__excerpt {
	font-size: 0.8125rem;
	color: #64748b;
	line-height: 1.5;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
}

/* ── Price ────────────────────────────────────────────────── */
.zc-product-card__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 16px;
	margin-top: auto;
}

.zc-product-card__price-current {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
}

.zc-product-card__price-original {
	font-size: 0.875rem;
	color: #94a3b8;
	text-decoration: line-through;
}

/* ── Button (with swipe effect) ──────────────────────────── */
.zc-product-card__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 20px;
	background-color: #003229;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-family: 'Manrope', sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	z-index: 1;
	transition: color 0.4s ease;
}

.zc-product-card__btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #f8be5c;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	z-index: -1;
}

.zc-product-card__btn:hover::before {
	transform: scaleX(1);
}

.zc-product-card__btn:hover {
	color: #000000;
}

.zc-product-card__btn-text,
.zc-product-card__btn-icon {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
}

.zc-product-card__btn-icon svg {
	transition: transform 0.3s ease;
}

.zc-product-card__btn:hover .zc-product-card__btn-icon svg {
	transform: rotate(-45deg);
}

/* ── Empty State ─────────────────────────────────────────── */
.zc-product-list__empty {
	text-align: center;
	padding: 40px 20px;
	color: #64748b;
	font-size: 1rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
	.zc-product-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.zc-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.zc-product-card__image {
		height: 200px;
	}

	.zc-product-card__content {
		padding: 14px;
	}

	.zc-product-card__name {
		font-size: 0.875rem;
	}

	.zc-product-card__price-current {
		font-size: 1.1rem;
	}

	.zc-product-list__title {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.zc-product-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}
