/* =========================================================================
   Voley PLT — base
   Design tokens, scoped reset, container and shared primitives.
   Everything is namespaced under .voley-root so the theme is left alone.
   ========================================================================= */

.voley-root {
	/* Brand ------------------------------------------------------------- */
	--v-accent: #f6891e;
	--v-accent-ink: #d9741a;
	--v-accent-soft: rgba(246, 137, 30, 0.12);

	/* Neutrals ---------------------------------------------------------- */
	--v-black: #000;
	--v-ink: #111213;
	--v-ink-2: #1b1c1e;
	--v-ink-3: #26282a;
	--v-white: #fff;
	--v-grey-50: #f7f7f7;
	--v-grey-100: #f1f1f1;
	--v-grey-150: #e9e9ea;
	--v-grey-200: #e0e0e1;
	--v-grey-300: #c9cacb;
	--v-grey-500: #8d8f92;
	--v-grey-600: #6a6c6f;
	--v-grey-700: #4a4c4f;
	--v-line: rgba(17, 18, 19, 0.1);
	--v-line-soft: rgba(17, 18, 19, 0.06);

	/* Type -------------------------------------------------------------- */
	--v-font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--v-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--v-fs-h1: 29px;
	--v-fs-h2: 26px;
	--v-fs-h3: 18px;
	--v-fs-body: 15px;
	--v-fs-sm: 13.5px;
	--v-fs-xs: 12px;
	--v-fs-eyebrow: 11px;

	/* Layout ------------------------------------------------------------ */
	--v-max: 1340px;
	--v-gutter: 20px;
	--v-header-h: 60px;
	--v-section: 84px;
	--v-gap: 20px;
	--v-r-card: 14px;
	--v-r-sm: 8px;
	--v-r-pill: 999px;
	--v-shadow: 0 1px 2px rgba(17, 18, 19, 0.04), 0 12px 28px -18px rgba(17, 18, 19, 0.28);
	--v-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	/* Always paint our own canvas: never inherit a dark theme background. */
	color-scheme: light;
	background: var(--v-white);
	font-family: var(--v-font-body);
	font-size: var(--v-fs-body);
	font-weight: 400;
	line-height: 1.65;
	color: var(--v-ink);
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

/* Scoped reset ------------------------------------------------------------
   Element selectors are wrapped in :where() so they carry no specificity —
   a single class further down always wins, no !important needed. */
.voley-root *,
.voley-root *::before,
.voley-root *::after {
	box-sizing: border-box;
}

.voley-root :where(h1, h2, h3, h4, p, figure, ul, ol, dl) {
	margin: 0;
	padding: 0;
}

.voley-root :where(ul, ol) {
	list-style: none;
}

.voley-root :where(img, svg, video) {
	display: block;
	max-width: 100%;
}

.voley-root :where(img) {
	height: auto;
}

.voley-root :where(a) {
	color: inherit;
	text-decoration: none;
}

.voley-root :where(button, input, select) {
	font: inherit;
	color: inherit;
}

.voley-root :where(button) {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	line-height: inherit;
}

.voley-root :where(del) {
	text-decoration: line-through;
}

.voley-root :where(ins) {
	text-decoration: none;
}

.voley-root :focus-visible {
	outline: 2px solid var(--v-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

.voley-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Layout ------------------------------------------------------------------ */
.voley-container {
	width: 100%;
	max-width: var(--v-max);
	margin-inline: auto;
}

/* Escape a theme's constrained content width for full-bleed bands. */
.voley-bleed {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
}

.voley-section {
	padding-block: var(--v-section);
}

/* Type -------------------------------------------------------------------- */
/*
 * Headings inherit color from .voley-root by default, which is only enough
 * specificity to lose to a theme/page-builder rule that targets h1-h6
 * directly (Elementor + some themes ship exactly that). Set color explicitly,
 * double-scoped to .voley-root so it wins regardless of load order.
 */
.voley-root.voley-root :where(h1, h2, h3, h4) {
	color: var(--v-ink);
}

.voley-root :where(h1, h2),
.voley-h1,
.voley-h2 {
	font-family: var(--v-font-display);
	font-weight: 800;
	font-style: italic;
	line-height: 1.12;
	letter-spacing: -0.004em;
	word-spacing: 0.06em;
	text-transform: uppercase;
}

.voley-root :where(h1),
.voley-h1 {
	font-size: var(--v-fs-h1);
}

.voley-root :where(h2),
.voley-h2 {
	font-size: var(--v-fs-h2);
}

.voley-root :where(h3) {
	font-family: var(--v-font-body);
	font-size: var(--v-fs-h3);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.voley-eyebrow {
	display: block;
	margin-bottom: 10px;
	font-size: var(--v-fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--v-accent);
}

.voley-sub {
	max-width: 52ch;
	font-size: var(--v-fs-body);
	color: var(--v-grey-600);
}

/* Section head ------------------------------------------------------------ */
.voley-shead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 34px;
}

.voley-shead .voley-h2 {
	margin-bottom: 10px;
}

.voley-shead .voley-sub {
	max-width: 44ch;
}

/* Buttons ----------------------------------------------------------------- */
.voley-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 26px;
	border-radius: var(--v-r-pill);
	background: var(--v-accent);
	color: var(--v-white);
	font-family: var(--v-font-display);
	font-size: var(--v-fs-sm);
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.25s var(--v-ease), transform 0.25s var(--v-ease);
}

.voley-btn:hover {
	background: var(--v-accent-ink);
	transform: translateY(-1px);
}

.voley-btn--sm {
	height: 38px;
	padding: 0 20px;
	font-size: var(--v-fs-xs);
}

.voley-btn--dark {
	background: var(--v-ink);
}

.voley-btn--dark:hover {
	background: var(--v-black);
}

.voley-btn--block {
	display: flex;
	width: 100%;
}

/* Label + circular arrow pill */
.voley-pill {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex: none;
	height: 46px;
	padding: 0 6px 0 22px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	background: var(--v-white);
	font-size: var(--v-fs-sm);
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.25s var(--v-ease), background-color 0.25s var(--v-ease), color 0.25s var(--v-ease);
}

.voley-pill i {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--v-ink);
	color: var(--v-white);
	transition: background-color 0.25s var(--v-ease), transform 0.35s var(--v-ease);
}

.voley-pill:hover {
	border-color: var(--v-ink);
	background: var(--v-ink);
	color: var(--v-white);
}

.voley-pill:hover i {
	background: var(--v-accent);
	transform: translateX(2px);
}

.voley-textlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--v-fs-sm);
	font-weight: 600;
	color: var(--v-white);
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	padding-bottom: 3px;
	transition: color 0.25s var(--v-ease), border-color 0.25s var(--v-ease);
}

.voley-textlink svg {
	transition: transform 0.3s var(--v-ease);
}

.voley-textlink:hover {
	color: var(--v-accent);
	border-color: var(--v-accent);
}

.voley-textlink:hover svg {
	transform: translateX(3px);
}

.voley-textlink--dark {
	color: var(--v-ink);
	border-color: var(--v-line);
}

/* Circle nav buttons ------------------------------------------------------ */
.voley-navbtns {
	display: flex;
	gap: 10px;
	flex: none;
}

.voley-navbtn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--v-line);
	background: var(--v-white);
	color: var(--v-ink);
	transition: background-color 0.25s var(--v-ease), color 0.25s var(--v-ease), border-color 0.25s var(--v-ease), opacity 0.25s var(--v-ease);
}

.voley-navbtn:hover:not(:disabled) {
	background: var(--v-ink);
	border-color: var(--v-ink);
	color: var(--v-white);
}

.voley-navbtn--next {
	background: var(--v-accent);
	border-color: var(--v-accent);
	color: var(--v-white);
}

.voley-navbtn--next:hover:not(:disabled) {
	background: var(--v-accent-ink);
	border-color: var(--v-accent-ink);
}

.voley-navbtn:disabled {
	opacity: 0.32;
	cursor: default;
}

/* Stars ------------------------------------------------------------------- */
.voley-stars {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.voley-stars__base,
.voley-stars__fill {
	display: flex;
	gap: 2px;
}

.voley-stars__base {
	color: var(--v-grey-200);
}

.voley-stars__fill {
	position: absolute;
	inset: 0;
	overflow: hidden;
	color: var(--v-accent);
}

.voley-stars svg {
	fill: currentColor;
	flex: none;
}

.voley-stars__count {
	margin-left: 7px;
	font-size: var(--v-fs-xs);
	color: var(--v-grey-500);
}

/* Checklist --------------------------------------------------------------- */
.voley-checks {
	display: grid;
	gap: 12px;
}

.voley-checks li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: var(--v-fs-body);
	font-weight: 500;
}

.voley-checks i {
	display: grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	border-radius: var(--v-r-sm);
	background: var(--v-accent-soft);
	color: var(--v-accent);
}

/* Post card ---------------------------------------------------------------
   Shared by the homepage "News & events" grid and the blog index, so both
   pages show the exact same card. */
.voley-post {
	display: flex;
	flex-direction: column;
	padding: 14px 14px 24px;
	border: 1px solid var(--v-line-soft);
	border-radius: var(--v-r-card);
	background: var(--v-white);
	text-align: center;
	transition: transform 0.35s var(--v-ease), box-shadow 0.35s var(--v-ease);
}

.voley-post:hover {
	transform: translateY(-3px);
	box-shadow: var(--v-shadow);
}

.voley-post__media {
	position: relative;
	aspect-ratio: 4 / 2.9;
	margin-bottom: 20px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--v-grey-100);
}

.voley-root .voley-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Blog / Event tag, top-left so it never collides with the meta pill. */
.voley-post__type {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 4px 10px;
	border-radius: var(--v-r-pill);
	background: var(--v-accent);
	font-size: var(--v-fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--v-white);
}

.voley-post__meta {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 5px 11px;
	border-radius: var(--v-r-pill);
	background: rgba(255, 255, 255, 0.94);
	font-size: var(--v-fs-xs);
	font-weight: 600;
	color: var(--v-ink);
}

.voley-root.voley-root .voley-post__title {
	color: var(--v-ink);
	font-family: var(--v-font-display);
	font-size: var(--v-fs-h3);
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.voley-post__text {
	max-width: 34ch;
	margin: 0 auto 20px;
	font-size: var(--v-fs-sm);
	line-height: 1.6;
	color: var(--v-grey-600);
}

/* Keep the CTA on one baseline no matter how long the copy runs. */
.voley-post .voley-textlink {
	margin-top: auto;
	align-self: center;
}

/* Product card ------------------------------------------------------------
   Rendered by voley_product_card() on the homepage slider and by the
   WooCommerce shop archive, so the two always match. Slider-only behaviour
   stays in home.css. */
.voley-product__media {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--v-r-card);
	background: var(--v-grey-50);
	overflow: hidden;
}

.voley-root .voley-product__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--v-ease);
}

.voley-product:hover .voley-root .voley-product__media img {
	transform: scale(1.04);
}

.voley-product__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.voley-product__badge {
	position: absolute;
	top: 13px;
	left: 13px;
	z-index: 2;
	padding: 5px 10px 4px;
	border-radius: var(--v-r-pill);
	background: var(--v-ink);
	color: var(--v-white);
	font-family: var(--v-font-display);
	font-size: 10px;
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.voley-product__badge.is-sale {
	background: var(--v-accent);
}

.voley-product__add {
	position: absolute;
	right: 13px;
	bottom: 13px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--v-white);
	color: var(--v-ink);
	box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s var(--v-ease), transform 0.25s var(--v-ease), background-color 0.25s var(--v-ease), color 0.25s var(--v-ease);
}

.voley-product:hover .voley-product__add,
.voley-product__add:focus-visible {
	opacity: 1;
	transform: none;
}

.voley-product__add:hover {
	background: var(--v-accent);
	color: var(--v-white);
}

.voley-product__add.loading {
	opacity: 1;
	transform: none;
}

.voley-product__add.added::after {
	display: none;
}

.voley-product__body {
	padding-top: 15px;
}

.voley-product__rating {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

/* The homepage renders this as an h3, WooCommerce's loop as an h2 — and h2
   picks up the italic uppercase display treatment. Every inherited property is
   therefore restated, so the tile looks the same whichever tag it lands on. */
.voley-root.voley-root .voley-product__title {
	color: var(--v-ink);
	font-family: var(--v-font-body);
	font-size: var(--v-fs-body);
	font-style: normal;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.4;
	word-spacing: normal;
	text-transform: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.voley-product__title a:hover {
	color: var(--v-accent-ink);
}

.voley-product__meta {
	margin-top: 4px;
	font-size: var(--v-fs-xs);
	color: var(--v-grey-500);
}

.voley-product__price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 10px;
}

.voley-product__price del {
	font-size: var(--v-fs-sm);
	color: var(--v-grey-500);
}

.voley-product__price ins {
	font-size: var(--v-fs-body);
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Reveal on scroll -------------------------------------------------------- */
[data-voley-reveal] {
	opacity: 1;
}

.voley-root.js [data-voley-reveal] {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s var(--v-ease), transform 0.6s var(--v-ease);
}

.voley-root.js [data-voley-reveal].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.voley-root.js [data-voley-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.voley-root *,
	.voley-root *::before,
	.voley-root *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1379px) {
	.voley-container {
		padding-inline: var(--v-gutter);
	}
}

@media (max-width: 900px) {
	/* No hover on touch, so the add-to-cart button is always visible there.
	   Lives here rather than home.css because the shop archive uses the same
	   card and never loads home.css. */
	.voley-product__add {
		opacity: 1;
		transform: none;
	}

	.voley-root {
		--v-section: 60px;
		--v-header-h: 52px;
		--v-gap: 16px;
	}

	.voley-shead {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		margin-bottom: 26px;
	}
}
