/* Category Banner Carousel — cbc-style.css */

/* ── Wrapper ─────────────────────────────────────────────────── */
.cbc-carousel-wrapper {
	position: relative;
	width: 100%;
}

/* ── Banner inner ────────────────────────────────────────────── */
.cbc-banner-inner {
	position: relative;
	height: 320px;
	border-radius: 12px;
	overflow: hidden;
	background: #1a1a2e;
	background-size: cover;
	background-position: center center;
	display: flex;
}

/* ── Overlay ─────────────────────────────────────────────────── */
.cbc-banner-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
	transition: background 0.3s ease;
}

.cbc-banner-inner:hover .cbc-banner-overlay {
	background: rgba(0, 0, 0, 0.45);
}

/* ── Content wrap ────────────────────────────────────────────── */
.cbc-banner-content-wrap {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
}

.cbc-banner-content {
	padding: 24px;
	display: flex;
	flex-direction: column;
}

/* ── Title ───────────────────────────────────────────────────── */
.cbc-banner-title {
	color: #ffffff;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 8px;
	padding: 0;
	text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ── Description ─────────────────────────────────────────────── */
.cbc-banner-desc {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0 0 16px;
}

/* ── Button base ─────────────────────────────────────────────── */
.cbc-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 100px;
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1;
	cursor: pointer;
	border: none;
}

/* ── Button presets ──────────────────────────────────────────── */

/* Glass (default) */
.cbc-btn-preset-glass .cbc-btn {
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #ffffff;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.cbc-btn-preset-glass .cbc-btn:hover {
	background: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.75);
	transform: translateY(-1px);
}

/* Solid */
.cbc-btn-preset-solid .cbc-btn {
	background: #ffffff;
	color: #111111;
	border: 1px solid transparent;
}
.cbc-btn-preset-solid .cbc-btn:hover {
	background: #f0f0f0;
	transform: translateY(-1px);
}

/* Outline */
.cbc-btn-preset-outline .cbc-btn {
	background: transparent;
	color: #ffffff;
	border: 2px solid #ffffff;
}
.cbc-btn-preset-outline .cbc-btn:hover {
	background: rgba(255,255,255,0.1);
	transform: translateY(-1px);
}

/* Ghost */
.cbc-btn-preset-ghost .cbc-btn {
	background: transparent;
	color: #ffffff;
	border: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding-left: 0;
	padding-right: 0;
}
.cbc-btn-preset-ghost .cbc-btn:hover {
	opacity: 0.8;
}

/* ── Button icon ─────────────────────────────────────────────── */
.cbc-btn-icon,
.cbc-btn svg {
	font-size: 13px;
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ── Navigation arrows ───────────────────────────────────────── */
.cbc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #222;
	box-shadow: 0 2px 12px rgba(0,0,0,0.18);
	transition: background 0.2s, transform 0.2s, opacity 0.2s;
	padding: 0;
}
.cbc-arrow:hover {
	background: #ffffff;
	transform: translateY(-50%) scale(1.07);
}
.cbc-arrow.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}
.cbc-arrow-prev { left: 16px; }
.cbc-arrow-next { right: 16px; }

/* ── Pagination dots ─────────────────────────────────────────── */
.cbc-carousel-wrapper .swiper-pagination {
	position: static;
	margin-top: 16px;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.cbc-carousel-wrapper .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	opacity: 1;
	transition: background 0.2s, width 0.2s;
	cursor: pointer;
}

.cbc-carousel-wrapper .swiper-pagination-bullet-active {
	background: #222222;
	width: 20px;
	border-radius: 4px;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
.cbc-carousel-wrapper .swiper-scrollbar {
	margin-top: 12px;
	height: 3px;
	background: rgba(0,0,0,0.1);
	border-radius: 2px;
	position: static;
}
.cbc-carousel-wrapper .swiper-scrollbar-drag {
	background: rgba(0,0,0,0.4);
	border-radius: 2px;
}

/* ── Hover scale on banner ───────────────────────────────────── */
.cbc-banner-inner {
	transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.cbc-banner-inner:hover {
	transform: scale(1.012);
}
.cbc-carousel-wrapper .swiper {
	overflow: hidden;
}

/* ── Fade effect fix ─────────────────────────────────────────── */
.swiper-fade .swiper-slide {
	pointer-events: none;
}
.swiper-fade .swiper-slide-active {
	pointer-events: auto;
}

/* ── Responsive fallback ─────────────────────────────────────── */
@media (max-width: 767px) {
	.cbc-banner-inner {
		height: 220px;
	}
	.cbc-banner-title {
		font-size: 1.1rem;
	}
	.cbc-banner-desc {
		font-size: 0.82rem;
	}
	.cbc-arrow {
		width: 36px;
		height: 36px;
	}
}
