/* El Alsson Uniform storefront */

:root {
	--au-ink: var(--wp--preset--color--contrast, #080c1c);
	--au-navy: var(--wp--preset--color--navy, #13234a);
	--au-blue: var(--wp--preset--color--primary, #109ee5);
	--au-blue-strong: var(--wp--preset--color--primary-strong, #0a6ea3);
	--au-yellow: var(--wp--preset--color--accent, #ffd300);
	--au-surface: var(--wp--preset--color--surface, #f2f7fb);
	--au-muted: var(--wp--preset--color--muted, #4f5a6b);
	--au-line: var(--wp--preset--color--border, #dbe4ee);
	--au-radius: 14px;
	--au-gutter: clamp(16px, 4vw, 32px);
}

body {
	background: var(--wp--preset--color--base, #fff);
}

.wp-site-blocks {
	padding-top: 0;
	padding-bottom: 0;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.has-global-padding {
	padding-left: var(--au-gutter);
	padding-right: var(--au-gutter);
}

.au-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	vertical-align: -0.25em;
}

:where(a):focus-visible,
:where(button):focus-visible {
	outline: 3px solid var(--au-blue);
	outline-offset: 2px;
}

/* Top bar */
.au-topbar {
	background: var(--au-ink);
	color: #fff;
	font-size: var(--wp--preset--font-size--x-small);
	padding-top: 8px;
	padding-bottom: 8px;
}

.au-topbar p {
	margin: 0;
}

.au-topbar__inner {
	gap: 4px 24px;
}

.au-topbar a {
	color: var(--au-yellow);
	font-weight: 700;
	text-decoration: none;
}

.au-topbar a:hover {
	text-decoration: underline;
	color: var(--au-yellow);
}

.au-topbar__contact {
	display: flex;
	align-items: center;
	gap: 6px;
}

.au-topbar__contact .au-icon {
	color: var(--au-yellow);
	width: 16px;
	height: 16px;
}

/* Header */
.au-header {
	background: #fff;
	border-bottom: 1px solid var(--au-line);
	padding-top: 14px;
	padding-bottom: 14px;
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .au-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .au-header {
		top: 0;
		position: relative;
	}
}

.au-header__inner {
	gap: 16px;
}

.au-header__logo img {
	display: block;
	height: auto;
	max-width: 100%;
}

.au-header__actions {
	gap: 8px 20px;
}

.au-nav .wp-block-navigation-item__content {
	color: var(--au-ink);
	text-decoration: none;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
}

.au-nav .wp-block-navigation-item__content:hover,
.au-nav .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--au-blue);
	color: var(--au-ink);
}

.au-header .wc-block-mini-cart__button,
.au-header .wc-block-customer-account a {
	color: var(--au-ink);
}

.au-header .wc-block-mini-cart__badge {
	background: var(--au-yellow);
	color: var(--au-ink);
	font-weight: 700;
}

@media (max-width: 600px) {
	.au-topbar__inner > p:first-child {
		display: none;
	}

	.au-header__logo {
		max-width: 150px;
	}

	.au-header__actions {
		gap: 4px 10px;
	}
}

/* Shared section rhythm */
.au-section {
	padding-top: clamp(48px, 7vw, 88px);
	padding-bottom: clamp(48px, 7vw, 88px);
}

.au-section__head {
	margin-bottom: 28px;
}

.au-section__head h2 {
	margin: 0;
}

.au-section__head p {
	margin: 8px 0 0;
	color: var(--au-muted);
}

.au-section__head--row {
	align-items: flex-end;
	gap: 12px 24px;
}

.au-link-arrow a,
span.au-link-arrow {
	font-weight: 700;
	color: var(--au-blue-strong);
}

.au-link-arrow a::after,
span.au-link-arrow::after {
	content: " →";
}

/* Hero */
.au-hero {
	background:
		radial-gradient(circle at 85% 20%, rgba(16, 158, 229, 0.16), transparent 45%),
		linear-gradient(180deg, var(--au-surface), #fff);
	padding-top: clamp(40px, 6vw, 80px);
	padding-bottom: clamp(40px, 6vw, 80px);
	overflow: hidden;
}

.au-hero__cols {
	gap: clamp(24px, 5vw, 64px);
}

.au-eyebrow {
	display: inline-block;
	background: var(--au-yellow);
	color: var(--au-ink);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
	margin: 0;
}

.au-hero__title {
	margin-top: 16px;
	max-width: 15ch;
}

.au-hero__lead {
	font-size: var(--wp--preset--font-size--large);
	color: var(--au-muted);
	max-width: 36em;
	line-height: 1.5;
}

.au-hero__actions {
	margin-top: 28px;
	gap: 12px;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--au-ink);
	border: 2px solid var(--au-ink);
	padding: calc(0.8rem - 2px) calc(1.4rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--au-ink);
	color: #fff;
}

.au-hero__facts {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.au-hero__facts li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.au-hero__facts .au-icon {
	color: var(--au-blue);
}

.au-hero__image img {
	width: 100%;
	height: auto;
	border-radius: 24px;
	box-shadow: 0 24px 60px -30px rgba(8, 12, 28, 0.45);
}

/* Stage cards */
.au-stages {
	background: #fff;
}

.au-stages__grid {
	gap: 24px;
}

.au-stage {
	background: var(--au-surface);
	border-radius: var(--au-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--au-line);
}

.au-stage__image {
	margin: 0;
	background: #fff;
}

.au-stage__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.au-stage__image a:hover img {
	transform: scale(1.03);
}

.au-stage__body {
	padding: 24px 24px 28px;
}

.au-stage__body h3 {
	margin: 0 0 6px;
}

.au-stage__body h3 a {
	color: var(--au-ink);
	text-decoration: none;
}

.au-stage__body h3 a:hover {
	color: var(--au-blue-strong);
}

.au-stage__body p {
	color: var(--au-muted);
	margin: 0 0 18px;
}

.au-chips,
.au-shopnav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.au-chips a,
.au-shopnav a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--au-line);
	color: var(--au-ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.au-chips a:hover,
.au-shopnav a:hover {
	border-color: var(--au-blue);
}

.au-chips .au-icon {
	color: var(--au-blue);
	width: 18px;
	height: 18px;
}

/* Steps */
.au-steps {
	background: var(--au-navy);
	color: #fff;
}

.au-steps h2,
.au-steps h3 {
	color: #fff;
}

.au-steps__list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	counter-reset: au-step;
}

.au-steps__list li {
	position: relative;
	padding: 28px;
	border-radius: var(--au-radius);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	counter-increment: au-step;
}

.au-steps__list li::before {
	content: counter(au-step);
	position: absolute;
	top: 24px;
	right: 28px;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.18);
}

.au-steps__icon {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--au-yellow);
	color: var(--au-ink);
}

.au-steps__list h3 {
	margin: 18px 0 8px;
	font-size: var(--wp--preset--font-size--large);
}

.au-steps__list p {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
}

/* Product grids */
.au-products.wp-block-post-template {
	gap: 28px 24px;
}

.au-products .wc-block-components-product-image,
.au-products .wc-block-components-product-image img {
	border-radius: 12px;
}

.au-products .wc-block-components-product-image {
	border: 1px solid var(--au-line);
	background: #fff;
	margin-bottom: 12px;
	overflow: hidden;
}

.au-products .wp-block-post-title {
	margin: 0 0 4px;
	line-height: 1.35;
}

.au-products .wp-block-post-title a {
	color: var(--au-ink);
	text-decoration: none;
}

.au-products .wp-block-post-title a:hover {
	color: var(--au-blue-strong);
}

.au-products .wc-block-components-product-price {
	color: var(--au-muted);
	font-weight: 700;
}

.au-products .wp-block-button__link {
	margin-top: 10px;
	width: 100%;
	text-align: center;
}

/* Help cards */
.au-help {
	background: var(--au-surface);
}

.au-help__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0 auto;
}

.au-help__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--au-line);
	border-radius: var(--au-radius);
	color: var(--au-ink);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.au-help__card:hover {
	border-color: var(--au-blue);
	transform: translateY(-2px);
	color: var(--au-ink);
}

.au-help__card .au-icon {
	width: 32px;
	height: 32px;
	color: var(--au-blue);
}

.au-help__card h3 {
	margin: 4px 0 0;
}

.au-help__card p {
	margin: 0;
	color: var(--au-muted);
	flex: 1;
}

@media (max-width: 900px) {
	.au-steps__list,
	.au-help__grid {
		grid-template-columns: 1fr;
	}
}

/* Footer */
.au-footer {
	background: var(--au-ink);
	color: rgba(255, 255, 255, 0.78);
	padding-top: 64px;
	padding-bottom: 28px;
	font-size: var(--wp--preset--font-size--small);
}

.au-footer a {
	color: #fff;
	text-decoration: none;
}

.au-footer a:hover {
	color: var(--au-yellow);
	text-decoration: underline;
}

.au-footer__cols {
	gap: 40px;
}

.au-footer__crest {
	margin: 0 0 12px;
}

.au-footer__crest img {
	background: #fff;
	border-radius: 12px;
	padding: 6px;
}

.au-footer__name {
	color: #fff;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	margin-bottom: 4px;
}

.au-footer__title {
	color: var(--au-yellow);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.au-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}

.au-contact {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}

.au-contact li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.au-contact .au-icon {
	color: var(--au-yellow);
	margin-top: 1px;
}

.au-footer__bottom {
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	gap: 12px;
}

.au-footer__bottom p {
	margin: 0;
}

.au-footer__social .wp-social-link {
	color: #fff;
}

/* Archive */
.au-archive,
.au-product,
.au-page {
	padding-top: 28px;
	padding-bottom: 72px;
}

.au-archive .wp-block-query-title {
	margin-top: 8px;
	margin-bottom: 8px;
}

.au-archive__intro {
	color: var(--au-muted);
	max-width: 48em;
}

.au-shopnav {
	display: grid;
	gap: 10px;
	margin: 20px auto 8px;
	width: 100%;
	max-width: var(--wp--style--global--wide-size) !important;
}

.au-shopnav a[aria-current="page"] {
	background: var(--au-ink);
	border-color: var(--au-ink);
	color: #fff;
}

.au-shopnav__seasons a {
	padding: 6px 12px;
	font-size: var(--wp--preset--font-size--x-small);
	background: var(--au-surface);
}

.au-shopnav__seasons a[aria-current="page"] {
	background: var(--au-blue-strong);
	border-color: var(--au-blue-strong);
}

.au-archive__bar {
	margin-top: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--au-line);
	color: var(--au-muted);
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce-breadcrumb,
.wc-block-breadcrumbs {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--au-muted);
}

/* Single product */
.au-product__cols {
	gap: clamp(24px, 5vw, 56px);
	margin-top: 16px;
}

.au-product .woocommerce-product-gallery__image img,
.au-product .wc-block-components-product-image img {
	border-radius: var(--au-radius);
	border: 1px solid var(--au-line);
}

.au-product__sku {
	display: inline-block;
	background: var(--au-surface);
	border: 1px solid var(--au-line);
	border-radius: 999px;
	padding: 2px 12px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	color: var(--au-muted);
}

.au-product__title {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: 10px;
}

.au-product .variations {
	width: 100%;
	border: 0;
}

.au-product .variations th,
.au-product .variations td {
	border: 0;
	padding: 4px 0;
	display: block;
	text-align: left;
}

.au-product .variations select {
	width: 100%;
	max-width: 320px;
	height: auto;
	min-height: 46px;
	/* WooCommerce sets a 34px line height and large padding that clip the text. */
	line-height: 1.4 !important;
	padding: 11px 40px 11px 12px !important;
	border: 1px solid var(--au-line);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

.au-product .quantity .qty {
	padding: 10px 8px;
	border: 1px solid var(--au-line);
	border-radius: 8px;
	font: inherit;
}

.au-product .single_add_to_cart_button {
	background: var(--au-blue-strong);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 0.8rem 1.6rem;
	font-weight: 700;
	cursor: pointer;
}

.au-product .single_add_to_cart_button:hover {
	background: var(--au-ink);
}

.au-product .single_add_to_cart_button.disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.au-product .reset_variations {
	font-size: var(--wp--preset--font-size--x-small);
	margin-left: 8px;
}

.au-product-help {
	list-style: none;
	padding: 18px 20px;
	margin: 24px 0 0;
	background: var(--au-surface);
	border-radius: 12px;
	border: 1px solid var(--au-line);
	display: grid;
	gap: 12px;
	font-size: var(--wp--preset--font-size--small);
}

.au-product-help li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.au-product-help .au-icon {
	color: var(--au-blue-strong);
}

.au-product__terms {
	margin-top: 16px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--au-muted);
}

.au-related__title {
	margin-top: 56px;
}

/* Content pages */
.au-page .wp-block-post-title {
	margin-bottom: 8px;
}

.au-page .wp-block-table table {
	border-collapse: collapse;
	width: 100%;
	min-width: 560px;
}

.au-page .wp-block-table {
	overflow-x: auto;
	margin-bottom: 32px;
}

.au-page .wp-block-table th,
.au-page .wp-block-table td {
	border: 1px solid var(--au-line);
	padding: 8px 10px;
	text-align: center;
	white-space: nowrap;
}

.au-page .wp-block-table thead th {
	background: var(--au-navy);
	color: #fff;
}

.au-page .wp-block-table tbody th,
.au-page .wp-block-table td:first-child {
	text-align: left;
	background: var(--au-surface);
	font-weight: 700;
	white-space: normal;
}

.au-page .wp-block-table figcaption {
	text-align: left;
	font-size: var(--wp--preset--font-size--x-small);
}

.au-note {
	background: var(--au-surface);
	border-left: 4px solid var(--au-yellow);
	padding: 16px 20px;
	border-radius: 0 12px 12px 0;
}

/* Checkout and cart */
.wc-block-components-button:not(.is-link) {
	border-radius: 8px;
}

.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
	background: var(--au-blue-strong);
	color: #fff;
}

/* Coming soon */
.au-soon {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px var(--au-gutter);
	background:
		radial-gradient(circle at 50% 0%, rgba(16, 158, 229, 0.14), transparent 55%),
		linear-gradient(180deg, var(--au-surface), #fff);
}

.au-soon__logo {
	margin-bottom: 24px;
}

.au-soon__title {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: 12px;
}

.au-soon__lead {
	color: var(--au-muted);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.au-soon__call {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-weight: 700;
	text-align: center;
}

.au-soon__call .au-icon {
	color: var(--au-blue-strong);
}

.au-soon__staff {
	margin-top: 40px;
	font-size: var(--wp--preset--font-size--x-small);
}

.au-soon__staff a {
	color: var(--au-muted);
}

/* Client preview */
.au-preview {
	margin: 36px auto 0;
	width: 100%;
	max-width: 440px;
	text-align: center;
}

.au-preview__button {
	display: block;
	list-style: none;
	cursor: pointer;
	background: var(--au-yellow);
	color: var(--au-ink);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	padding: 18px 28px;
	border-radius: 12px;
	box-shadow: 0 12px 28px -14px rgba(8, 12, 28, 0.55);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.au-preview__button::-webkit-details-marker {
	display: none;
}

.au-preview__button::after {
	content: " →";
}

.au-preview__button:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -14px rgba(8, 12, 28, 0.6);
}

.au-preview[open] .au-preview__button {
	border-radius: 12px 12px 0 0;
	box-shadow: none;
	transform: none;
}

.au-preview__form {
	display: grid;
	gap: 10px;
	text-align: left;
	background: #fff;
	border: 2px solid var(--au-yellow);
	border-top: 0;
	border-radius: 0 0 12px 12px;
	padding: 20px;
}

.au-preview__form label {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
}

.au-preview__row {
	display: flex;
	gap: 8px;
}

.au-preview__row input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--au-line);
	border-radius: 8px;
	font: inherit;
}

.au-preview__row button {
	border: 0;
	border-radius: 8px;
	padding: 12px 18px;
	background: var(--au-blue-strong);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.au-preview__row button:hover {
	background: var(--au-ink);
}

.au-preview__message {
	margin: 0;
	color: #b3261e;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.au-preview-bar {
	background: var(--au-yellow);
	color: var(--au-ink);
	text-align: center;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	padding: 8px 16px;
}

.au-preview-bar a {
	color: var(--au-ink);
	margin-left: 8px;
}
