*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--cd-surface-base);
	color: var(--cd-color-text);
	font-family: var(--cd-font-family);
	font-size: var(--cd-font-md);
	font-weight: var(--cd-weight-normal);
	line-height: var(--cd-line-height);
	overflow-wrap: break-word;
}

/* Page canvas is independent of the approved component surfaces. */
body:not(.page-template-page-ui-kit):not(.page-template-page-ui-kit-php):not(.wp-admin) {
	background-color: #F6F6F6;
}

h1, h2, h3, h4, h5, h6 {
	margin-block: 0 var(--cd-space-4);
	font-weight: var(--cd-weight-bold);
	line-height: var(--cd-line-height-heading);
}

h1 { font-size: var(--cd-font-xl); }
h2 { font-size: var(--cd-font-lg); }
h3, h4, h5, h6 { font-size: var(--cd-font-md); }
p { margin-block: 0 var(--cd-space-4); }
a { color: var(--cd-color-link); text-underline-offset: 0.2em; }
a:hover { color: var(--cd-color-link-hover); }
button, input, select, textarea { font: inherit; }
img, video { max-width: 100%; height: auto; }
/* Canonical focus recipe. Priority is limited to outline, so Woo and component
 * :focus rules cannot reintroduce a second/dark ring. Brand Lab stays a frozen reference. */
:focus-visible { outline: var(--cd-focus-width) solid var(--cd-focus-color); outline-offset: var(--cd-focus-offset); }
:focus-visible:not(#cd-brand-lab *):not(.cd-select__list) {
 outline: var(--cd-focus-width) solid var(--cd-focus-color) !important;
 outline-offset: var(--cd-focus-ring-offset, var(--cd-focus-offset)) !important;
}
:focus:is([data-cd-pointer-focus], :not(:focus-visible)):not(#cd-brand-lab *):not(.flex-active) { outline: none !important; }
@supports not selector(:focus-visible) {
 :focus:not(:where(#cd-brand-lab *)) { outline: var(--cd-focus-width) solid var(--cd-focus-color); outline-offset: var(--cd-focus-offset); }
}
@media (forced-colors: active) {
 :focus:not(#cd-brand-lab *):not(.cd-select__list),
 [data-cd-pointer-focus]:focus:not(#cd-brand-lab *):not(.cd-select__list) { outline: 2px solid Highlight !important; outline-offset: var(--cd-focus-ring-offset, 3px) !important; }
}

/* One frontend shell rhythm; homepage and purchase flows are excluded in body_class. */
body.cd-page-shell #main-content {
	padding-top: var(--cd-space-6);
}
body.cd-page-shell:not(.single-product) #main-content { padding-top: var(--cd-space-4); }
@media (max-width: 64rem) {
	body.cd-page-shell #main-content { padding-top: var(--cd-space-4); }
}
