/*
 * Ventureheap Builder - base tokens and primitives.
 * Loaded by every widget. Everything else layers on top.
 */

:root {
	--vhb-primary: var(--vh-color-primary, #1a56db);
	--vhb-secondary: var(--vh-color-secondary, #0f172a);
	--vhb-accent: var(--vh-color-accent, #f59e0b);
	--vhb-text: var(--vh-color-text, #1f2937);
	--vhb-muted: var(--vh-color-muted, #6b7280);
	--vhb-bg: var(--vh-color-bg, #ffffff);
	--vhb-alt: var(--vh-color-alt, #f7f8fa);
	--vhb-border: var(--vh-color-border, #e5e7eb);
	--vhb-radius: var(--vh-radius, 12px);
	--vhb-radius-btn: var(--vh-radius-button, 8px);
	--vhb-gap: 24px;
	--vhb-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .07);
	--vhb-transition: .2s ease;
	--vhb-ratio-16-10: 16 / 10;
	--vhb-ratio-16-9: 16 / 9;
	--vhb-ratio-4-3: 4 / 3;
	--vhb-ratio-1-1: 1 / 1;
	--vhb-ratio-auto: auto;
}

/* Grid -------------------------------------------------------------------- */
.vhb-grid {
	display: grid;
	gap: var(--vhb-gap);
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Buttons ----------------------------------------------------------------- */
.vhb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	padding: .8rem 1.4rem;
	border: 1px solid transparent;
	border-radius: var(--vhb-radius-btn);
	background: var(--vhb-primary);
	color: #fff;
	cursor: pointer;
	transition: background var(--vhb-transition), color var(--vhb-transition), border-color var(--vhb-transition);
}

.vhb-btn:hover, .vhb-btn:focus-visible { filter: brightness(.92); color: #fff; text-decoration: none; }

.vhb-btn--secondary { background: var(--vhb-secondary); }
.vhb-btn--accent { background: var(--vhb-accent); color: var(--vhb-secondary); }

.vhb-btn--outline {
	background: transparent;
	color: var(--vhb-primary);
	border-color: currentColor;
}

.vhb-btn--outline:hover, .vhb-btn--outline:focus-visible { background: var(--vhb-primary); color: #fff; filter: none; }

.vhb-btn--link {
	background: none;
	color: var(--vhb-primary);
	padding: 0;
	border: 0;
	font-weight: 600;
}

.vhb-btn--link:hover, .vhb-btn--link:focus-visible { color: var(--vhb-primary); filter: none; text-decoration: underline; }
.vhb-btn--link::after { content: " \2192"; }

.vhb-btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.vhb-btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

.vhb-btn__icon { display: inline-flex; }
.vhb-btn__icon svg { width: 1em; height: 1em; fill: currentColor; }

/* Section title ----------------------------------------------------------- */
.vhb-section-title { margin-bottom: 2rem; }
.vhb-section-title.vhb-align-center { margin-inline: auto; }
.vhb-section-title__eyebrow {
	margin: 0 0 .5rem;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vhb-primary);
}
.vhb-section-title__heading { margin: 0 0 .6rem; color: var(--vhb-secondary); }
.vhb-section-title__text { color: var(--vhb-muted); }
.vhb-section-title__text p:last-child { margin-bottom: 0; }

/* Ratings ----------------------------------------------------------------- */
.vhb-rating {
	position: relative;
	display: inline-block;
	width: 5.6em;
	height: 1em;
	font-size: 1rem;
	line-height: 1;
	overflow: hidden;
	color: var(--vhb-accent);
	vertical-align: middle;
}

.vhb-rating::before,
.vhb-rating-fill::before {
	content: "\2605\2605\2605\2605\2605";
	letter-spacing: .12em;
	position: absolute;
	inset: 0;
	white-space: nowrap;
}

.vhb-rating::before { color: var(--vhb-border); }

.vhb-rating-fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	color: inherit;
}

/* Badges ------------------------------------------------------------------ */
.vhb-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: .25rem .6rem;
	font-size: .74rem;
	font-weight: 700;
	line-height: 1.5;
	border-radius: 999px;
	color: #fff;
	background: var(--vhb-primary);
}

.vhb-badge--sale { background: var(--vhb-accent); color: var(--vhb-secondary); }
.vhb-badge--oos { top: auto; bottom: 10px; background: var(--vhb-secondary); }
.vhb-badge--backorder { top: auto; bottom: 10px; background: var(--vhb-muted); }

/* Utilities --------------------------------------------------------------- */
.vhb-align-left { text-align: left; }
.vhb-align-center { text-align: center; }
.vhb-align-right { text-align: right; }

.vhb-empty {
	padding: 1.5rem;
	background: var(--vhb-alt);
	border-radius: var(--vhb-radius);
	color: var(--vhb-muted);
	text-align: center;
}

.vhb-placeholder {
	padding: 1.25rem;
	border: 1px dashed var(--vhb-border);
	border-radius: var(--vhb-radius);
	color: var(--vhb-muted);
	font-size: .9rem;
	text-align: center;
	background: var(--vhb-alt);
}

.vhb-pagination { margin-top: 2rem; }
.vhb-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.vhb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--vhb-border);
	border-radius: var(--vhb-radius-btn);
	color: var(--vhb-secondary);
	font-weight: 600;
	text-decoration: none;
}
.vhb-pagination .current { background: var(--vhb-primary); border-color: var(--vhb-primary); color: #fff; }

.vhb-icon svg { width: 1em; height: 1em; fill: currentColor; }

/* Screen reader text, in case the active theme does not define it. */
.vhb-lead-form .screen-reader-text,
.vhb-carousel .screen-reader-text,
.vhb-product-card .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.vhb-grid *, .vhb-carousel * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ------------------------------------------------------------ Mobile pass */
@media (max-width: 782px) {
	:root { --vhb-gap: 18px; }

	.vhb-section-title { margin-bottom: 1.4rem; }
	.vhb-btn { padding: .75rem 1.2rem; }
	.vhb-btn--lg { padding: .85rem 1.5rem; font-size: 1rem; }

	/* Buttons laid out on one row wrap to full width rather than squashing. */
	.vhb-pv-inline .vhb-btn,
	.elementor-widget-vhb-button .vhb-btn { width: auto; }

	.vhb-pagination .page-numbers { min-width: 40px; height: 40px; }
}

@media (max-width: 480px) {
	.vhb-btn { width: 100%; justify-content: center; }
	.vhb-btn--link { width: auto; }
}
