/* ===== Global Base ===== */
/* ============================================
   LOWKEYS BASE TOKENS
   Global variables, reset, typography, helpers.
   ============================================ */
:root {
	color-scheme: light;
	--color-ink: #111111;
	--color-ink-soft: #3d3d3d;
	--color-muted: #707070;
	--color-border: #e9e9e9;
	--color-border-strong: #d7d7d7;
	--color-bg: #ffffff;
	--color-bg-soft: #f7f7f5;
	--color-card: #ffffff;
	--color-inverse: #ffffff;
	--color-accent: #111111;
	--color-danger: #d64045;
	--color-success: #1f8f5f;
	--color-warning: #a97818;
	--shadow-xs: 0 1px 2px rgba(17, 17, 17, 0.06);
	--shadow-sm: 0 8px 22px rgba(17, 17, 17, 0.08);
	--shadow-md: 0 18px 50px rgba(17, 17, 17, 0.12);
	--shadow-panel: 0 24px 70px rgba(17, 17, 17, 0.16);
	--radius-xs: 8px;
	--radius-sm: 12px;
	--radius-md: 18px;
	--radius-lg: 28px;
	--radius-pill: 999px;
	--container-width: 1400px;
	--container-padding: clamp(16px, 4vw, 32px);
	--header-height: 118px;
	--header-tier-gap: 5px;
	--header-padding-top: 12px;
	--header-padding-bottom: 6px;
	--header-menu-min-height: 42px;
	--header-menu-offset: 6px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
	--duration-fast: 160ms;
	--duration-base: 240ms;
	--duration-slow: 420ms;
	--tap-size: 44px;
	--header-surface: rgba(255, 255, 255, 0.96);
	--header-surface-solid: #ffffff;
	--header-divider: rgba(17, 17, 17, 0.08);

	--font-body: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-ui: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-display: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-brand: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-weight-light: 300;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	min-width: 320px;
	font-family: var(--font-body);
	background: var(--color-bg);
	color: var(--color-ink);
	line-height: 1.5;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.cart-open {
	overflow: hidden;
	touch-action: none;
}

body.menu-open {
	overflow-x: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

button {
	border: 0;
	background: none;
	cursor: pointer;
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

::selection {
	background: var(--color-ink);
	color: var(--color-inverse);
}

.container {
	width: min(100%, var(--container-width));
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 9999;
	padding: 10px 16px;
	border-radius: var(--radius-pill);
	background: var(--color-ink);
	color: var(--color-inverse);
	font-size: 0.88rem;
	font-weight: var(--font-weight-semibold);
	transform: translateY(-140%);
	transition: transform var(--duration-base) var(--ease-smooth);
}

.skip-link:focus {
	transform: translateY(0);
}

:focus-visible {
	outline: 2px solid var(--color-ink);
	outline-offset: 3px;
}


h1,
h2,
h3,
.heading-display,
.font-display {
	font-family: var(--font-display);
	font-weight: var(--font-weight-semibold);
	letter-spacing: -0.045em;
}

button,
input,
textarea,
select,
.btn,
.header-menu,
.product-category,
.product-price,
.footer-links,
.footer-contact {
	font-family: var(--font-ui);
}

.text-balance {
	text-wrap: balance;
}

main {
	isolation: isolate;
}
