/* ============================================================
   Chytrá houba.eu – global styles used on every page
   (fonts, tokens, base, header, footer, shared components)
   ============================================================ */

/* ---- Fonts (self-hosted, latin + latin-ext) ---- */
@font-face {
	font-family: 'Baloo 2';
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/baloo2-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: 'Baloo 2';
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/baloo2-latin-ext.woff2') format('woff2');
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Quicksand';
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/quicksand-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: 'Quicksand';
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/quicksand-latin-ext.woff2') format('woff2');
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Caveat';
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/caveat-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: 'Caveat';
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/caveat-latin-ext.woff2') format('woff2');
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ---- Design tokens ---- */
:root {
	--text: #23402F;
	--text-2: #3E5546;
	--text-muted: #5E7265;
	--text-faint: #93A398;

	--green: #2F6B43;
	--green-hover: #23402F;
	--green-dark: #1C3326;
	--brick: #B04E26;
	--brick-hover: #94401E;
	--brick-active: #7A3417;
	--brick-soft: #F8E6DC;
	--success: #16A34A;

	--bg: #F5F8F2;
	--bg-header: #E6F0E0;
	--bg-light: #EAF1E5;
	--bg-sage: #DCEAD3;
	--bg-rose: #FCF3EE;
	--card: #FFFFFF;

	--border-subtle: #E2EADC;
	--border: #CFDCC7;
	--border-strong: #A9BBA0;
	--border-header: #C9DCBF;

	--font-display: 'Baloo 2', system-ui, 'Segoe UI', sans-serif;
	--font-body: 'Quicksand', system-ui, 'Segoe UI', sans-serif;
	--font-hand: 'Caveat', cursive;

	--radius-sm: 10px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--radius-xl: 28px;
	--radius-2xl: 36px;
	--radius-pill: 999px;

	--shadow-sm: 0 2px 6px rgba(19, 19, 22, 0.08);
	--shadow-md: 0 6px 18px rgba(19, 19, 22, 0.10);
	--shadow-lg: 0 16px 40px rgba(19, 19, 22, 0.14);
	--shadow-brick: 0 4px 12px rgba(176, 78, 38, 0.26);
	--shadow-green: 0 4px 12px rgba(47, 107, 67, 0.3);

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--dur-fast: 140ms;
	--dur-base: 240ms;

	--gutter: 32px;
	--header-offset: 96px;
}

@media (max-width: 720px) {
	:root {
		--gutter: 16px;
	}
}


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

html {
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

main {
	flex: 1;
}

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--text);
}

p {
	margin: 0;
}

a {
	color: var(--green);
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
	color: var(--green-hover);
}

img {
	max-width: 100%;
	display: block;
}

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

:focus-visible {
	outline: 3px solid rgba(47, 107, 67, 0.45);
	outline-offset: 2px;
}

::selection {
	background: var(--bg-sage);
	color: var(--text);
}

.wrap {
	width: min(var(--wrap, 1200px), 100% - 2 * var(--gutter));
	margin-inline: auto;
}

.wrap--narrow {
	--wrap: 1100px;
}

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


/* ---- Buttons ---- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius-pill);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}

.btn:active {
	transform: scale(0.96);
}

.btn i {
	font-size: 18px;
}

.btn--brick {
	background: var(--brick);
	color: #fff;
	box-shadow: var(--shadow-brick);
}

.btn--brick:hover {
	background: var(--brick-hover);
	color: #fff;
}

.btn--green {
	background: var(--green);
	color: #fff;
	box-shadow: var(--shadow-green);
}

.btn--green:hover {
	background: var(--green-hover);
	color: #fff;
}

.btn--outline {
	border: 1.5px solid var(--text);
	background: transparent;
	color: var(--text);
}

.btn--outline:hover {
	background: rgba(255, 255, 255, 0.6);
	color: var(--text);
}

.btn--lg {
	min-height: 52px;
	padding: 0 24px;
	font-size: 1.0625rem;
}

.btn--block {
	width: 100%;
}


/* ---- Header ---- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--bg-header);
	border-bottom: 1px solid var(--border-header);
}

.site-header__inner {
	min-height: 76px;
	padding-block: 14px;
	display: flex;
	align-items: center;
	gap: 12px 16px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	color: var(--text);
}

.logo:hover {
	color: var(--text);
}

.logo__mark {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--green);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.logo__text {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	line-height: 1;
}

.logo__tld {
	color: var(--brick);
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
	overflow: hidden;
}

.main-nav a {
	padding: 9px 12px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 0.9375rem;
	white-space: nowrap;
	color: var(--text-2);
}

.main-nav a:hover {
	color: var(--green);
}

.main-nav a.is-active {
	background: rgba(255, 255, 255, 0.7);
	color: var(--green);
}

.main-nav__short {
	display: none;
}

.site-header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.btn--cart {
	padding: 0 18px;
	font-size: 0.875rem;
}

.btn--cart__count {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--brick);
	font-size: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn--login {
	font-size: 0.875rem;
}

.btn--login i {
	display: none;
}

@media (max-width: 1000px) {
	.main-nav__long {
		display: none;
	}

	.main-nav__short {
		display: inline;
	}
}

@media (max-width: 720px) {
	.site-header__inner {
		flex-wrap: wrap;
	}

	.main-nav {
		order: 3;
		width: 100%;
		overflow-x: auto;
	}
}

@media (max-width: 480px) {
	.site-header__inner {
		gap: 10px;
	}

	.logo__mark {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}

	.logo__text {
		font-size: 1.25rem;
	}

	.btn--cart {
		padding: 0 14px;
	}

	.btn--cart__label,
	.btn--login span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.btn--login {
		width: 44px;
		padding: 0;
	}

	.btn--login i {
		display: block;
	}
}


/* ---- Footer ---- */
.site-footer {
	padding: 64px 0 40px;
	background: var(--green-dark);
	color: var(--bg);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
}

.site-footer .logo {
	margin-bottom: 16px;
	color: #fff;
}

.site-footer .logo__mark {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	font-size: 20px;
}

.site-footer .logo__text {
	font-size: 1.375rem;
}

.site-footer .logo__tld {
	color: #E3A889;
}

.site-footer__about {
	max-width: 300px;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(245, 248, 242, 0.75);
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer__col h4 {
	margin: 0 0 6px;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(245, 248, 242, 0.7);
}

.site-footer__col a {
	color: var(--bg);
}

.site-footer__col a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer__bottom {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8125rem;
	color: rgba(245, 248, 242, 0.7);
}


/* ---- Shared components ---- */
.box {
	background: var(--card);
	border-radius: var(--radius-2xl);
	box-shadow: var(--shadow-sm);
	padding: 24px;
}

.eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.eyebrow--brick {
	color: var(--brick-hover);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag {
	padding: 3px 10px;
	border-radius: var(--radius-pill);
	background: var(--bg-light);
	color: var(--green);
	font-size: 0.75rem;
	font-weight: 700;
}

.badge-new {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: var(--brick);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-muted);
}

.breadcrumb i {
	font-size: 12px;
}

.breadcrumb__current {
	color: var(--text);
}

/* product photo, or a placeholder until the real photo exists */
.product-img {
	width: 100%;
	height: 100%;
	background: #fff;
}

.product-img img {
	width: 100%;
	height: 100%;
	padding: 6%;
	object-fit: contain;
}

.product-img--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px;
	background: var(--bg-light);
	color: var(--text-faint);
	text-align: center;
}

.product-img--empty i {
	font-size: 32px;
}

.product-img--empty span {
	max-width: 90%;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--text-muted);
}

/* quantity stepper (product detail, cart) */
.qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-pill);
}

.qty button {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qty button:hover {
	background: var(--bg);
}

.qty output {
	min-width: 26px;
	text-align: center;
	font-weight: 700;
	font-size: 1.0625rem;
}

.qty--sm {
	padding: 2px;
}

.qty--sm button {
	width: 38px;
	height: 38px;
}

.qty--sm output {
	min-width: 22px;
	font-size: 1rem;
}

.flash {
	padding: 12px var(--gutter);
	background: var(--bg-light);
	font-weight: 700;
	text-align: center;
}
