/*
Theme Name: Vaffyn Cosmos
Theme URI: https://vaffyn.com/
Author: Vaffyn
Description: A cinematic single-product WooCommerce theme for light, atmosphere, and night.
Requires at least: 6.6
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
Text Domain: vaffyn-cosmos
Tags: block-patterns, block-styles, e-commerce, full-site-editing, translation-ready, wide-blocks
*/

:root {
	--vfc-void: #050711;
	--vfc-night: #0b1024;
	--vfc-orbit: #182653;
	--vfc-iris: #596cff;
	--vfc-violet: #a895ff;
	--vfc-moon: #f4f2ed;
	--vfc-mist: #c7c9d8;
	--vfc-line: rgba(244, 242, 237, 0.18);
	--vfc-glow: 0 0 5rem rgba(89, 108, 255, 0.22);
	--vfc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
	scroll-behavior: smooth;
}

body {
	background:
		radial-gradient(circle at 82% 8%, rgba(89, 108, 255, 0.13), transparent 32rem),
		var(--vfc-void);
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--vfc-violet);
	color: var(--vfc-void);
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 2px solid var(--vfc-violet);
	outline-offset: 4px;
}

.wp-site-blocks,
.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-site-blocks {
	min-height: 100vh;
}

.vfc-section {
	padding-block: clamp(5rem, 10vw, 10rem);
}

.vfc-section--compact {
	padding-block: clamp(3rem, 6vw, 6rem);
}

.vfc-eyebrow {
	color: var(--vfc-violet);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.69rem;
	font-weight: 650;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.vfc-muted {
	color: rgba(244, 242, 237, 0.67);
}

.vfc-site-header {
	background: linear-gradient(180deg, rgba(5, 7, 17, 0.84), rgba(5, 7, 17, 0));
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 20;
}

.admin-bar .vfc-site-header {
	top: 32px;
}

.vfc-header-inner {
	border-bottom: 1px solid rgba(244, 242, 237, 0.14);
	min-height: 5.4rem;
}

.vfc-header-inner .wp-block-site-title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	margin: 0;
	text-transform: uppercase;
}

.vfc-main-nav {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.vfc-main-nav a,
.vfc-header-actions button {
	color: var(--vfc-moon);
}

.vfc-header-actions .wc-block-mini-cart__badge {
	background: var(--vfc-iris);
	color: var(--vfc-moon);
}

.vfc-hero {
	align-items: center;
	background:
		linear-gradient(90deg, rgba(5, 7, 17, 0.92) 0%, rgba(5, 7, 17, 0.62) 42%, rgba(5, 7, 17, 0.08) 74%),
		url("assets/images/cosmos-hero.jpg") center / cover no-repeat;
	box-sizing: border-box;
	display: flex;
	min-height: min(58rem, 100svh);
	padding-top: 6rem;
	position: relative;
}

.vfc-hero::after {
	background: linear-gradient(180deg, transparent 72%, var(--vfc-void));
	bottom: 0;
	content: "";
	height: 32%;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
}

.vfc-hero-copy {
	position: relative;
	z-index: 2;
}

.vfc-hero h1 {
	font-size: clamp(3.8rem, 8.8vw, 8.4rem);
	line-height: 0.91;
	margin-block: 1.5rem;
	max-width: 8ch;
	text-wrap: balance;
}

.vfc-hero-lede {
	color: rgba(244, 242, 237, 0.76);
	font-family: var(--wp--preset--font-family--sans);
	font-size: clamp(0.95rem, 1.4vw, 1.14rem);
	line-height: 1.75;
	max-width: 34rem;
}

.vfc-hero .wp-block-button.is-style-outline .wp-element-button {
	background: transparent;
	border-color: rgba(244, 242, 237, 0.58);
	color: var(--vfc-moon);
}

.vfc-orbit-note {
	bottom: 3rem;
	color: rgba(244, 242, 237, 0.55);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.63rem;
	letter-spacing: 0.17em;
	position: absolute;
	right: clamp(1.25rem, 4vw, 3.25rem);
	text-transform: uppercase;
	z-index: 2;
}

.vfc-intro {
	background:
		radial-gradient(circle at 30% 45%, rgba(89, 108, 255, 0.13), transparent 24rem),
		var(--vfc-void);
}

.vfc-intro h2 {
	font-size: clamp(2.5rem, 5.5vw, 5.8rem);
	max-width: 15ch;
}

.vfc-intro-copy {
	border-left: 1px solid var(--vfc-line);
	box-sizing: border-box;
	padding-left: clamp(1.5rem, 4vw, 4rem);
}

.vfc-modes {
	border-block: 1px solid var(--vfc-line);
}

.vfc-mode {
	border-left: 1px solid var(--vfc-line);
	box-sizing: border-box;
	min-height: 20rem;
	padding: clamp(2rem, 4vw, 4rem);
	position: relative;
	transition: background 400ms var(--vfc-ease);
}

.vfc-mode:hover {
	background: rgba(89, 108, 255, 0.08);
}

.vfc-mode:first-child {
	border-left: 0;
}

.vfc-mode-index {
	color: var(--vfc-violet);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.66rem;
	letter-spacing: 0.16em;
}

.vfc-mode h3 {
	font-size: clamp(2rem, 3.6vw, 3.8rem);
	margin-top: clamp(3rem, 7vw, 7rem);
}

.vfc-room {
	background: var(--vfc-night);
}

.vfc-room-visual {
	background: url("assets/images/cosmos-room.jpg") center / cover no-repeat;
	box-shadow: var(--vfc-glow);
	min-height: clamp(32rem, 58vw, 52rem);
}

.vfc-room-copy {
	box-sizing: border-box;
	padding: clamp(3rem, 7vw, 7rem);
}

.vfc-room-copy h2 {
	font-size: clamp(2.7rem, 5vw, 5.2rem);
	max-width: 10ch;
}

.vfc-texture-card {
	background:
		linear-gradient(180deg, rgba(5, 7, 17, 0.08), rgba(5, 7, 17, 0.88)),
		url("assets/images/cosmos-texture.jpg") center / cover no-repeat;
	box-sizing: border-box;
	min-height: clamp(27rem, 46vw, 42rem);
	padding: clamp(2rem, 5vw, 5rem);
	position: relative;
}

.vfc-texture-copy {
	bottom: clamp(2rem, 5vw, 5rem);
	left: clamp(2rem, 5vw, 5rem);
	max-width: 28rem;
	position: absolute;
}

.vfc-products {
	background: linear-gradient(180deg, var(--vfc-void), var(--vfc-night));
}

.vfc-products .wp-block-woocommerce-product-image {
	background: var(--vfc-night);
	overflow: hidden;
}

.vfc-products .wp-block-woocommerce-product-image img {
	transition: transform 700ms var(--vfc-ease);
}

.vfc-products li:hover .wp-block-woocommerce-product-image img {
	transform: scale(1.025);
}

.vfc-product-preview {
	background:
		linear-gradient(135deg, rgba(89, 108, 255, 0.13), rgba(168, 149, 255, 0.03)),
		var(--vfc-night);
	border: 1px solid var(--vfc-line);
	box-sizing: border-box;
	padding: clamp(2rem, 5vw, 5rem);
}

.vfc-product-preview h3 {
	font-size: clamp(2.4rem, 5vw, 5rem);
	max-width: 11ch;
}

.vfc-product-placeholder {
	align-items: flex-end;
	background:
		radial-gradient(circle at 50% 36%, rgba(89, 108, 255, 0.36), transparent 9rem),
		linear-gradient(135deg, #111b3a, #070914 65%);
	border: 1px solid rgba(244, 242, 237, 0.12);
	box-sizing: border-box;
	display: flex;
	min-height: 28rem;
	padding: 2rem;
}

.vfc-product-placeholder__orb {
	background: radial-gradient(circle at 42% 35%, #d8d9ff 0, #596cff 14%, #182653 44%, #050711 72%);
	border: 1px solid rgba(244, 242, 237, 0.24);
	border-radius: 50%;
	box-shadow: 0 0 6rem rgba(89, 108, 255, 0.34);
	height: clamp(7rem, 16vw, 13rem);
	margin: auto;
	width: clamp(7rem, 16vw, 13rem);
}

.vfc-standards {
	background: var(--vfc-moon);
	color: var(--vfc-void);
}

.vfc-standards .vfc-eyebrow,
.vfc-standards a {
	color: var(--vfc-orbit);
}

.vfc-standard {
	border-top: 1px solid rgba(5, 7, 17, 0.18);
	padding-block: 1.5rem;
}

.vfc-faq {
	background: var(--vfc-night);
}

.vfc-faq details {
	border-top: 1px solid var(--vfc-line);
	padding-block: 1.35rem;
}

.vfc-faq summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.vfc-faq details p {
	color: rgba(244, 242, 237, 0.68);
	max-width: 42rem;
}

.vfc-site-footer {
	background: #020309;
	border-top: 1px solid var(--vfc-line);
	padding-block: clamp(3rem, 7vw, 6rem);
}

.vfc-site-footer,
.vfc-site-footer a {
	color: rgba(244, 242, 237, 0.72);
}

.vfc-footer-brand {
	color: var(--vfc-moon);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.vfc-content-shell {
	padding-block: clamp(8rem, 13vw, 12rem);
}

.woocommerce .woocommerce-breadcrumb,
.wp-block-woocommerce-breadcrumbs {
	color: rgba(244, 242, 237, 0.58);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.67rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.woocommerce :where(input, textarea, select),
.wp-block-woocommerce-cart :where(input, textarea, select),
.wp-block-woocommerce-checkout :where(input, textarea, select) {
	background: var(--vfc-night);
	border: 1px solid rgba(244, 242, 237, 0.28);
	border-radius: 0;
	color: var(--vfc-moon);
	min-height: 3rem;
}

.woocommerce :where(button.button, a.button, input.button),
.wp-block-woocommerce-cart button:not(.is-link),
.wp-block-woocommerce-checkout button:not(.is-link) {
	background: var(--vfc-moon);
	border-radius: 999px;
	color: var(--vfc-void);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.12em;
	min-height: 3rem;
	padding-inline: 1.5rem;
	text-transform: uppercase;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: var(--vfc-night);
	border-color: var(--vfc-iris);
	color: var(--vfc-moon);
}

.vfc-coming-soon-shell,
.vfc-coming-soon {
	align-items: flex-end;
	background:
		linear-gradient(90deg, rgba(5, 7, 17, 0.94), rgba(5, 7, 17, 0.42)),
		url("assets/images/cosmos-hero.jpg") center / cover no-repeat;
	box-sizing: border-box;
	color: var(--vfc-moon);
	display: flex;
	min-height: 100svh;
	padding: clamp(2rem, 7vw, 7rem);
}

.vfc-coming-soon-shell > .vfc-coming-soon {
	background: transparent;
	min-height: auto;
	padding: 0;
	width: 100%;
}

.vfc-coming-soon h1 {
	font-size: clamp(3.7rem, 9vw, 8.5rem);
	max-width: 9ch;
}

@media (max-width: 900px) {
	.admin-bar .vfc-site-header {
		top: 46px;
	}

	.vfc-room-copy {
		padding-inline: 0;
	}
}

@media (max-width: 781px) {
	.vfc-intro-copy {
		border-left: 0;
		padding-left: 0;
	}

	.vfc-mode {
		border-bottom: 1px solid var(--vfc-line);
		border-left: 0;
		min-height: 15rem;
	}

	.vfc-room-visual {
		min-height: 32rem;
	}
}

@media (max-width: 600px) {
	.vfc-header-inner {
		min-height: 4.5rem;
	}

	.vfc-header-inner .wp-block-site-title {
		font-size: 0.76rem;
	}

	.vfc-main-nav {
		order: 3;
	}

	.vfc-hero {
		background-image:
			linear-gradient(180deg, rgba(5, 7, 17, 0.62), rgba(5, 7, 17, 0.2) 45%, rgba(5, 7, 17, 0.93)),
			url("assets/images/cosmos-hero.jpg");
		background-position: 64% center;
		align-items: flex-end;
		min-height: 48rem;
		padding-bottom: 5rem;
	}

	.vfc-hero h1 {
		font-size: clamp(3.5rem, 17vw, 5.4rem);
	}

	.vfc-orbit-note {
		display: none;
	}

	.vfc-room-visual {
		min-height: 25rem;
	}

	.vfc-texture-card {
		min-height: 31rem;
	}

	.vfc-coming-soon-shell,
	.vfc-coming-soon {
		background-position: 64% center;
	}

	.single-product :where(
		.wp-block-add-to-cart-form,
		form.variations_form.cart,
		table.variations,
		table.variations tbody,
		table.variations tr,
		.single_variation_wrap,
		.woocommerce-variation-add-to-cart
	) {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	.single-product form.variations_form.cart,
	.single-product table.variations,
	.single-product table.variations :where(tbody, tr, th.label, td.value) {
		display: block;
	}

	.single-product table.variations th.label,
	.single-product table.variations td.value,
	.single-product table.variations select {
		box-sizing: border-box;
		display: block;
		margin: 0;
		max-width: 100%;
		padding-inline: 0;
		width: 100%;
	}

	.single-product table.variations th.label {
		padding-bottom: 0.6rem;
		text-align: left;
	}

	.single-product .single_variation_wrap {
		margin-top: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
