/* Flawio redesign 2026 – tokens and components on top of Blocksy. */

/* Self-hosted fonts (SIL Open Font License), nothing is loaded from Google. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-latin-400-normal.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: 400;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter-latin-600-normal.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: 600;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-700-normal.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: "Playfair Display";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--flawio-bg: #FFFFFF;
	--flawio-bg-soft: #F7EFEA;
	--flawio-primary: #8E1B3A;
	--flawio-primary-hover: #6E1430;
	--flawio-footer: #3A0E1C;
	--flawio-text: #2B2B2B;
	--flawio-muted: #6B6B6B;
	--flawio-success: #2E7D32;
	--flawio-border: #EAE3DE;

	--flawio-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--flawio-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;

	--theme-font-family: var(--flawio-font-body);
	--theme-font-size: 18px;
	--theme-line-height: 1.6;
	--theme-button-min-height: 48px;

	/* Blocksy buttons (add to cart etc.) in brand colours. */
	--theme-button-background-initial-color: var(--flawio-primary);
	--theme-button-background-hover-color: var(--flawio-primary-hover);
	--theme-button-text-initial-color: #FFFFFF;
	--theme-button-text-hover-color: #FFFFFF;
}

body {
	background: var(--flawio-bg);
	color: var(--flawio-text);
}

h1, h2, h3, .ct-module-title, .woocommerce-products-header__title, .product_title {
	font-family: var(--flawio-font-heading);
	font-weight: 700;
	letter-spacing: 0;
}

/* Buttons: large, always readable. */
.button, button.button, .wp-element-button, .ct-button, input[type="submit"] {
	min-height: 48px;
	padding-inline: 24px;
	border-radius: 6px;
	font-weight: 600;
}

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

/* Soft sections (homepage banners, benefits strip). */
.flawio-soft {
	background: var(--flawio-bg-soft);
}

/* Sticky add-to-cart bar (mobile and desktop once the real button is out of view). */
.flawio-sticky-atc {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: var(--flawio-bg);
	border-top: 1px solid var(--flawio-border);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
	transform: translateY(110%);
	transition: transform .2s ease;
}
.flawio-sticky-atc.is-visible {
	transform: none;
}
.flawio-sticky-atc__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.flawio-sticky-atc__name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 15px;
}
.flawio-sticky-atc__price {
	color: var(--flawio-primary);
	font-weight: 700;
}

/* Long Czech words must never push the page sideways on small phones. */
.product_title, .woocommerce-loop-product__title, .ct-menu-link {
	overflow-wrap: anywhere;
}


/* Category tiles (homepage occasions, subcategories on category pages) */
.flawio-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--flawio-cols, 3), 1fr);
	gap: 24px;
}
.flawio-tile a {
	display: block;
	overflow: hidden;
	border-radius: 16px;
	background: var(--flawio-bg);
	color: var(--flawio-text);
	text-decoration: none;
	box-shadow: 0 0 0 1px var(--flawio-border);
	transition: box-shadow .2s ease, transform .2s ease;
}
.flawio-tile a:hover {
	box-shadow: 0 14px 30px rgba(58, 14, 28, .14), 0 0 0 1px var(--flawio-border);
	transform: translateY(-3px);
}
.flawio-tile img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.flawio-tile__name {
	display: block;
	padding: 16px;
	font-family: var(--flawio-font-heading);
	font-size: 21px;
	font-weight: 700;
	text-align: center;
}
.flawio-tile__name::after {
	content: " →";
	color: var(--flawio-primary);
}

@media (max-width: 768px) {
	.flawio-tiles {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.flawio-tile__name {
		padding: 12px 8px;
		font-size: 17px;
	}
}

/* Buttons */
.flawio-btn-primary .wp-block-button__link,
.flawio-btn-ghost .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	padding: 12px 28px;
	border-radius: 10px;
	font-size: 18px;
	font-weight: 600;
}
.flawio-btn-primary .wp-block-button__link {
	background: var(--flawio-primary);
	color: #FFFFFF;
}
.flawio-btn-primary .wp-block-button__link:hover {
	background: var(--flawio-primary-hover);
}
.flawio-btn-ghost .wp-block-button__link {
	background: transparent;
	color: #FFFFFF;
	border: 2px solid rgba(255, 255, 255, .85);
}
.flawio-btn-ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .12);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--flawio-primary);
	color: var(--flawio-primary);
	background: transparent;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--flawio-primary);
	color: #FFFFFF;
}
