/* Clubwear — tematillägg utöver theme.json ---------------------------- */

:root {
	--clubwear-radius: 12px;
	--clubwear-radius-lg: 18px;
	--clubwear-ring: color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(a):focus-visible,
:where(button):focus-visible,
:where(input):focus-visible,
:where(select):focus-visible,
:where(textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Överrubrik ---------------------------------------------------------- */

.is-style-clubwear-eyebrow {
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.6em;
}

/* Kort ---------------------------------------------------------------- */

.is-style-clubwear-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--clubwear-radius-lg);
	padding: var(--wp--preset--spacing--30);
	box-shadow: var(--wp--preset--shadow--soft);
}

.is-style-clubwear-cards > .wp-block-column {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--clubwear-radius-lg);
	padding: var(--wp--preset--spacing--30);
}

.is-style-clubwear-frame img {
	border-radius: var(--clubwear-radius-lg);
	box-shadow: var(--wp--preset--shadow--lift);
}

/* Konturknapp --------------------------------------------------------- */

.wp-block-button.is-style-clubwear-ghost .wp-block-button__link {
	background: transparent;
	color: currentColor;
	box-shadow: inset 0 0 0 1.5px currentColor;
}

.wp-block-button.is-style-clubwear-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-clubwear-ghost .wp-block-button__link:focus {
	background: currentColor;
	color: var(--wp--preset--color--base);
}

.wp-block-button__link {
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Sidhuvud ------------------------------------------------------------ */

.clubwear-header {
	position: sticky;
	top: 0;
	z-index: 30;
	backdrop-filter: saturate(1.4) blur(10px);
	background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.clubwear-header .wp-block-navigation__responsive-container-open,
.clubwear-header .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--contrast);
}

.clubwear-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--primary);
}

.clubwear-announcement {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Hjältesektion ------------------------------------------------------- */

.clubwear-hero {
	position: relative;
	isolation: isolate;
	border-radius: var(--clubwear-radius-lg);
	overflow: hidden;
}

.clubwear-hero .wp-block-cover__background {
	mix-blend-mode: normal;
}

.clubwear-hero h1 {
	text-wrap: balance;
}

.clubwear-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
	max-width: 44ch;
	text-wrap: pretty;
}

.has-ink-fade-gradient-background,
.has-ink-side-gradient-background {
	color: var(--wp--preset--color--base);
}

/* Rullande band ------------------------------------------------------- */

.clubwear-marquee {
	overflow: hidden;
	border-block: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	padding-block: 0.75rem;
}

.clubwear-marquee p {
	margin: 0;
	display: inline-block;
	width: max-content;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	animation: clubwear-scroll 26s linear infinite;
}

@keyframes clubwear-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.clubwear-marquee p { animation: none; white-space: normal; text-align: center; }
	.wp-block-button__link:hover { transform: none; }
}

/* Kategoribrickor ----------------------------------------------------- */

.wp-block-cover.clubwear-tile {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
}

.wp-block-cover.clubwear-tile > .wp-block-cover__inner-container {
	margin-top: auto;
}

.clubwear-tile {
	position: relative;
	border-radius: var(--clubwear-radius-lg);
	overflow: hidden;
}

.clubwear-tile img {
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.clubwear-tile:hover img {
	transform: scale(1.045);
}

/* WooCommerce --------------------------------------------------------- */

.woocommerce ul.products,
.wc-block-grid__products {
	--clubwear-card-gap: var(--wp--preset--spacing--30);
}

.woocommerce ul.products li.product,
.wc-block-grid__product,
.wp-block-post-template > li.product {
	position: relative;
	border-radius: var(--clubwear-radius-lg);
	overflow: hidden;
	background: var(--wp--preset--color--base);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
	box-shadow: var(--wp--preset--shadow--lift);
	transform: translateY(-2px);
}

.woocommerce ul.products li.product img,
.wc-block-grid__product-image img {
	border-radius: var(--clubwear-radius);
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: -0.01em;
	padding-top: 0.6em;
}

.woocommerce ul.products li.product .price,
.wc-block-grid__product-price {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.woocommerce ul.products li.product .price del {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.woocommerce span.onsale,
.wc-block-grid__product-onsale {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0.35em 0.9em;
	min-height: 0;
	min-width: 0;
	line-height: 1.4;
}

.woocommerce div.product .product_title {
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 1;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border-radius: 8px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.9em 1.8em;
	transition: background-color 0.18s ease;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--base);
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	border-top-color: var(--wp--preset--color--primary);
	border-radius: var(--clubwear-radius);
	background: var(--wp--preset--color--surface);
}

.woocommerce-breadcrumb {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

/* Sidfot -------------------------------------------------------------- */

.clubwear-footer a {
	color: inherit;
	text-decoration: none;
}

.clubwear-footer a:hover {
	text-decoration: underline;
}

.clubwear-footer .clubwear-club-info__label {
	opacity: 0.55;
}

/* Detaljer ------------------------------------------------------------ */

.clubwear-rule {
	height: 1px;
	background: currentColor;
	opacity: 0.15;
	border: 0;
}

.clubwear-stat {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1;
	letter-spacing: 0.01em;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
