/**
 * Brands Carousel (Thương hiệu) – Styles
 * Tiêu đề giống PCTC / Shop by Brand: thanh accent vàng, chữ in hoa.
 */

.vdc-branches-widget {
	--vdc-branches-header-color: #1a73e8;
	--vdc-branches-accent: #f5d033;
	box-sizing: border-box;
}

.vdc-branches-widget *,
.vdc-branches-widget *::before,
.vdc-branches-widget *::after {
	box-sizing: border-box;
}

/* Header: giống ảnh – thanh vàng L + tiêu đề in hoa xanh + Xem tất cả */
.vdc-branches-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.vdc-branches-header-accent {
	width: 6px;
	min-width: 6px;
	height: 1.2em;
	background-color: var(--vdc-branches-accent);
	border-radius: 2px;
}

.vdc-branches-header-title {
	margin: 0;
	font-size: 20px !important;
	border-right: 1px solid #ccc;
	padding-right: 16px;
	font-weight: 700;
	color: var(--vdc-branches-header-color);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* Carousel wrap */
.vdc-branches-carousel-wrap {
	position: relative;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.vdc-branches-swiper {
	overflow: hidden;
	padding: 20px;
}

.vdc-branches-swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.vdc-branches-swiper .swiper-slide {
	height: auto;
	flex-shrink: 0;
}

/* Brand card – nền trắng, ảnh + tên thương hiệu */
.vdc-branch-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.vdc-branch-card:hover {
	border-color: #1a73e8;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vdc-branch-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.vdc-branch-image-wrap {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fafafa;
	border-radius: 4px;
}

.vdc-branch-image-wrap img.vdc-branch-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.vdc-branch-title {
	margin: 10px 0 0;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1.3;
	color: #333;
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vdc-branch-card .vdc-branch-link:hover .vdc-branch-title {
	color: #1a73e8;
}

.vdc-branches-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	color: #666;
	font-size: 0.9rem;
	text-align: center;
	padding: 16px;
}

/* Nav buttons – không nền */
.vdc-branches-carousel-wrap .swiper-button-prev,
.vdc-branches-carousel-wrap .swiper-button-next {
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border-radius: 50%;
	background: transparent;
	color: #555;
	transition: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	z-index: 15;
}

.vdc-branches-carousel-wrap .swiper-button-prev::after,
.vdc-branches-carousel-wrap .swiper-button-next::after {
	font-size: 18px;
	font-weight: 700;
}

.vdc-branches-carousel-wrap .swiper-button-prev.vdc-branch-has-custom-icon::after,
.vdc-branches-carousel-wrap .swiper-button-next.vdc-branch-has-custom-icon::after {
	content: none;
	display: none;
}

.vdc-branch-nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.vdc-branch-nav-icon svg {
	width: 24px;
	height: 24px;
	object-fit: contain;
}


.vdc-branches-carousel-wrap .swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* Vị trí nút: trong / ngoài */
.vdc-branches-nav-h-inside .vdc-branches-carousel-wrap .swiper-button-prev {
	left: 0px;
}
.vdc-branches-nav-h-inside .vdc-branches-carousel-wrap .swiper-button-next {
	right: 0px;
}

.vdc-branches-nav-h-outside .vdc-branches-carousel-wrap .swiper-button-prev {
	left: -52px;
}
.vdc-branches-nav-h-outside .vdc-branches-carousel-wrap .swiper-button-next {
	right: -52px;
}

/* Vị trí dọc nút */
.vdc-branches-widget.vdc-branches-nav-v-top .vdc-branches-carousel-wrap .swiper-button-prev,
.vdc-branches-widget.vdc-branches-nav-v-top .vdc-branches-carousel-wrap .swiper-button-next {
	top: 20px;
	bottom: auto;
	margin-top: 0;
}

.vdc-branches-widget.vdc-branches-nav-v-center .vdc-branches-carousel-wrap .swiper-button-prev,
.vdc-branches-widget.vdc-branches-nav-v-center .vdc-branches-carousel-wrap .swiper-button-next {
	top: 50%;
	bottom: auto;
	margin-top: 0;
	transform: translateY(-50%);
	background-color: transparent;
}

.vdc-branches-widget.vdc-branches-nav-v-bottom .vdc-branches-carousel-wrap .swiper-button-prev,
.vdc-branches-widget.vdc-branches-nav-v-bottom .vdc-branches-carousel-wrap .swiper-button-next {
	top: auto;
	bottom: 20px;
	margin-top: 0;
}

@media (max-width: 767px) {
	.vdc-branches-nav-h-outside .vdc-branches-carousel-wrap .swiper-button-prev {
		left: 4px;
	}
	.vdc-branches-nav-h-outside .vdc-branches-carousel-wrap .swiper-button-next {
		right: 4px;
	}
}
