/*
 * ERDOAVM brand layer — loaded after every theme stylesheet.
 *
 * BRAND COLOURS: the --erd-* values below are the only place colours are set.
 * Measured from the owner's original logo (median of the solid areas, JPEG
 * edges excluded): blue #055086, orange #EA431E.
 * Buttons use the same orange darkened to #D23C1B so white text meets WCAG AA
 * (4.77:1; the pure logo orange gives 3.95:1). The pure orange is kept for the
 * logo, icons and decorative accents.
 */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	/* Turkish: Ğ ğ İ ı Ş ş and the Turkish lira sign ₺ */
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* ---- ERDOAVM brand tokens (from the original logo) ---- */
	--erd-blue: #055086;           /* logo blue: "E" mark and "Erdo" */
	--erd-orange: #ea431e;         /* logo orange: arrow and "AVM" */
	--erd-brand: #d23c1b;          /* action colour: logo orange, AA-safe with white text */
	--erd-brand-ink: var(--erd-blue);
	--erd-accent: var(--erd-orange);
	--erd-surface: #ffffff;
	--erd-canvas: #f5f7fa;
	--erd-text: #1d2939;
	--erd-muted: #5d6b82;
	--erd-line: #e3e8ef;

	/* derived — never edit, they follow the tokens above */
	--erd-brand-hover: color-mix(in srgb, var(--erd-brand) 86%, #000);
	--erd-brand-soft: color-mix(in srgb, var(--erd-brand) 10%, #fff);
	--erd-focus: color-mix(in srgb, var(--erd-blue) 55%, transparent);
	--erd-blue-soft: color-mix(in srgb, var(--erd-blue) 8%, #fff);

	/* motion */
	--erd-ease: cubic-bezier(.2, .7, .2, 1);
	--erd-fast: 160ms;
	--erd-base: 320ms;
	--erd-slow: 520ms;

	/* map the theme's legacy variables onto the brand */
	--kb-primary: var(--erd-brand);
	--kb-primary-hover: var(--erd-brand-hover);
	--kb-primary-dark: var(--erd-brand-hover);
	--kb-primary-soft: var(--erd-brand-soft);
	--kb-navy: var(--erd-brand-ink);
	--kb-navy-light: color-mix(in srgb, var(--erd-blue) 82%, #fff);
	--kb-color-price-secondary: var(--erd-blue);
	--kb-text: var(--erd-text);
	--kb-muted: var(--erd-muted);
	--kb-bg: var(--erd-canvas);
	--kb-bg-soft: var(--erd-canvas);
	--kb-surface: var(--erd-surface);
	--kb-border: var(--erd-line);
	--kb-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--kb-font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--kb-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--kb-shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
	--kb-shadow-lg: 0 20px 48px rgba(16, 24, 40, .12);
}

body {
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, .kb-home-section__title {
	letter-spacing: -0.015em;
}

/* ---- logo / wordmark ---- */
.erd-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	color: var(--erd-brand-ink);
	text-decoration: none;
}
.erd-logo img {
	display: block;
	height: 40px;
	width: auto;
	max-width: 100%;
}
.erd-logo--footer img { height: 40px; }
.erd-logo--hero img { height: 46px; }
@media (max-width: 680px) {
	.erd-logo img { height: 32px; }
}
.erd-wordmark {
	font: 800 1.55rem/1 var(--kb-font-body);
	letter-spacing: .08em;
	color: var(--erd-brand-ink);
}
.erd-logo--footer .erd-wordmark { color: inherit; }

/* ---- focus: visible for keyboard users only ---- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--erd-focus);
	outline-offset: 2px;
}

/* ---- interactive elements: compositor-only transitions (transform / opacity / shadow) ---- */
.kb-button,
.button,
button.single_add_to_cart_button,
.kb-product-card__cart {
	transition: background-color var(--erd-fast) var(--erd-ease), box-shadow var(--erd-fast) var(--erd-ease), transform var(--erd-fast) var(--erd-ease);
}
.kb-button:active,
.button:active,
button.single_add_to_cart_button:active,
.kb-product-card__cart:active {
	transform: scale(.98);
}

.kb-product-card,
.kb-category-card {
	transition: transform var(--erd-base) var(--erd-ease), box-shadow var(--erd-base) var(--erd-ease);
}
.kb-product-card img,
.kb-category-card__media img {
	transition: transform var(--erd-slow) var(--erd-ease);
}
@media (hover: hover) {
	.kb-product-card:hover,
	.kb-category-card:hover {
		transform: translateY(-3px);
		box-shadow: var(--kb-shadow-md);
	}
	.kb-product-card:hover img,
	.kb-category-card:hover .kb-category-card__media img {
		transform: scale(1.035);
	}
}

/* cart counter bump after add-to-cart */
@keyframes erd-bump {
	0% { transform: scale(1); }
	35% { transform: scale(1.25); }
	100% { transform: scale(1); }
}
.erd-bump {
	animation: erd-bump 420ms var(--erd-ease);
}

/* ---- reveal on scroll: only when JS is running (html.erd-motion) ---- */
.erd-motion .erd-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity var(--erd-slow) var(--erd-ease), transform var(--erd-slow) var(--erd-ease);
	transition-delay: calc(var(--erd-i, 0) * 45ms);
}
.erd-motion .erd-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* hero: one gentle entrance */
@keyframes erd-rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}
.erd-motion .kb-hero__overlay > * {
	animation: erd-rise var(--erd-slow) var(--erd-ease) both;
}
.erd-motion .kb-hero__overlay > *:nth-child(2) { animation-delay: 60ms; }
.erd-motion .kb-hero__overlay > *:nth-child(3) { animation-delay: 120ms; }
.erd-motion .kb-hero__overlay > *:nth-child(4) { animation-delay: 180ms; }
.erd-motion .kb-hero__overlay > *:nth-child(5) { animation-delay: 240ms; }

/* ---- respect the OS "reduce motion" setting: no movement at all ---- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.erd-motion .erd-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---- store notice: in the flow at the top of the page, brand colours ---- */
p.demo_store,
.woocommerce-store-notice {
	position: relative !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	z-index: 1;
	margin: 0;
	padding: .55rem 1rem;
	background: var(--erd-blue);
	color: #fff;
	font-size: .875rem;
	line-height: 1.45;
	text-align: center;
	box-shadow: none;
}
.woocommerce-store-notice a,
p.demo_store a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.woocommerce-store-notice__dismiss-link {
	margin-left: .5rem;
	padding: .1rem .55rem;
	border-radius: 999px;
	background: var(--erd-orange);
	text-decoration: none !important;
}

/* CTA text link on the blue band: readable (was grey on blue) */
.kb-home-cta__link {
	color: #fff !important;
	opacity: .92;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.kb-home-cta__link:hover { opacity: 1; }

/* Closed mobile drawer: the theme's display:grid overrides [hidden], so the
 * off-screen drawer still cast its shadow into the page and its links stayed
 * keyboard-focusable. Hide it once the slide-out has finished. */
.kb-mobile-drawer[hidden] {
	visibility: hidden;
	box-shadow: none;
	transition: transform 220ms ease, visibility 0s linear 220ms, box-shadow 0s linear 220ms;
}
.kb-mobile-drawer:not([hidden]) {
	visibility: visible;
	transition: transform 220ms ease, visibility 0s;
}
