/*
 * Armeria 3S — base.css
 * Design tokens, reset, typography, forms, buttons, notices, pagination, breadcrumbs,
 * content/blog/contact/404 layouts, home section classes for Elementor, utilities.
 *
 * Rules: theme selectors live inside :where() (zero specificity) so Elementor Kit "Theme Style"
 * and widget styles always win. Colours/fonts only through --a3s-* tokens.
 * Breakpoints: 576 / 768 / 992 / 1200 / 1400.
 */

/* ==========================================================================
   1. Tokens — declared on body because Elementor puts --e-global-* on body.elementor-kit-N.
   ========================================================================== */
body {
	/* Brand + roles (Elementor system colours: primary, secondary, text, accent). */
	--a3s-color-primary: var(--e-global-color-primary, #e95e1b);
	--a3s-color-primary-contrast: #231f20;
	--a3s-color-primary-strong: var(--e-global-color-a3sstrong, #c4500f);
	--a3s-color-secondary: var(--e-global-color-secondary, #231f20);
	--a3s-color-dark-2: var(--e-global-color-a3sdark2, #3a3536);
	--a3s-color-accent: var(--e-global-color-accent, #ffde17);
	--a3s-color-text: var(--e-global-color-text, #231f20);
	--a3s-color-heading: var(--e-global-color-text, #231f20);
	--a3s-color-muted: var(--e-global-color-a3smuted, #5f5859);
	--a3s-color-link-hover: var(--e-global-color-a3slink, #b84a0e);
	--a3s-color-price: var(--e-global-color-a3slink, #b84a0e);
	--a3s-color-old-price: #767070;
	--a3s-color-bg: #fff;
	--a3s-color-surface: var(--e-global-color-a3ssurface, #f3f2f0);
	--a3s-color-surface-2: #f7f6f4;
	--a3s-color-bottom-bar: #1a1718;
	--a3s-color-border: var(--e-global-color-a3sborder, #dcd9d5);
	--a3s-color-divider: #e3e0dc;
	--a3s-color-sale: var(--e-global-color-a3ssale, #c8102e);
	--a3s-color-success: #0a7a2f;
	--a3s-color-error: #c8102e;
	--a3s-color-warning: #b45309;
	--a3s-color-overlay: rgba(35, 31, 32, .45);
	--a3s-color-chip: var(--a3s-color-surface);
	--a3s-color-chip-clear: #dcd9d5;

	/* Alerts (bg / text / border). */
	--a3s-alert-success-bg: #d1e7dd;
	--a3s-alert-success-text: #0a3622;
	--a3s-alert-success-border: #a3cfbb;
	--a3s-alert-info-bg: #cff4fc;
	--a3s-alert-info-text: #055160;
	--a3s-alert-info-border: #9eeaf9;
	--a3s-alert-warning-bg: #ffebdc;
	--a3s-alert-warning-text: #663e21;
	--a3s-alert-warning-border: #f5c9a6;
	--a3s-alert-error-bg: #ffdbdb;
	--a3s-alert-error-text: #661e1e;
	--a3s-alert-error-border: #f1aeae;

	/* Typography (Rubik by default, self-hosted; Customizer > Typography overrides these two tokens inline, inc/fonts.php). */
	--a3s-font-body: var(--e-global-typography-text-font-family, "Rubik"), system-ui, -apple-system, "Segoe UI", sans-serif;
	--a3s-font-heading: var(--e-global-typography-primary-font-family, "Rubik"), system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Shape, elevation, motion. */
	--a3s-radius: 0;
	--a3s-radius-lg: 4px;
	--a3s-radius-sm: 3px;
	--a3s-shadow: 0 4px 4px rgba(0, 0, 0, .25);
	--a3s-shadow-sm: 0 4px 4px rgba(0, 0, 0, .12);
	--a3s-shadow-panel: 0 11px 10px rgba(0, 0, 0, .32);
	--a3s-shadow-drawer: 0 0 10px 3px rgba(0, 0, 0, .3);
	--a3s-shadow-box: 2px 2px 11px rgba(0, 0, 0, .1);
	--a3s-focus-ring: 0 0 0 3px rgba(233, 94, 27, .35);
	--a3s-transition: 150ms ease-in-out;
	--a3s-transition-base: 200ms cubic-bezier(.7, 0, .3, 1);
	--a3s-transition-panel: 300ms ease-in-out;
	--a3s-transition-drawer: 400ms cubic-bezier(.7, 0, .3, 1);

	/* Layout. */
	--a3s-container: 1340px;
	--a3s-container-wide: 1620px;
	--a3s-container-narrow: 960px;
	--a3s-pad: 12px;
	--a3s-gutter: 20px;
	--a3s-section-gap: 130px;

	/* Stacking. */
	--a3s-z-header: 100;
	--a3s-z-totop: 120;
	--a3s-z-sticky: 5000;
	--a3s-z-drawer: 5005;
}

@media (max-width: 767.98px) {
	body {
		--a3s-pad: 16px;
		--a3s-section-gap: 60px;
	}
}

/* ==========================================================================
   2. Reset
   ========================================================================== */
:where(*, *::before, *::after) {
	box-sizing: border-box;
}

:where(html) {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (max-width: 767.98px) {
	:where(html) {
		font-size: 87.5%; /* 14 px root on phones (reference). */
	}
}

:where(body) {
	margin: 0;
	background: var(--a3s-color-bg);
	color: var(--a3s-color-text);
	font-family: var(--a3s-font-body);
	font-size: 1rem;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

:where(img, video, canvas, picture) {
	max-width: 100%;
	height: auto;
}

:where(img, video, canvas, picture, iframe, embed, object) {
	display: block;
}

:where(svg) {
	vertical-align: middle;
}

:where(iframe) {
	max-width: 100%;
	border: 0;
}

:where(table) {
	border-collapse: collapse;
	width: 100%;
}

:where(hr) {
	height: 0;
	margin: 24px 0;
	border: 0;
	border-top: 1px solid var(--a3s-color-divider);
}

:where(button, input, select, textarea) {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

:where(button) {
	cursor: pointer;
}

:where([hidden]) {
	display: none !important;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
:where(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 .5em;
	color: var(--a3s-color-heading);
	font-family: var(--a3s-font-heading);
	font-weight: 700;
}

:where(h1) { font-size: 2.5rem; line-height: 1.2; }
:where(h2) { font-size: 2rem; line-height: 1.2; }
:where(h3) { font-size: 1.5rem; line-height: 1.2; }
:where(h4) { font-size: 1.25rem; line-height: 1.2; }
:where(h5) { font-size: 1rem; line-height: 1.25; }
:where(h6) { font-size: .875rem; line-height: 1.25; }

@media (max-width: 767.98px) {
	:where(h1) { font-size: 1.75rem; }
	:where(h2) { font-size: 1.5rem; }
}

:where(p, ul, ol, dl, blockquote, figure, pre, table) {
	margin: 0 0 1rem;
}

:where(ul, ol) {
	padding-left: 1.5em;
}

:where(a) {
	color: inherit;
	text-decoration: none;
	transition: color var(--a3s-transition-base), opacity var(--a3s-transition-base);
}

:where(a:hover) {
	color: var(--a3s-color-link-hover);
}

:where(.entry-content, .comment-content, .a3s-archive-description) :where(a) {
	color: var(--a3s-color-link-hover);
	text-decoration: underline;
	text-underline-offset: .15em;
}

:where(.entry-content, .comment-content) :where(a:hover) {
	color: var(--a3s-color-text);
}

:where(strong, b) {
	font-weight: 700;
}

:where(small) {
	font-size: .875em;
}

:where(blockquote) {
	padding: 12px 20px;
	border-left: 4px solid var(--a3s-color-primary);
	background: var(--a3s-color-surface);
}

:where(blockquote) > :where(:last-child) {
	margin-bottom: 0;
}

:where(code, kbd, pre, samp) {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: .9em;
}

:where(pre) {
	padding: 16px;
	overflow-x: auto;
	background: var(--a3s-color-surface);
}

:where(mark) {
	background: var(--a3s-color-accent);
	color: var(--a3s-color-primary-contrast);
}

:where(th, td) {
	padding: 8px 12px;
	border: 1px solid var(--a3s-color-border);
	text-align: left;
	vertical-align: top;
}

:where(th) {
	background: var(--a3s-color-surface);
	font-weight: 600;
}

/* Content tables scroll sideways on phones instead of breaking the page. */
@media (max-width: 767.98px) {
	:where(.entry-content) :where(table:not(.wp-block-table table)) {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
}

/* WordPress core content classes. */
:where(.alignleft) { float: left; margin: 0 24px 16px 0; }
:where(.alignright) { float: right; margin: 0 0 16px 24px; }
:where(.aligncenter) { display: block; margin-left: auto; margin-right: auto; }
:where(.wp-caption, .wp-block-image figcaption, figcaption) { color: var(--a3s-color-muted); font-size: .875rem; }
:where(.wp-caption) { max-width: 100%; }
:where(.gallery) { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
:where(.sticky, .bypostauthor) { position: relative; }

@media (max-width: 575.98px) {
	:where(.alignleft, .alignright) { float: none; margin: 0 0 16px; }
}

/* ==========================================================================
   4. Accessibility helpers + icons
   ========================================================================== */
.screen-reader-text,
.a3s-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus,
.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	clip-path: none;
	background: var(--a3s-color-secondary);
	color: #fff;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	box-shadow: var(--a3s-focus-ring);
}

:where(:focus-visible) {
	outline: 2px solid var(--a3s-color-primary);
	outline-offset: 2px;
}

/* Size comes from the width/height attributes printed by armeria3s_icon(). */
:where(.a3s-icon) {
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
}

/* ==========================================================================
   5. Layout
   ========================================================================== */
.a3s-container {
	width: 100%;
	max-width: var(--a3s-container);
	margin-inline: auto;
	padding-inline: var(--a3s-pad);
}

.a3s-container--wide {
	max-width: var(--a3s-container-wide);
}

.a3s-container--narrow {
	max-width: calc(var(--a3s-container-narrow) + 2 * var(--a3s-pad));
}

:where(.a3s-main) {
	display: block;
	padding-bottom: 60px;
}

:where(.a3s-main--elementor) {
	padding-bottom: 0;
}

.a3s-layout--sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
}

@media (min-width: 992px) {
	.a3s-layout--sidebar {
		grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	}
}

:where(.a3s-layout__main) {
	min-width: 0;
}

/* Page header / titles. */
:where(.a3s-page-header) {
	margin: 20px 0 24px;
}

:where(.a3s-page-title) {
	margin: 0 0 11px;
	color: var(--a3s-color-heading);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
}

:where(.a3s-archive-description) {
	max-width: 80ch;
	color: var(--a3s-color-muted);
}

:where(.a3s-page-header) :where(.a3s-search-form) {
	max-width: 520px;
	margin-top: 12px;
}

/* ==========================================================================
   6. Breadcrumbs (theme fallback + WooCommerce)
   ========================================================================== */
:where(.a3s-breadcrumb, .woocommerce-breadcrumb) {
	display: flex;
	align-items: center;
	min-height: 52px;
	margin: 0;
	padding: 8px 0;
	color: var(--a3s-color-text);
	font-size: .875rem;
	line-height: 1.4;
}

:where(.a3s-breadcrumb) :where(ol) {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.a3s-breadcrumb) :where(li + li)::before {
	content: "/";
	margin: 0 8px;
	color: var(--a3s-color-muted);
}

:where(.a3s-breadcrumb, .woocommerce-breadcrumb) :where(a:hover) {
	color: var(--a3s-color-link-hover);
	text-decoration: underline;
}

:where(.a3s-breadcrumb) :where([aria-current]) {
	color: var(--a3s-color-muted);
}

/* ==========================================================================
   7. Forms
   ========================================================================== */
:where(label) {
	display: inline-block;
	margin-bottom: 4px;
	font-weight: 400;
}

:where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"]), select, textarea) {
	width: 100%;
	max-width: 100%;
	min-height: 45px;
	padding: 9.6px 16px;
	border: 1px solid var(--a3s-color-secondary);
	border-radius: var(--a3s-radius);
	background-color: #fff;
	color: var(--a3s-color-text);
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color var(--a3s-transition), box-shadow var(--a3s-transition);
}

:where(textarea) {
	min-height: 120px;
	resize: vertical;
}

:where(select) {
	padding-right: 40px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f5859' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px;
}

:where(select[multiple], select[size]) {
	padding-right: 16px;
	background-image: none;
}

::placeholder {
	color: var(--a3s-color-muted);
	opacity: 1;
}

:where(input, select, textarea):focus {
	border-color: var(--a3s-color-primary);
	outline: 0;
	box-shadow: var(--a3s-focus-ring);
}

:where(input, select, textarea):disabled {
	background-color: var(--a3s-color-surface);
	cursor: not-allowed;
	opacity: .7;
}

:where(input[type="checkbox"], input[type="radio"]) {
	width: 16px;
	height: 16px;
	margin: 0 8px 0 0;
	vertical-align: -2px;
	accent-color: var(--a3s-color-secondary);
	cursor: pointer;
}

:where(input[type="checkbox"], input[type="radio"]):focus-visible {
	outline: 2px solid var(--a3s-color-primary);
	outline-offset: 2px;
}

:where(input[type="file"]) {
	max-width: 100%;
	font-size: .875rem;
}

:where(input[type="file"])::file-selector-button {
	margin-right: 12px;
	padding: 10px 16px;
	border: 1px solid var(--a3s-color-secondary);
	border-radius: var(--a3s-radius);
	background: var(--a3s-color-surface);
	color: var(--a3s-color-text);
	font: inherit;
	font-weight: 500;
	text-transform: uppercase;
	cursor: pointer;
}

:where(fieldset) {
	min-width: 0;
	margin: 0 0 20px;
	padding: 16px 20px;
	border: 1px solid var(--a3s-color-border);
	border-radius: 5px;
}

:where(legend) {
	padding: 0 8px;
	font-weight: 700;
}

:where(.required, abbr.required) {
	color: var(--a3s-color-error);
	text-decoration: none;
	border: 0;
}

/* Search form (searchform.php): field + icon button inside, radius 4. */
:where(.a3s-search-form) {
	position: relative;
	display: flex;
	width: 100%;
}

:where(.a3s-search-form) :where(.search-field) {
	min-height: 48px;
	padding-right: 52px;
	border-color: transparent;
	border-radius: var(--a3s-radius-lg);
	background: var(--a3s-color-surface);
}

:where(.a3s-search-form) :where(.search-field):focus {
	border-color: var(--a3s-color-primary);
}

:where(.a3s-search-form) :where(.search-submit) {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	place-items: center;
	width: 52px;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--a3s-color-text);
}

:where(.a3s-search-form) :where(.search-submit:hover) {
	color: var(--a3s-color-link-hover);
}

:where(.a3s-search-form) :where(input[type="search"])::-webkit-search-cancel-button {
	cursor: pointer;
}

/* ==========================================================================
   8. Buttons
   Primary = orange + charcoal text (AA 4.72), hover charcoal + white.
   ========================================================================== */
:where(.a3s-btn, .button, .wp-block-button__link, input[type="submit"], input[type="button"], input[type="reset"], .comment-form .submit) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 20px;
	border: 1px solid var(--a3s-color-primary);
	border-radius: var(--a3s-radius);
	background: var(--a3s-color-primary);
	color: var(--a3s-color-primary-contrast);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--a3s-transition), border-color var(--a3s-transition), color var(--a3s-transition), box-shadow var(--a3s-transition);
}

:where(.a3s-btn, .button, .wp-block-button__link, input[type="submit"], input[type="button"], input[type="reset"], .comment-form .submit):hover {
	border-color: var(--a3s-color-secondary);
	background: var(--a3s-color-secondary);
	color: #fff;
}

:where(.a3s-btn, .button, .wp-block-button__link, input[type="submit"], input[type="button"], input[type="reset"]):focus-visible {
	outline: 0;
	box-shadow: var(--a3s-focus-ring);
}

:where(.a3s-btn, .button, input[type="submit"]):where(:disabled, [disabled], .disabled) {
	cursor: not-allowed;
	opacity: .5;
}

/* Dark: charcoal → orange (card button style). */
:where(.a3s-btn--dark) {
	border-color: var(--a3s-color-secondary);
	background: var(--a3s-color-secondary);
	color: #fff;
}

:where(.a3s-btn--dark:hover) {
	border-color: var(--a3s-color-primary);
	background: var(--a3s-color-primary);
	color: var(--a3s-color-primary-contrast);
}

/* White-text orange variant (AA 4.67). */
:where(.a3s-btn--strong) {
	border-color: var(--a3s-color-primary-strong);
	background: var(--a3s-color-primary-strong);
	color: #fff;
}

:where(.a3s-btn--outline, .is-style-outline > .wp-block-button__link) {
	border-color: var(--a3s-color-secondary);
	background: transparent;
	color: var(--a3s-color-secondary);
}

:where(.a3s-btn--outline:hover, .is-style-outline > .wp-block-button__link:hover) {
	background: var(--a3s-color-secondary);
	color: #fff;
}

:where(.a3s-btn--lg) {
	min-height: 56px;
	padding: 16px 24px;
}

:where(.a3s-btn--block) {
	display: flex;
	width: 100%;
}

:where(.a3s-btn--link) {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--a3s-color-link-hover);
	text-decoration: underline;
}

:where(.a3s-btn--link:hover) {
	background: none;
	color: var(--a3s-color-text);
}

/* ==========================================================================
   9. Notices / alerts (theme + WooCommerce notice markup)
   ========================================================================== */
:where(.a3s-notice, .woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments) {
	position: relative;
	display: block;
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid var(--a3s-alert-info-border);
	border-radius: var(--a3s-radius);
	background: var(--a3s-alert-info-bg);
	color: var(--a3s-alert-info-text);
	list-style: none;
}

:where(.a3s-notice--success, .woocommerce-message) {
	border-color: var(--a3s-alert-success-border);
	background: var(--a3s-alert-success-bg);
	color: var(--a3s-alert-success-text);
}

:where(.a3s-notice--warning) {
	border-color: var(--a3s-alert-warning-border);
	background: var(--a3s-alert-warning-bg);
	color: var(--a3s-alert-warning-text);
}

:where(.a3s-notice--error, .woocommerce-error) {
	border-color: var(--a3s-alert-error-border);
	background: var(--a3s-alert-error-bg);
	color: var(--a3s-alert-error-text);
}

:where(.a3s-notice, .woocommerce-message, .woocommerce-info, .woocommerce-error) :where(a:not(.button)) {
	color: inherit;
	text-decoration: underline;
}

:where(.woocommerce-message, .woocommerce-info, .woocommerce-error) :where(.button) {
	float: right;
	margin-left: 16px;
	min-height: 32px;
	padding: 4px 14px;
}

:where(.a3s-notice) > :where(:last-child) {
	margin-bottom: 0;
}

/* ==========================================================================
   10. Pagination (posts; WooCommerce reuses the same look)
   ========================================================================== */
:where(.a3s-pagination, .woocommerce-pagination, .comments-pagination, .a3s-page-links) {
	margin: 40px 0 0;
	text-align: center;
}

:where(.a3s-pagination .nav-links, .woocommerce-pagination ul.page-numbers, .comments-pagination .nav-links) {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

:where(.a3s-pagination, .woocommerce-pagination, .comments-pagination) :where(a.page-numbers, span.page-numbers) {
	display: inline-grid;
	place-items: center;
	min-width: 38px;
	min-height: 38px;
	padding: 6px 12px;
	border: 1px solid var(--a3s-color-border);
	background: #fff;
	color: var(--a3s-color-text);
	line-height: 1;
	transition: border-color var(--a3s-transition), color var(--a3s-transition);
}

:where(.a3s-pagination, .woocommerce-pagination, .comments-pagination) :where(a.page-numbers:hover, .page-numbers.current) {
	border-color: var(--a3s-color-primary);
	color: var(--a3s-color-link-hover);
}

:where(.a3s-pagination, .woocommerce-pagination, .comments-pagination) :where(.page-numbers.current) {
	font-weight: 700;
}

:where(.a3s-pagination, .woocommerce-pagination, .comments-pagination) :where(.page-numbers.dots) {
	border-color: transparent;
}

:where(.a3s-pagination, .woocommerce-pagination) :where(.a3s-icon) {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   11. Blog list, sidebar, post card
   ========================================================================== */
:where(.a3s-posts-grid) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
}

@media (min-width: 576px) {
	:where(.a3s-posts-grid) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	:where(.a3s-posts-grid--3) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	:where(.a3s-posts-grid--4) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

:where(.a3s-post-card) {
	display: flex;
	flex-direction: column;
	padding: 15px;
	border: 1px solid var(--a3s-color-border);
	border-radius: var(--a3s-radius-sm);
	background: #fff;
	transition: border-color var(--a3s-transition-base);
}

:where(.a3s-post-card:hover) {
	border-color: var(--a3s-color-primary);
}

:where(.a3s-post-card__media) {
	display: block;
	overflow: hidden;
	aspect-ratio: 1.45 / 1;
	background: var(--a3s-color-surface);
}

:where(.a3s-post-card__media) :where(img) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s ease;
}

:where(.a3s-post-card:hover) :where(.a3s-post-card__media img) {
	transform: scale(1.04);
}

:where(.a3s-post-card__body) {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding-top: 13px;
}

:where(.a3s-post-card__type) {
	color: var(--a3s-color-muted);
	font-size: .75rem;
	text-transform: uppercase;
}

:where(.a3s-post-card__title) {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

:where(.a3s-post-card__title a)::after {
	/* Whole card clickable from the title link (single tab stop). */
	content: "";
	position: absolute;
	inset: 0;
}

:where(.a3s-post-card) {
	position: relative;
}

:where(.a3s-post-card__meta) {
	color: var(--a3s-color-muted);
	font-size: .875rem;
}

:where(.a3s-post-card__excerpt) {
	display: -webkit-box;
	overflow: hidden;
	color: var(--a3s-color-muted);
	font-size: 1rem;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

:where(.a3s-post-card__excerpt) :where(p) {
	margin: 0;
}

:where(.a3s-posted-on) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--a3s-color-muted);
	font-size: .875rem;
}

/* Sidebar boxes (reference: white boxes with soft shadow). */
:where(.a3s-sidebar) {
	display: flex;
	flex-direction: column;
	gap: 30px;
	min-width: 0;
}

:where(.a3s-sidebar) :where(.widget) {
	padding: 15px 25px 30px;
	background: #fff;
	box-shadow: var(--a3s-shadow-box);
}

:where(.a3s-sidebar) :where(.widget-title, .wp-block-heading) {
	margin: 14px 0 20px;
	color: var(--a3s-color-heading);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
}

:where(.a3s-sidebar) :where(.widget ul) {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .875rem;
}

:where(.a3s-sidebar) :where(.widget li) {
	padding: 12px 0;
	border-bottom: 1px solid var(--a3s-color-divider);
}

:where(.a3s-sidebar) :where(.widget li:last-child) {
	border-bottom: 0;
}

:where(.a3s-sidebar .widget li a)::before {
	content: "›";
	margin-right: 8px;
	color: var(--a3s-color-muted);
}

:where(.a3s-sidebar) :where(.search-field) {
	min-height: 40px;
	font-size: .875rem;
}

/* Single post. */
:where(.a3s-single__media) {
	margin: 0 0 24px;
	overflow: hidden;
	background: var(--a3s-color-surface);
}

:where(.a3s-single__media) :where(img) {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
}

:where(.a3s-single__title) {
	margin: 0 0 12px;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

@media (max-width: 767.98px) {
	:where(.a3s-single__title) {
		font-size: 1.7rem;
	}
}

:where(.a3s-single__meta) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--a3s-color-divider);
}

:where(.a3s-single__footer) {
	margin: 30px 0;
}

:where(.entry-content) {
	line-height: 1.5;
}

:where(.entry-content) > :where(* + h2, * + h3, * + h4) {
	margin-top: 1.4em;
}

:where(.entry-content) :where(h3) {
	font-size: 1.25rem;
}

:where(.entry-content)::after {
	content: "";
	display: table;
	clear: both;
}

:where(.a3s-share) {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .875rem;
}

:where(.a3s-share) :where(ul) {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.a3s-share__link) {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--a3s-color-border);
	color: var(--a3s-color-text);
	transition: background-color var(--a3s-transition), border-color var(--a3s-transition);
}

@media (pointer: coarse) {
	:where(.a3s-share__link) {
		width: 44px;
		height: 44px;
	}
}

:where(.a3s-share__link:hover) {
	border-color: var(--a3s-color-primary);
	background: var(--a3s-color-primary);
	color: var(--a3s-color-primary-contrast);
}

:where(.a3s-tags) {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.a3s-tags) :where(a) {
	display: inline-block;
	padding: 4px 12px;
	background: var(--a3s-color-chip);
	font-size: .875rem;
}

:where(.a3s-tags) :where(a:hover) {
	background: var(--a3s-color-primary);
	color: var(--a3s-color-primary-contrast);
}

:where(.a3s-related) {
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid var(--a3s-color-divider);
}

:where(.a3s-related__title) {
	font-size: 1.5rem;
}

/* Comments. */
:where(.a3s-comments) {
	margin-top: 40px;
}

:where(.a3s-comments__list, .a3s-comments__list .children) {
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

:where(.a3s-comments__list .children) {
	margin: 16px 0 0 24px;
}

:where(.a3s-comments__list .comment-body) {
	padding: 16px 0;
	border-bottom: 1px solid var(--a3s-color-divider);
}

:where(.a3s-comments__list .comment-author) {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

:where(.a3s-comments__list .avatar) {
	border-radius: 50%;
}

:where(.a3s-comments__list .comment-metadata) {
	margin: 4px 0 8px;
	color: var(--a3s-color-muted);
	font-size: .875rem;
}

:where(.comment-form) > :where(p) {
	margin-bottom: 16px;
}

:where(.comment-form) :where(label) {
	display: block;
}

:where(.comment-form-cookies-consent) :where(label) {
	display: inline;
}

/* ==========================================================================
   12. Contact page (page-templates/contact.php) + contact list helper
   ========================================================================== */
.a3s-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
}

@media (min-width: 768px) {
	.a3s-contact__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 0;
	}

	:where(.a3s-contact__info) {
		padding-right: 30px;
		border-right: 1px solid var(--a3s-color-divider);
	}

	:where(.a3s-contact__main) {
		padding-left: 30px;
	}
}

:where(.a3s-contact__name) {
	margin: 0 0 8px;
	font-weight: 700;
}

:where(.a3s-contact-list) {
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.a3s-contact-list__item) {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 0;
}

:where(.a3s-contact__info) :where(.a3s-contact-list__item + .a3s-contact-list__item) {
	border-top: 1px solid var(--a3s-color-divider);
}

:where(.a3s-contact-list__icon) {
	display: grid;
	place-items: center;
	flex: 0 0 48px;
	height: 34px;
}

:where(.a3s-contact-list__text) {
	padding-top: 6px;
	line-height: 1.4;
}

:where(.a3s-contact-list__text) :where(a:hover) {
	color: var(--a3s-color-link-hover);
	text-decoration: underline;
}

/* Social icons + payment badges + language list (generic; header/footer CSS refines). */
:where(.a3s-social, .a3s-payments) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.a3s-social) :where(a) {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: opacity var(--a3s-transition-base), color var(--a3s-transition-base);
}

:where(.a3s-social) :where(a:hover) {
	color: var(--a3s-color-primary);
}

:where(.a3s-payments) {
	gap: 6px;
}

:where(.a3s-payments) :where(img) {
	width: 48px;
	height: 30px;
}

:where(.a3s-lang) :where(ul) {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.a3s-lang) :where(a) {
	display: inline-grid;
	place-items: center;
	min-width: 32px;
	min-height: 32px;
	padding: 2px 6px;
	font-size: .875rem;
}

:where(.a3s-lang) :where(a[aria-current]) {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: .2em;
}

:where(.a3s-lang) :where(abbr) {
	text-decoration: none;
}

/* ==========================================================================
   13. 404 + empty states
   ========================================================================== */
:where(.a3s-404) {
	max-width: 720px;
	margin: 0 auto;
	padding: 60px 0 20px;
	text-align: center;
}

:where(.a3s-404__code) {
	margin: 0;
	color: var(--a3s-color-primary);
	font-size: clamp(5rem, 14vw, 9rem);
	font-weight: 700;
	line-height: 1;
}

:where(.a3s-404) :where(.a3s-page-title) {
	font-size: 1.75rem;
}

:where(.a3s-404__text) {
	margin: 0 auto 24px;
	color: var(--a3s-color-muted);
}

:where(.a3s-404) :where(.a3s-search-form) {
	max-width: 520px;
	margin: 0 auto 24px;
}

:where(.a3s-404__actions) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

:where(.a3s-404__cats) :where(ul) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

:where(.a3s-404__cats) :where(a) {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--a3s-color-border);
	font-size: .875rem;
	text-transform: uppercase;
}

:where(.a3s-404__cats) :where(a:hover) {
	border-color: var(--a3s-color-primary);
	color: var(--a3s-color-text);
}

:where(.a3s-empty) {
	padding: 30px;
	background: var(--a3s-color-surface);
}

:where(.a3s-empty__title) {
	font-size: 1.25rem;
	font-weight: 700;
}

:where(.a3s-empty__tips) {
	color: var(--a3s-color-muted);
}

:where(.a3s-empty) :where(.a3s-search-form) {
	max-width: 520px;
}

/* ==========================================================================
   14. Home sections — Elementor-ready classes.
   Put the class on an Elementor Container (Advanced › CSS Classes). Works for boxed
   containers (children inside .e-con-inner) and full-width ones (direct children).
   ========================================================================== */
:where(.a3s-section) {
	margin-top: var(--a3s-section-gap);
}

:where(.a3s-section-title) {
	margin: 0 0 40px;
}

/* Real specificity on purpose: beats Elementor's generic heading style, loses to per-widget settings. */
:where(.a3s-section-title),
.a3s-section-title .elementor-heading-title {
	color: var(--a3s-color-heading);
	font-size: 2.5rem;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

:where(.a3s-band-title) {
	margin: 0 0 30px;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

@media (max-width: 1199.98px) {
	:where(.a3s-band-title) { font-size: 1.25rem; }
}

@media (max-width: 767.98px) {
	:where(.a3s-section-title) {
		margin-bottom: 24px;
	}

	:where(.a3s-section-title),
	.a3s-section-title .elementor-heading-title {
		font-size: 1.57rem;
		line-height: 1.2;
	}
}

/* Hero: full-bleed image with centred text; <picture> or background image. */
:where(.a3s-hero) {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 960 / 376;
	overflow: hidden;
	background-color: var(--a3s-color-secondary);
	background-position: center;
	background-size: cover;
	color: #fff;
	text-align: center;
}

@media (max-width: 767.98px) {
	:where(.a3s-hero) {
		aspect-ratio: 390 / 531;
	}
}

:where(.a3s-hero) > :where(picture, img, .a3s-hero__media) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

:where(.a3s-hero) :where(.a3s-hero__media img, picture img),
:where(.a3s-hero) > :where(img) {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:where(.a3s-hero__content) {
	position: relative;
	z-index: 1;
	max-width: 900px;
	padding: 20px;
}

:where(.a3s-hero__title) {
	margin: 0 0 12px;
	color: inherit;
	font-size: 3rem;
	font-weight: 500;
	line-height: 1.18;
	text-transform: uppercase;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

:where(.a3s-hero__text) {
	margin: 0;
	font-size: 1.5rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

@media (max-width: 767.98px) {
	:where(.a3s-hero__title) { font-size: 2.2rem; }
	:where(.a3s-hero__text) { font-size: 1.15rem; }
}

/* Category tiles: 6 / 6 / 2 portrait tiles, caption under the image. */
.a3s-cat-tiles:not(:has(> .e-con-inner)),
.a3s-cat-tiles > .e-con-inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

@media (min-width: 768px) {
	.a3s-cat-tiles:not(:has(> .e-con-inner)),
	.a3s-cat-tiles > .e-con-inner {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

:where(.a3s-cat-tile, .a3s-cat-tiles .elementor-widget-image-box) {
	position: relative;
	display: block;
	text-align: center;
}

:where(.a3s-cat-tile) :where(img, .a3s-cat-tile__img),
:where(.a3s-cat-tiles) :where(.elementor-image-box-img img) {
	width: 100%;
	aspect-ratio: 255 / 320;
	object-fit: cover;
	transition: filter var(--a3s-transition-base), opacity var(--a3s-transition-base);
}

:where(.a3s-cat-tile:hover) :where(img),
:where(.a3s-cat-tiles) :where(.elementor-widget-image-box:hover img) {
	filter: brightness(.82);
}

:where(.a3s-cat-tile__name),
:where(.a3s-cat-tiles) :where(.elementor-image-box-title) {
	display: block;
	margin: 0;
	padding-top: 10px;
	color: var(--a3s-color-heading);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.12;
	text-transform: uppercase;
	transition: color var(--a3s-transition-base);
}

:where(.a3s-cat-tile:hover) :where(.a3s-cat-tile__name),
:where(.a3s-cat-tiles) :where(.elementor-widget-image-box:hover .elementor-image-box-title) {
	color: var(--a3s-color-link-hover);
}

/* Product band: surface background, carousel heading (pair with .a3s-carousel inside). */
:where(.a3s-product-band) {
	margin-top: 80px;
	padding: 20px 0 80px;
	background: var(--a3s-color-surface);
}

:where(.a3s-product-band--plain) {
	background: transparent;
}

/* Promo banners: 3 cards on a charcoal band, text top-left. */
:where(.a3s-banners) {
	padding: 70px 0 25px;
	background-color: var(--a3s-color-secondary);
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 28px, transparent 28px 56px);
}

.a3s-banners:not(:has(> .e-con-inner)),
.a3s-banners > .e-con-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
}

@media (min-width: 768px) {
	.a3s-banners:not(:has(> .e-con-inner)),
	.a3s-banners > .e-con-inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

:where(.a3s-banner) {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	aspect-ratio: 440 / 312;
	padding: 30px;
	overflow: hidden;
	background-color: var(--a3s-color-dark-2);
	background-position: center;
	background-size: cover;
	color: #fff;
}

:where(.a3s-banner) > :where(img, picture) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

:where(.a3s-banner) > :where(:not(img, picture)) {
	position: relative;
	z-index: 1;
}

:where(.a3s-banner__title) {
	margin: 0 0 8px;
	color: inherit;
	font-size: 2.5rem;
	font-weight: 500;
	line-height: 1.18;
}

:where(.a3s-banner__text) {
	margin: 0 0 25px;
	font-weight: 500;
}

@media (max-width: 1199.98px) {
	:where(.a3s-banner__title) { font-size: 1.75rem; }
}

/* Banner card (events / generic promo card): white frame, image, title, date, button. */
:where(.a3s-banner-card) {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	background: #fff;
}

:where(.a3s-banner-card) :where(img) {
	width: 100%;
	aspect-ratio: 302 / 210;
	object-fit: cover;
}

:where(.a3s-banner-card__title) {
	margin: 6px 0 0;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.17;
}

:where(.a3s-banner-card__date) {
	color: var(--a3s-color-muted);
}

:where(.a3s-banner-card) :where(.a3s-btn) {
	align-self: flex-start;
	margin-top: auto;
}

/* Brand strip: 7 logos visible on desktop (pair with .a3s-carousel). */
:where(.a3s-brand-strip) {
	--a3s-carousel-cols: 7;
}

/* Beats Elementor's .elementor img {height:auto} (0,1,1, loaded later); per-widget Elementor styles (0,3,1) still win. */
.a3s-brand-strip .elementor-widget-image img,
.a3s-brand-strip img {
	width: 100%;
	max-width: 160px;
	height: 108px;
	margin-inline: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .8;
	transition: filter var(--a3s-transition-base), opacity var(--a3s-transition-base);
}

.a3s-brand-strip .elementor-widget-image a:hover img,
.a3s-brand-strip .elementor-widget-image img:hover,
.a3s-brand-strip a:hover img,
.a3s-brand-strip img:hover {
	filter: none;
	opacity: 1;
}

@media (max-width: 1199.98px) {
	:where(.a3s-brand-strip) { --a3s-carousel-cols: 5; }
}

@media (max-width: 767.98px) {
	:where(.a3s-brand-strip) { --a3s-carousel-cols: 2.8; }
}

/* Posts: 4 / 4 / 1 (pair with .a3s-carousel for a swipe row, or use as a grid). */
:where(.a3s-posts) {
	--a3s-carousel-cols: 4;
}

@media (max-width: 767.98px) {
	:where(.a3s-posts) { --a3s-carousel-cols: 1.15; }
}

.a3s-posts:not(.a3s-carousel):not(:has(> .e-con-inner)),
.a3s-posts:not(.a3s-carousel) > .e-con-inner {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 30px;
}

/* --------------------------------------------------------------------------
   Scroll-snap carousel utility (no JS). Track = the element itself, its
   .e-con-inner, or a WooCommerce ul.products inside it. Columns via
   --a3s-carousel-cols (default 4 / 3 / 2 like the reference product band).
   -------------------------------------------------------------------------- */
:where(.a3s-carousel) {
	--a3s-carousel-gap: 16px;
}

@media (max-width: 991.98px) {
	:where(.a3s-carousel:not(.a3s-brand-strip, .a3s-posts)) { --a3s-carousel-cols: 3; }
}

@media (max-width: 767.98px) {
	:where(.a3s-carousel:not(.a3s-brand-strip, .a3s-posts)) { --a3s-carousel-cols: 2; }
}

.a3s-carousel:not(:has(> .e-con-inner, ul.products)),
.a3s-carousel > .e-con-inner:not(:has(ul.products)),
.a3s-carousel ul.products.products {
	display: flex;
	flex-direction: row; /* Elementor containers default to column. */
	flex-wrap: nowrap;
	gap: var(--a3s-carousel-gap);
	margin: 0;
	padding: 0 0 12px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	scrollbar-width: thin;
	scrollbar-color: var(--a3s-color-border) transparent;
	list-style: none;
	-webkit-overflow-scrolling: touch;
}

.a3s-carousel:not(:has(> .e-con-inner, ul.products)) > *,
.a3s-carousel > .e-con-inner:not(:has(ul.products)) > *,
.a3s-carousel ul.products.products > li {
	flex: 0 0 calc((100% - (var(--a3s-carousel-cols, 4) - 1) * var(--a3s-carousel-gap)) / var(--a3s-carousel-cols, 4));
	width: auto;
	max-width: none;
	margin: 0;
	scroll-snap-align: start;
}

/* WooCommerce adds clearfix pseudo-elements to ul.products: they would become flex items. */
.a3s-carousel ul.products.products::before,
.a3s-carousel ul.products.products::after {
	display: none;
}

/* ==========================================================================
   15. Elementor full-width pages
   ========================================================================== */
:where(.a3s-main--elementor) > :where(.elementor) {
	width: 100%;
}

/* ==========================================================================
   16. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	:where(html) {
		scroll-behavior: auto;
	}

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

/* ==========================================================================
   17. Print
   ========================================================================== */
@media print {
	:where(.a3s-sidebar, .a3s-share, .a3s-related, .a3s-comments, .a3s-pagination) {
		display: none;
	}
}

/* ==========================================================================
   Logo variants (inc/logo.php, 1.4.0). The header prints a light-background and a dark-background image;
   .a3s-header[data-tone] (header-styles.js / header-sync.js) shows the one that reads. Optional phone image.
   ========================================================================== */
.a3s-logo__img--ondark:not(.a3s-logo__img--onlight),
.a3s-logo__img--mobile {
	display: none;
}

[data-tone="dark"] .a3s-logo__img--onlight:not(.a3s-logo__img--ondark) {
	display: none;
}

[data-tone="dark"] .a3s-logo__img--ondark {
	display: block;
}

@media (max-width: 991.98px) {
	.a3s-logo--has-mobile .a3s-logo__img:not(.a3s-logo__img--mobile) {
		display: none;
	}

	.a3s-logo--has-mobile .a3s-logo__img--mobile {
		display: block;
	}
}

/* Customizer > Logo > height (px): classic / centered rows; the bar styles read --a3s-logo-h themselves. */
body.a3s-has-logo-h .a3s-masthead__logo .a3s-logo__img {
	width: auto;
	max-width: none;
	height: var(--a3s-logo-h);
}

@media (max-width: 991.98px) {
	body.a3s-has-logo-h .a3s-masthead__logo .a3s-logo__img {
		height: calc(var(--a3s-logo-h) * 0.6);
	}
}
