/**
 * HYPE visual foundation: type, surfaces, radius, shadows, buttons, links, states.
 * Header/footer structure, homepage, and Woo templates are unchanged.
 */

html {
	background-color: var(--hype-canvas);
}

body {
	font-family: var(--hype-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--hype-ink);
	background-color: var(--hype-canvas);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--hype-font);
	font-weight: 600;
	color: var(--hype-ink);
	letter-spacing: var(--hype-tracking-tight);
	margin: 0.9rem 0;
}

h1,
h2 {
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.05;
}

h3 {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

h4,
h5,
h6 {
	font-size: 14px;
	line-height: 1.3;
}

.ct-container,
.ct-container-full,
#main-container,
.site-content {
	border-radius: var(--hype-radius);
}

img,
input,
select,
textarea,
button,
.ct-button,
.button,
.wp-element-button,
.wp-block-button__link,
.ct-card,
.entry-card,
.product {
	border-radius: var(--hype-radius);
}

.ct-card,
.entry-card,
#header,
#footer,
.ct-header,
.site-header,
.site-footer {
	box-shadow: var(--hype-shadow);
}

a {
	color: var(--hype-ink);
	text-decoration: none;
}

a:hover {
	color: var(--hype-heat);
	text-decoration: underline;
}
	
.ct-button,
.button,
[type="submit"],
.wp-element-button,
.wp-block-button__link,
.woocommerce button.button,
.woocommerce a.button,
.added_to_cart {
	font-family: var(--hype-font);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: var(--hype-tracking-label);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hype-on-ink);
	background-color: var(--hype-ink);
	border: 1px solid var(--hype-ink);
	border-radius: var(--hype-radius);
	box-shadow: none;
	min-height: 44px;
	padding: 14px 24px;
}

.ct-button:hover,
.button:hover,
[type="submit"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.added_to_cart:hover {
	color: var(--hype-ink);
	background-color: transparent;
	border-color: var(--hype-ink);
	box-shadow: none;
	text-decoration: none;
	transform: none;
}

.ct-button-ghost {
	color: var(--hype-ink);
	background-color: transparent;
	border: 1px solid var(--hype-ink);
}

.ct-button-ghost:hover,
.button.wc-forward:not(.checkout):hover,
.woocommerce a.button.wc-forward:not(.checkout):hover {
	color: var(--hype-heat);
	background-color: transparent;
	border-color: var(--hype-heat);
}

.ct-button:disabled,
.ct-button.disabled,
.button:disabled,
.button.disabled,
[type="submit"]:disabled,
[type="submit"].disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.disabled {
	opacity: 1;
	cursor: not-allowed;
	color: var(--hype-sold);
	background-color: var(--hype-line);
	border-color: var(--hype-line);
	box-shadow: none;
	transform: none;
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--hype-focus);
	outline-offset: 2px;
}

.ct-button:focus-visible,
.button:focus-visible,
[type="submit"]:focus-visible,
.wp-element-button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--hype-focus);
	outline-offset: 2px;
}

input,
select,
textarea,
.ct-select-input {
	font-family: var(--hype-font);
	color: var(--hype-ink);
	background-color: var(--hype-surface);
	border-color: var(--hype-line);
	border-radius: var(--hype-radius);
}

::placeholder {
	color: var(--hype-mute);
}

.hype-price,
.price,
.woocommerce-Price-amount {
	font-family: var(--hype-mono);
	font-variant-numeric: tabular-nums;
}

@keyframes hype-enter {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.hype-home > .hype-hero,
.hype-home > .hype-editorial-hero,
.hype-home > .hype-home-section,
.hype-plp__intro,
.hype-plp__layout,
.single-product div.product .woocommerce-product-gallery,
.single-product .hype-pdp__info,
.single-product .hype-pdp__buy {
	animation: hype-enter var(--hype-duration-enter) var(--hype-ease-out) both;
}

.hype-home > :nth-child(2) {
	animation-delay: 40ms;
}

.hype-home > :nth-child(3) {
	animation-delay: 70ms;
}

.hype-home > :nth-child(n + 4) {
	animation-delay: 80ms;
}

@keyframes hype-enter-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.hype-plp__layout,
.single-product .hype-pdp__info,
.single-product .hype-pdp__buy {
	animation-delay: 50ms;
}

.single-product .hype-pdp__info,
.single-product .hype-pdp__buy {
	animation-name: hype-enter-fade;
}

:root:active-view-transition .hype-home > .hype-hero,
:root:active-view-transition .hype-home > .hype-editorial-hero,
:root:active-view-transition .hype-home > .hype-home-section,
:root:active-view-transition .hype-plp__intro,
:root:active-view-transition .hype-plp__layout,
:root:active-view-transition .single-product div.product .woocommerce-product-gallery,
:root:active-view-transition .single-product .hype-pdp__info,
:root:active-view-transition .single-product .hype-pdp__buy {
	animation: none;
}

@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 280ms;
	animation-timing-function: var(--hype-ease-out);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}

	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation-duration: 0.01ms !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
}
