/*
Theme Name: Flagmore 2026
Theme URI: https://flagmore.ee/
Description: Flagmore e-poe 2026. aasta kujundus (Twenty Twenty-Five lapsteema). Vahetatav teemaga „Flagmore“.
Author: Flagmore OÜ
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flagmore-2026
*/

/* Colours, fonts and spacing live in theme.json; below is only what theme.json cannot express. */

/* ---------- Shared ---------- */
.fm26-eyebrow {
	margin: 0;
	font: 400 12px/1.4 var(--wp--preset--font-family--mono);
	letter-spacing: .12em;
	text-transform: uppercase;
}
.fm26-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.fm26-chip {
	height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius-pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: 500 15px/1 var(--wp--preset--font-family--body);
	cursor: pointer;
}
.fm26-chip:hover {
	border-color: var(--wp--preset--color--ink);
}
.fm26-chip[aria-pressed="true"] {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	font-weight: 600;
}
.fm26-chip:focus-visible,
.fm26-btn-dark:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
.fm26-btn-dark {
	display: inline-block;
	padding: 13px 20px;
	border-radius: var(--wp--custom--radius-pill);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
}
.fm26-btn-dark:hover {
	background: #1d2f45;
	color: var(--wp--preset--color--white);
}
.fm26-arrow {
	margin-block-start: 16px;
}
.fm26-arrow a {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	text-decoration: none;
}
.fm26-arrow a:hover {
	text-decoration: underline;
}

/* ---------- Utility bar ---------- */
.fm26-utility p {
	margin: 0;
}
.fm26-utility a {
	color: inherit;
	text-decoration: none;
}
.fm26-utility a:hover {
	color: var(--wp--preset--color--white);
}

/* ---------- Header ---------- */
.fm26-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.fm26-header__row > * {
	margin: 0;
}
.fm26-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.fm26-brand__name {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1;
}
.fm26-brand__shop {
	font: 400 12px/1 var(--wp--preset--font-family--mono);
	letter-spacing: .1em;
	color: var(--wp--preset--color--muted);
}
.fm26-search {
	flex: 1 1 320px;
	min-width: 0;
}
.fm26-search .wp-block-search__inside-wrapper {
	position: relative;
}
.fm26-search .wp-block-search__input {
	box-sizing: border-box;
	height: 48px;
	padding: 0 18px 0 46px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius-pill);
	background: var(--wp--preset--color--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235A6573' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 18px 50%;
	color: var(--wp--preset--color--ink);
	font: 400 15px/1 var(--wp--preset--font-family--body);
}
.fm26-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
}
.fm26-round .wc-block-customer-account__account-icon,
.fm26-round a {
	display: flex;
	align-items: center;
	justify-content: center;
}
.fm26-round a {
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius-pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}
.fm26-cart .wc-block-mini-cart__button {
	box-sizing: border-box;
	height: 48px;
	padding: 0 18px;
	border-radius: var(--wp--custom--radius-pill);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	font: 600 15px/1 var(--wp--preset--font-family--body);
}
.fm26-cart .wc-block-mini-cart__button:hover {
	background: #1d2f45;
	opacity: 1;
}
.fm26-cart .wc-block-mini-cart__icon {
	color: var(--wp--preset--color--white);
}
.fm26-cart .wc-block-mini-cart__amount {
	display: none;
}
.fm26-cart .wc-block-mini-cart__badge {
	border: 0;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

/* Category navigation */
.fm26-catnav .wp-block-navigation-item__content {
	padding: 0;
}
.fm26-catnav .fm26-nav-accent .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
}
.fm26-catnav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
}

/* ---------- Front page ---------- */
.fm26-front > * + * {
	margin-block-start: 0;
}
.fm26-section {
	margin-block-start: var(--wp--preset--spacing--80) !important;
}
.fm26-section__title {
	margin: 0 0 28px;
}
.fm26-section__head {
	margin-bottom: 28px;
}
.fm26-section__head .fm26-section__title {
	margin: 0;
}
.fm26-front [hidden] {
	display: none !important;
}

/* Hero + finder */
.fm26-hero__panel {
	flex: 1.3 1 560px;
	min-width: 0;
	gap: 24px;
	padding: 56px 48px;
	border-radius: var(--wp--custom--radius-panel);
	overflow: hidden;
}
.fm26-hero__copy {
	flex: 1 1 300px;
	min-width: 0;
}
.fm26-hero__copy > * {
	margin: 0;
}
.fm26-hero__copy .fm26-eyebrow {
	margin-bottom: 18px;
}
.fm26-hero__copy h1 {
	line-height: 1;
}
.fm26-hero__lead {
	max-width: 420px;
	margin-top: 20px !important;
	font-size: 17px;
	line-height: 1.55;
}
.fm26-hero__cta {
	margin-top: 32px !important;
}
.fm26-hero__cta .wp-block-button__link {
	padding: 16px 26px;
	font-size: 16px;
}
.fm26-hero__flag {
	flex: 0 1 220px;
	width: 220px;
	max-width: 100%;
	height: auto;
}
.fm26-finder {
	display: flex;
	flex: 1 1 380px;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
	padding: 36px 32px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius-panel);
	background: var(--wp--preset--color--white);
}
.fm26-finder__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: -.02em;
}
.fm26-finder__sub {
	margin: 8px 0 0;
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}
.fm26-finder__group {
	margin: 0;
	padding: 0;
	border: 0;
}
.fm26-finder__legend,
.fm26-finder__label {
	font: 400 12px/1.4 var(--wp--preset--font-family--mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.fm26-finder__legend {
	margin-bottom: 12px;
	padding: 0;
}
.fm26-finder__result {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding: 18px 20px;
	border-radius: 16px;
	background: var(--wp--preset--color--paper);
}
.fm26-finder__rec {
	margin-top: 4px;
	font-size: 20px;
	font-weight: 700;
}

/* Category tiles */
.fm26-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fm26-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding: 24px 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	background: var(--wp--preset--color--white);
	transition: border-color .15s;
}
.fm26-tile:hover {
	border-color: var(--wp--preset--color--ink);
}
.fm26-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	color: var(--wp--preset--color--ink);
}
.fm26-tile__title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.fm26-tile__title::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.fm26-tile__title:focus-visible {
	outline: none;
}
.fm26-tile:has(.fm26-tile__title:focus-visible) {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
.fm26-tile__sub {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

/* Product cards */
.fm26-products .wc-block-product-template {
	gap: 20px;
}
.fm26-products .wc-block-product {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius-card);
	background: var(--wp--preset--color--white);
	text-align: left;
}
.fm26-products .wc-block-components-product-image {
	margin: 0 !important;
	background: var(--wp--preset--color--tint-blue);
}
.fm26-products .wc-block-components-product-image img {
	mix-blend-mode: multiply;
}
.fm26-products .fm26-card__body {
	flex: 1;
	align-items: stretch;
	margin: 0;
	padding: 20px 20px 22px;
}
.fm26-products .fm26-card__body > * {
	margin: 0;
}
.fm26-card__cat {
	font: 400 12px/1.4 var(--wp--preset--font-family--mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.fm26-card__cat a {
	color: inherit;
	text-decoration: none;
}
.fm26-card__cat a:hover {
	color: var(--wp--preset--color--ink);
}
.fm26-products .fm26-card__title {
	font-size: 19px;
	text-align: left;
}
.fm26-products .fm26-card__buy {
	margin-top: auto !important;
	padding-top: 14px;
}
.fm26-products .fm26-card__buy > * {
	margin: 0 !important;
}
.fm26-products .fm26-card__buy .wp-block-woocommerce-product-price {
	text-align: left;
}
.fm26-products .wp-block-button.wc-block-components-product-button {
	align-items: flex-end;
}
.fm26-products .wc-block-components-product-button__button {
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--wp--custom--radius-pill);
	font-size: 14px;
}
.fm26-badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: fit-content;
	padding: 6px 10px;
	border-radius: var(--wp--custom--radius-pill);
	font: 600 12px/1 var(--wp--preset--font-family--body);
	white-space: nowrap;
}
.fm26-badge--freight {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}
.fm26-card__buy .fm26-badge {
	order: -1;
	flex-basis: auto;
}
.fm26-card__buy .fm26-badge + * {
	order: 0;
}
.fm26-empty {
	margin: 0;
	padding: 40px 0;
	color: var(--wp--preset--color--muted);
}

/* Nordic / Pro */
.fm26-line {
	padding: 44px 40px;
	border-radius: var(--wp--custom--radius-panel);
}
.fm26-line > * {
	margin: 0;
}
.fm26-line .fm26-eyebrow {
	color: #4b5866;
}
/* Group grid layout uses auto-fill (empty tracks on wide screens); the design stretches the panels. */
.fm26-lines.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.fm26-help.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.fm26-line--dark .fm26-eyebrow {
	color: var(--wp--preset--color--muted-on-dark);
}
.fm26-line__title {
	margin: 12px 0 14px !important;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.05;
}
.fm26-line__text {
	max-width: 440px;
	margin-bottom: 28px !important;
	color: #33414f;
}
.fm26-line--dark .fm26-line__text {
	color: var(--wp--preset--color--soft-on-dark);
}
.fm26-line__link a {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}
.fm26-line--dark .fm26-line__link a {
	color: var(--wp--preset--color--white);
}

/* Help */
.fm26-help-wrap {
	padding-bottom: 104px;
}
.fm26-help {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius-panel);
}
.fm26-help__cell {
	padding: 36px 32px;
	border-right: 1px solid var(--wp--preset--color--line);
}
.fm26-help__cell:last-child {
	border-right: 0;
}
.fm26-help__cell > * {
	margin: 0;
}
.fm26-help__cell h3 {
	margin-bottom: 8px;
	font-size: 20px;
}
.fm26-help__cell p:not(.fm26-arrow) {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}
.fm26-help__cell p:not(.fm26-arrow) a {
	color: inherit;
}

/* ---------- Footer ---------- */
.fm26-footer p {
	margin: 0;
}
.fm26-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}
.fm26-footer a {
	color: inherit;
	text-decoration: none;
}
.fm26-footer a:hover {
	color: var(--wp--preset--color--white);
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1099px) {
	.fm26-header__row .fm26-search {
		order: 10;
		flex-basis: 100%;
	}
	.fm26-header__actions {
		margin-left: auto !important;
	}
}
@media (max-width: 781px) {
	.fm26-utility__note {
		display: none;
	}
	.fm26-utility .alignwide {
		justify-content: flex-end !important;
	}
	.fm26-hero__panel,
	.fm26-finder {
		padding: 32px 24px;
	}
	.fm26-line {
		padding: 32px 24px;
	}
	.fm26-help__cell {
		border-right: 0;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}
	.fm26-help__cell:last-child {
		border-bottom: 0;
	}
	.fm26-help-wrap {
		padding-bottom: 64px;
	}
}
