/**
 * Danh mục nổi bật (Featured Categories) - Grid + Badge
 *
 * @package Hello_Elementor_Child
 */

.vdc-featured-categories {
	width: 100%;
}

.vdc-featured-categories-empty {
	margin: 0;
	padding: 1em;
	background: #f5f5f5;
	border-radius: 4px;
	color: #666;
	font-size: 14px;
}

.vdc-featured-categories-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Mỗi ô danh mục */
.vdc-featured-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border-radius: 8px;
	padding: 16px 8px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.vdc-featured-cat-item:hover {
	background: #f9f9f9;
}

/* Khung icon + badge */
.vdc-featured-cat-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}

.vdc-featured-cat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
}

.vdc-featured-cat-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Tên danh mục */
.vdc-featured-cat-label {
	display: block;
	font-size: 13px;
	line-height: 1.3;
	color: #333;
	word-break: break-word;
}

/* Badge chung */
.vdc-featured-cat-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	white-space: nowrap;
	font-size: 10px;
	font-weight: 600;
	color: #fff;
	background-color: #f8b4c4;
	border-radius: 6px;
	padding: 2px 6px;
	line-height: 1.2;
}

/* Badge giá / BIG SALE - hình chữ nhật bo góc */
.vdc-featured-cat-badge.vdc-badge-price,
.vdc-featured-cat-badge.vdc-badge-big-sale {
	border-radius: 6px;
	padding: 3px 6px;
}

/* Badge giảm % - hình tròn / viền đỏ */
.vdc-featured-cat-badge.vdc-badge-discount {
	border-radius: 50%;
	min-width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px solid #e11d48;
}

/* Responsive */
@media (max-width: 1024px) {
	.vdc-featured-categories-grid {
		grid-template-columns: repeat(6, 1fr);
	}
}

@media (max-width: 767px) {
	.vdc-featured-categories-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.vdc-featured-cat-item {
		padding: 12px 6px;
	}

	.vdc-featured-cat-icon {
		width: 48px;
		height: 48px;
	}

	.vdc-featured-cat-label {
		font-size: 12px;
	}

	.vdc-featured-cat-badge {
		font-size: 9px;
		padding: 2px 4px;
	}

	.vdc-featured-cat-badge.vdc-badge-discount {
		min-width: 24px;
		height: 24px;
		font-size: 9px;
	}
}
