/* =============================================
 * Featured Widget Container
 * ============================================= */
.cf-featured-widget {
	position: relative;
	overflow: hidden;
}

.cf-featured-widget:hover .cf-nav-btn {
	opacity: 1;
	visibility: visible;
}

/* =============================================
 * Slide
 * ============================================= */
.cf-swiper .swiper-wrapper {
	align-items: stretch;
}

.cf-swiper .swiper-slide {
	height: auto;
}

.cf-slide-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.cf-slide-header {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 16px 12px;
}

.cf-slide-title {
	font-size: 18px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.cf-slide-cat-name {
	font-size: 14px;
	color: #666;
	line-height: 1.4;
}

/* =============================================
 * Category Image Mode
 * ============================================= */
.cf-cat-image {
	display: block;
	padding: 0 16px 16px;
	text-decoration: none;
	overflow: hidden;
	box-sizing: border-box;
}

.cf-cat-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.cf-cat-image:hover img {
	transform: scale(1.03);
}

.cf-placeholder {
	display: block;
	width: 100%;
	padding-bottom: 100%;
	background: #f0f0f0;
	border-radius: 4px;
}

/* =============================================
 * Product Grid Mode
 * ============================================= */
.cf-product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	padding: 0 16px 16px;
}

.cf-product-item {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}

.cf-product-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
	background: #f5f5f5;
}

.cf-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.cf-product-item:hover .cf-product-thumb img {
	transform: scale(1.05);
}

.cf-product-price {
	display: inline-block;
	position: absolute;
	bottom: 8px;
	left: 8px;
	background: #fff;
	color: #222;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 16px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
	white-space: nowrap;
}

/* =============================================
 * Navigation Arrows
 * ============================================= */
.cf-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	color: #333;
}

.cf-nav-btn svg {
	width: 20px;
	height: 20px;
}

.cf-nav-prev {
	left: 12px;
}

.cf-nav-next {
	right: 12px;
}

.cf-nav-btn:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cf-nav-btn.swiper-button-disabled {
	opacity: 0 !important;
	pointer-events: none;
}

@media (max-width: 768px) {
	.cf-nav-btn {
		opacity: 1;
		visibility: visible;
		width: 28px;
		height: 28px;
	}

	.cf-nav-btn svg {
		width: 16px;
		height: 16px;
	}

	.cf-nav-prev { left: 4px; }
	.cf-nav-next { right: 4px; }

	.cf-nav-btn.swiper-button-disabled {
		opacity: 0.3 !important;
		visibility: visible !important;
		pointer-events: none;
	}
}
