/**
 * Webcodexworld Car Buying & Selling
 * Brands carousel (`[carbs_brands]`) styles - built on top of the
 * self-hosted Swiper bundle (assets/vendor/swiper/).
 *
 * @package Webcodexworld Car Buying & Selling
 * @since 1.6.0
 */

.carbs-brands-wrap {
	--carbs-b-surface-soft: var(--tpc-surface-soft);
	--carbs-b-radius: 12px;

	max-width: 1280px;
	margin: 24px auto;
	font-family: var(--tpc-font-body);
	color: var(--tpc-black);
}

.carbs-brands-wrap *,
.carbs-brands-wrap *::before,
.carbs-brands-wrap *::after {
	box-sizing: border-box;
}

.carbs-brands-wrap button {
	font-family: inherit;
	font-size: inherit;
	line-height: normal;
	box-shadow: none;
}

/* ---------- Section head ---------- */

.carbs-brands-top {
	margin-bottom: 18px;
}

.carbs-brands-heading {
	margin: 0 0 4px;
	font-family: var(--tpc-font-heading);
	font-size: 24px;
	font-weight: 700;
	color: var(--tpc-black);
}

.carbs-brands-subheading {
	margin: 0;
	font-size: 14px;
	color: var(--tpc-gray);
}

/* ---------- Viewport + nav arrows ---------- */

.carbs-brands-viewport {
	position: relative;
}

.carbs-brands-swiper {
	overflow: hidden;
	padding: 2px 2px 6px;
}

.carbs-brands-swiper .swiper-slide {
	height: auto;
	display: flex;
}

.carbs-brands-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	background: var(--tpc-white);
	border: 1px solid var(--tpc-border);
	box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tpc-black);
	cursor: pointer;
	transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.carbs-brands-nav i {
	font-size: 13px;
	line-height: 1;
}

.carbs-brands-nav:hover {
	background: var(--tpc-red);
	border-color: var(--tpc-red);
	color: var(--tpc-white);
}

.carbs-brands-nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.carbs-brands-nav-prev {
	left: -17px;
}

.carbs-brands-nav-next {
	right: -17px;
}

@media (max-width: 640px) {
	.carbs-brands-nav {
		display: none;
	}
}

/* ---------- Card ---------- */

.carbs-brand-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 18px 12px;
	background: var(--tpc-white);
	border: 1px solid var(--tpc-border);
	border-radius: var(--carbs-b-radius);
	text-decoration: none;
	text-align: center;
	transition: box-shadow 250ms ease, transform 250ms ease, border-color 250ms ease;
}

.carbs-brand-card:hover {
	box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
	transform: translateY(-2px);
	border-color: var(--tpc-red);
}

.carbs-brand-card-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 40px;
	color: var(--tpc-gray);
}

.carbs-brand-card-logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.carbs-brand-card-logo svg {
	width: 28px;
	height: 28px;
}

.carbs-brand-card-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--tpc-black);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
