.jvg-widget {
	width: 100%;
	box-sizing: border-box;
}

.jvg-widget *,
.jvg-widget *::before,
.jvg-widget *::after {
	box-sizing: border-box;
}

/* Category tabs */
.jvg-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 24px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.jvg-tab {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-family: inherit;
	flex: 0 0 auto;
}

.jvg-tab-image {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #5c1414;
	display: block;
}

.jvg-tabs-rounded .jvg-tab-image {
	border-radius: 16px;
}

.jvg-tabs-square .jvg-tab-image {
	border-radius: 0;
}

.jvg-tab-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jvg-tab-label {
	font-size: 15px;
	color: #333333;
	white-space: nowrap;
	line-height: 1.3;
}

.jvg-tab-active .jvg-tab-label {
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

.jvg-card {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.jvg-card.jvg-hidden {
	display: none;
}

.jvg-card-media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f4f0e8;
}

.jvg-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.jvg-card:hover .jvg-card-media img {
	transform: scale(1.04);
}

.jvg-card-body {
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.jvg-card-title {
	font-weight: 600;
	font-size: 16px;
	color: #1a1a1a;
	text-decoration: none;
	flex: 1 1 auto;
}

.jvg-card-price {
	font-size: 15px;
	color: #1a1a1a;
	white-space: nowrap;
}

.jvg-card-price .woocommerce-Price-amount {
	font-weight: 500;
}

.jvg-add-to-cart {
	width: 100%;
	margin-top: 10px;
	padding: 10px 14px;
	background: #1a1a1a;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: opacity 0.2s ease;
}

.jvg-add-to-cart:hover {
	opacity: 0.85;
}

.jvg-add-to-cart.jvg-loading {
	opacity: 0.6;
	cursor: wait;
}

/* Responsive fallbacks (Elementor's own responsive controls take priority when set) */
@media (max-width: 1024px) {
	.jvg-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.jvg-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.jvg-tabs {
		gap: 14px;
		justify-content: flex-start;
	}

	.jvg-tab-image {
		width: 64px;
		height: 64px;
	}

	.jvg-tab-label {
		font-size: 12px;
	}

	.jvg-card-body {
		padding: 10px 12px;
		flex-direction: column;
		align-items: flex-start;
	}

	.jvg-card-title {
		font-size: 14px;
	}
}

@media (max-width: 420px) {
	.jvg-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}
