/*
Theme Name: FRS Online
Theme URI: https://frs-online.de
Author: FRS GmbH & Co. KG
Author URI: https://frs-online.de
Description: Block theme for frs-online.de, built on Blockstudio v7. Migrated from Bricks + ACSS.
Version: 2.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.2
License: Proprietary
Text Domain: frs-online
WC requires at least: 10.0
*/

:root {
	--font-body: "Arimo", Arial, sans-serif;
	--font-heading: "Montserrat", system-ui, sans-serif;
	/* Bottom edge of the pinned site header, for sticky elements and anchor
	 * jumps (gallery, Zubehör, cart totals). 110px is only the fallback until
	 * blockstudio/sections/site-header/script.js measures the real header and
	 * overwrites it on <html>. */
	--header-height: 110px;
}

body {
	font-family: var(--font-body);
}

/* WooCommerce taxonomy-product_cat archive — page-level layout wrapper.
 * The archive's main column is content-width-clamped and gets vertical
 * rhythm between sections. Per-block scoped CSS owns everything inside.
 */
.frs-archive {
	max-width: var(--content-width, 1200px);
	margin-inline: auto;
	padding-inline: var(--space-m);
	padding-block: var(--space-l);
}

.frs-archive > * + * {
	margin-block-start: var(--space-m);
}

.frs-archive__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--h1, 2rem);
	line-height: 1.2;
}

.frs-archive__description {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-m);
	color: color-mix(in oklch, var(--text-dark, currentColor) 80%, transparent);
}

/* WooCommerce order-received fallback page. WC core renders alignwide order
 * confirmation blocks here; prod-verbatim .alignwide is 120% and clips.
 */
body.woocommerce-order-received main:not(:has(> .frs-section)) {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--content-width, 1200px);
	min-width: 0;
	margin-inline: auto;
	padding-inline: var(--space-m);
}

body.woocommerce-order-received main .alignwide {
	width: auto;
	max-width: 100%;
	min-width: 0;
	margin-inline: 0;
}

/* „Frage zum Produkt stellen“ (#941): Fluent Forms Pro öffnet das Formular in
 * einem Lity-Fenster, das direkt an <body> hängt. Dort erbt es die Serifenschrift
 * Literata, die das Inline-CSS des alten Shops auf body setzt, und die
 * block-scoped CSS von frs/product-summary greift nicht mehr. Shop-Schrift wie
 * im übrigen Kaufbereich (Marcel, Webshop-Meeting 20.11.2026).
 */
.lity .fluentform {
	font-family: var(--font-heading);
}

.lity .fluentform :is(input, textarea, select, button) {
	font-family: inherit;
}
