/* Brand & Category Carousel v1.6 */
.bcc-wrapper {
	position: relative;
	--bcc-px-speed: 40;
	--bcc-arrow-y: 0px;
}

.bcc-title {
	text-align: center;
	margin: 0 0 1.5rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.3;
	display: block;
}

.bcc-relative { position: relative; }

.bcc-viewport {
	overflow: hidden !important;
	width: 100%;
	position: relative;
	cursor: grab;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

.bcc-viewport.is-dragging,
.bcc-viewport:active { cursor: grabbing; }

.bcc-track {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	gap: 16px;
	width: max-content !important;
	max-width: none !important;
	transform: translate3d(0, 0, 0);
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transition: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.bcc-grid-inner {
	display: grid;
	gap: 16px;
}

.bcc-item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	text-decoration: none;
	background: #f8fafc;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
	flex: 0 0 auto;
	color: inherit;
	box-sizing: border-box;
	overflow: hidden;
	min-width: 0;
	/* DO NOT use content-visibility — causes image pop-in/out */
	transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.bcc-is-running .bcc-item:hover { transform: none; }

.bcc-item:focus {
	outline: 2px solid #ec4899;
	outline-offset: 2px;
}

.bcc-item__image {
	width: 100%;
	height: 120px;
	overflow: hidden;
	border-radius: 8px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	box-sizing: border-box;
}

.bcc-item__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
	/* Prevent decode flicker */
	opacity: 1 !important;
	visibility: visible !important;
	transition: none !important;
	/* Keep image painted */
	transform: translateZ(0);
	backface-visibility: hidden;
}

.bcc-item__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
}

.bcc-item__meta {
	margin-top: 0.75rem;
	width: 100%;
	box-sizing: border-box;
}

.bcc-item__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	line-height: 1.4;
}

.bcc-item__count {
	display: block;
	font-size: 12px;
	color: #94a3b8;
	margin-top: 2px;
}

.bcc-item__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2rem 0.5rem 0.5rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
	color: #fff;
	text-align: center;
	box-sizing: border-box;
}
.bcc-item__overlay .bcc-item__name { color: #fff; }
.bcc-item__overlay .bcc-item__count { color: rgba(255,255,255,.75); }

.bcc-hover-lift:not(.bcc-is-running) .bcc-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.bcc-hover-zoom:not(.bcc-is-running) .bcc-item:hover img {
	transform: scale(1.06) translateZ(0);
}
.bcc-hover-grayscale .bcc-item { filter: grayscale(1); }
.bcc-hover-grayscale:not(.bcc-is-running) .bcc-item:hover { filter: grayscale(0); }
.bcc-hover-brightness:not(.bcc-is-running) .bcc-item:hover { filter: brightness(1.08); }

.bcc-arrow {
	position: absolute;
	top: calc(50% + var(--bcc-arrow-y, 0px));
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: #0f172a;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
	padding: 0;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
}
.bcc-arrow:hover { opacity: 0.9; }
.bcc-arrow:disabled { opacity: 0.35; pointer-events: none; }
.bcc-arrow i, .bcc-arrow svg { display: block; pointer-events: none; }
.bcc-arrow--prev { left: 0; inset-inline-start: 0; inset-inline-end: auto; }
.bcc-arrow--next { right: 0; inset-inline-end: 0; inset-inline-start: auto; }

.bcc-arrows-pos-top_outside .bcc-relative { padding-top: 3rem; }
.bcc-arrows-pos-top_outside .bcc-arrow { top: 0; transform: none; }
.bcc-arrows-pos-top_outside .bcc-arrow--prev {
	left: auto; right: 48px; inset-inline-start: auto; inset-inline-end: 48px;
}
.bcc-arrows-pos-top_outside .bcc-arrow--next { right: 0; inset-inline-end: 0; }
.bcc-arrows-pos-bottom .bcc-arrow { top: auto; bottom: -3rem; transform: none; }
.bcc-arrows-pos-bottom .bcc-relative { margin-bottom: 3.5rem; }
.bcc-arrows-pos-bottom .bcc-arrow--prev {
	left: calc(50% - 48px); right: auto; inset-inline: auto;
}
.bcc-arrows-pos-bottom .bcc-arrow--next {
	left: calc(50% + 8px); right: auto; inset-inline: auto;
}
.bcc-arrows-pos-inside .bcc-arrow--prev {
	left: 8px; inset-inline-start: 8px; margin: 0 !important;
}
.bcc-arrows-pos-inside .bcc-arrow--next {
	right: 8px; inset-inline-end: 8px; margin: 0 !important;
}

.bcc-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 1.25rem;
	flex-wrap: wrap;
}
.bcc-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	border: 0;
	background: #cbd5e1;
	cursor: pointer;
	padding: 0;
	transition: width 0.2s ease, background 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.bcc-dot.is-active {
	width: 20px;
	background: #0f172a;
}

.bcc-empty {
	padding: 2rem;
	text-align: center;
	color: #64748b;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
	font-size: 14px;
}

.bcc-track [data-bcc-clone="1"] {
	pointer-events: none;
}

.bcc-paused {
	/* visual optional */
}

@media (max-width: 767px) {
	.bcc-arrow { width: 32px; height: 32px; }
	.bcc-item { box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05); }
}
