/* =======================================================================
   ViewCommerce Product Listing — Front-end Styles
   ======================================================================= */

.vc-products-wrap {
	--vc-primary: #0f3d3e;
	--vc-accent: #ff5722;
	--vc-text: #1c1c1c;
	--vc-muted: #6b7280;
	--vc-border: #ececec;
	--vc-card-radius: 16px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 16px 40px;
	box-sizing: border-box;
}

.vc-products-wrap * {
	box-sizing: border-box;
}

.vc-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.vc-product-card {
	background: #fff;
	border: 1px solid var(--vc-border);
	border-radius: var(--vc-card-radius);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	display: flex;
	flex-direction: column;
}

.vc-product-card:hover {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
	transform: translateY(-4px);
}

.vc-product-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f6f6f6;
	cursor: zoom-in;
}

.vc-product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.vc-product-card:hover .vc-product-image {
	transform: scale(1.06);
}

.vc-product-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vc-product-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--vc-text);
	margin: 0;
	line-height: 1.3;
}

.vc-product-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--vc-primary);
}

.vc-product-shop {
	font-size: 13px;
	color: var(--vc-muted);
	display: flex;
	align-items: center;
	gap: 4px;
}

.vc-product-shop .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
}

.vc-product-desc {
	font-size: 13.5px;
	color: var(--vc-muted);
	margin: 2px 0 4px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vc-whatsapp-btn {
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #25d366;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 999px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.vc-whatsapp-btn:hover {
	background: #1ebe5b;
	color: #fff;
	transform: translateY(-1px);
}

.vc-whatsapp-icon {
	display: inline-flex;
	line-height: 0;
}

.vc-no-products {
	text-align: center;
	color: var(--vc-muted);
	padding: 40px 0;
}

/* =======================================================================
   HOMEPAGE "LATEST PRODUCTS" TEASER (4 in a row) + VIEW ALL BUTTON
   ======================================================================= */

.vc-latest-grid {
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.vc-product-card-sm .vc-product-body {
	padding: 12px 14px 14px;
	gap: 4px;
}

.vc-product-card-sm .vc-product-name {
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vc-product-card-sm .vc-product-price {
	font-size: 15px;
}

.vc-product-card-sm .vc-product-shop {
	font-size: 12px;
}

.vc-whatsapp-btn-sm {
	padding: 7px 12px;
	font-size: 12.5px;
	margin-top: 6px;
}

.vc-view-all-wrap {
	text-align: center;
	margin-top: 28px;
}

.vc-view-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 2px solid var(--vc-accent);
	color: var(--vc-accent);
	font-weight: 700;
	letter-spacing: 0.04em;
	font-size: 14px;
	text-decoration: none;
	padding: 12px 28px;
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease;
}

.vc-view-all-btn:hover {
	background: var(--vc-accent);
	color: #fff;
}

/* =======================================================================
   LIGHTBOX — click image to zoom / become big
   ======================================================================= */

.vc-lightbox-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(6px);
	align-items: center;
	justify-content: center;
	padding: 30px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.vc-lightbox-overlay.vc-active {
	display: flex;
	opacity: 1;
}

.vc-lightbox-image {
	max-width: 90vw;
	max-height: 88vh;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transform: scale(0.85);
	transition: transform 0.3s ease;
}

.vc-lightbox-overlay.vc-active .vc-lightbox-image {
	transform: scale(1);
}

.vc-lightbox-close {
	position: absolute;
	top: 22px;
	right: 32px;
	font-size: 40px;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	font-weight: 300;
	transition: transform 0.2s ease;
}

.vc-lightbox-close:hover {
	transform: rotate(90deg);
}

/* =======================================================================
   RESPONSIVE
   ======================================================================= */

@media (max-width: 782px) {
	.vc-products-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 14px;
	}
	.vc-latest-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.vc-product-body {
		padding: 12px 14px 14px;
	}
	.vc-product-name {
		font-size: 14px;
	}
	.vc-product-price {
		font-size: 15px;
	}
	.vc-whatsapp-btn {
		font-size: 13px;
		padding: 8px 12px;
	}
}

@media (max-width: 480px) {
	.vc-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
