/* ---------- Slider core ---------- */
.vcbp-slider { position: relative; overflow: hidden; }
.vcbp-slider-track { display: flex; will-change: transform; }
.vcbp-slider-slide { box-sizing: border-box; padding: 0 10px; }

.vcbp-slider-prev,
.vcbp-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}
.vcbp-slider-prev { left: 5px; }
.vcbp-slider-next { right: 5px; }

.vcbp-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}
.vcbp-slider-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d5d5d5;
	cursor: pointer;
}
.vcbp-slider-dot.is-active { background: #333; }

/* ---------- Testimonial ---------- */
.vcbp-testimonial-card {
	padding: 28px;
	border-radius: 10px;
	text-align: center;
}
.vcbp-testimonial-photo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 12px;
}
.vcbp-testimonial-rating { margin-bottom: 10px; }
.vcbp-testimonial-content { margin-bottom: 14px; }
.vcbp-testimonial-name { font-weight: 700; }
.vcbp-testimonial-role { opacity: .7; font-size: 13px; }

/* ---------- Banner ---------- */
.vcbp-banner {
	position: relative;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	border-radius: 6px;
}
.vcbp-banner-overlay { position: absolute; inset: 0; }
.vcbp-banner-inner { position: relative; z-index: 1; padding: 40px; width: 100%; }
.vcbp-banner-heading { margin: 0 0 10px; font-size: 34px; }
.vcbp-banner-sub { margin: 0 0 18px; }
.vcbp-banner-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
}

/* ---------- Loop / Archive cards ---------- */
.vcbp-loop-card, .vcbp-archive-card, .vcbp-product-card {
	border-radius: 8px;
	overflow: hidden;
}
.vcbp-loop-card img, .vcbp-archive-card img, .vcbp-product-card img { width: 100%; height: auto; display: block; }
.vcbp-loop-card-title, .vcbp-archive-card-title, .vcbp-product-title { font-size: 16px; margin: 10px 0 4px; padding: 0 6px; }
.vcbp-loop-card-price, .vcbp-product-price { padding: 0 6px 10px; font-weight: 600; }

/* ---------- Popup ---------- */
.vcbp-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.6);
	z-index: 99999;
	align-items: center;
	justify-content: center;
}
.vcbp-popup-box {
	position: relative;
	background: #fff;
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow: auto;
	border-radius: 8px;
	padding: 10px;
}
.vcbp-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

/* ---------- Dynamic / Theme Builder widgets ---------- */
.vcbp-author-box { display:flex; align-items:flex-start; gap:18px; }
.vcbp-author-box img { flex:0 0 auto; border-radius:50%; }
.vcbp-author-name { margin:0 0 6px; }
.vcbp-author-bio > :first-child { margin-top:0; }
.vcbp-author-bio > :last-child { margin-bottom:0; }

.vcbp-post-navigation { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.vcbp-post-navigation a { display:flex; flex-direction:column; gap:4px; text-decoration:none; }
.vcbp-post-nav-next { text-align:right; }

.vcbp-archive-grid,
.vcbp-product-grid { align-items:stretch; }
.vcbp-archive-card,
.vcbp-product-card { min-width:0; }
.vcbp-archive-card-excerpt { padding:0 6px 12px; }

.vcbp-product-rating .star-rating { display:inline-block; vertical-align:middle; }
.vcbp-product-meta > div + div { margin-top:6px; }
.vcbp-dynamic-field { overflow-wrap:anywhere; }

@media (max-width: 767px) {
	.vcbp-post-navigation { grid-template-columns:1fr; }
	.vcbp-post-nav-next { text-align:left; }
	.vcbp-archive-grid,
	.vcbp-product-grid { grid-template-columns:1fr !important; }
}
