/*
 * FARMERARUHAZ.HU – csak erre a webshopra jellemzo stilusok (szeles felirat-logo meretezese).
 * A kozos (newDesign / sunset / farmer) CSS-ek byte-azonosak maradnak, a farmer elteresei ide kerulnek.
 * Az index.phtml vegen, az sk-darkmode.css utan toltodik.
 */

/* a farmer logo szeles felirat (730x49), nem a sunset kupolas logoja */
:root {
	--logo-width: 240px;
}
.header-bottom-inner .logo {
	align-self: center;
}
.header-bottom-inner .logo img {
	height: auto;
}
@media screen and (min-width: 1024px) and (max-width: 1279px) {
	:root {
		--logo-width: 190px;
	}
}

/* desktop: alacsonyabb menusav (a kozos 101px-es menupont + 2x12px padding helyett ~60px) */
@media screen and (min-width: 1024px) {
	.header-bottom-inner {
		min-height: 60px;
		padding-top: 0;
		padding-bottom: 0;
	}
	.header-outer.menu-inline .main-menu {
		--m-item-height: 60px;
	}
}

/* tablet / nagyobb mobil: egy soros fejlec, a logo a menugomb es az ikonok kozotti helyet tolti ki */
@media screen and (max-width: 1023px) {
	.header-bottom-inner {
		grid-template-columns: 48px minmax(0, 1fr) auto;
	}
	.header-bottom-inner .logo {
		min-width: 0;
		width: 100%;
	}
	.header-bottom-inner .logo a {
		width: 100%;
	}
	.header-bottom-inner .logo img {
		width: 220px;
		max-width: 100%;
		max-height: none;
	}
}

/* kis mobil: a felirat nem fer el az ikonok mellett -> kulon, kozepre zart logo sor felette
   (gorgeteskor a logo sor elgorog, csak a menusav marad sticky – a --logo-row-h mechanizmus) */
@media screen and (max-width: 479px) {
	.header-outer {
		--logo-row-h: 44px;
	}
	.header-bottom-inner {
		grid-template-columns: 48px minmax(0, 1fr) auto;
		grid-template-rows: var(--logo-row-h) var(--mobile-bar-h);
	}
	.header-bottom-inner .logo {
		grid-column: 1 / -1;
		grid-row: 1;
		justify-self: stretch;
		justify-content: center;
		height: var(--logo-row-h);
		padding: 0 16px;
		border-bottom: 1px solid var(--border-color);
	}
	.header-bottom-inner .logo a {
		justify-content: center;
	}
	.header-bottom-inner .logo img {
		width: 230px;
	}
	.header-bottom-inner .m-mob-btn {
		grid-row: 2;
	}
	.header-bottom-inner .actions-cnt {
		grid-column: 3;
		grid-row: 2;
	}
}

/* sotet mod: a farmer logo atlatszo hatteru felirat -> a kozos logo-dark.png csere helyett
   egyszeruen vilagosra szinezzuk (Safari / Firefox / Chrome alatt is mukodik) */
body.dark-mode .header-bottom-inner .logo a {
	background: none;
}
body.dark-mode .header-bottom-inner .logo img {
	opacity: 1;
	filter: brightness(0) invert(0.92);
}

/* kezdolap marka-carousel cime: mondat (nem capitalize), kicsit nagyobb cim es leiras */
.startpage-slider .section-title {
	text-transform: none;
	font-size: 56px;
	line-height: 1.1;
}
.startpage-slider .section-description {
	font-size: 20px;
	line-height: 1.5;
}
@media screen and (max-width: 1023px) {
	.startpage-slider .section-title { font-size: 42px; }
	.startpage-slider .section-description { font-size: 18px; }
}
@media screen and (max-width: 767px) {
	.startpage-slider .section-title { font-size: 34px; }
	.startpage-slider .section-description { font-size: 17px; }
}
@media screen and (max-width: 479px) {
	.startpage-slider .section-title { font-size: 28px; }
	.startpage-slider .section-description { font-size: 16px; }
}

/* ===== MENU-KERESO (2026-10, heavytools minta): "Mit keresel?" mezo a fomenuben a Blog utan =====
   Markup: default/menu.phtml (.m-search), header.phtml (.header-outer.has-menu-search), kapcsolo: config.php 'menu_search'.
   Visszaallitas: 'menu_search' => false (ez a blokk akkor hatastalan, torolheto is).
   Csak desktopon latszik, mobilon a fejlec nagyito gombja marad.
   Meretezes: a menu (6 pont + mezo) 1366px-tol egy sorban elfer a logo es az ikonok kozott
   (sk-menu-layout.js szamolja: --logo-width + --actions-width + 48px) – ezert kisebb a terkoz es a mezo 1600px alatt. */
.main-menu > .m-item.m-search {
	justify-items: stretch;
	margin-left: 8px;
}
.m-search-form {
	position: relative;
	display: block;
	width: 220px;
	margin: 0;
}
.m-search-form .m-search-input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 0 12px 0 38px;
	border: 1px solid rgb(var(--form-accent-color));
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	color: inherit;
	font: inherit;
	font-size: 14px;
	line-height: 34px;
	text-transform: none;
	letter-spacing: normal;
	transition: border-color var(--trans-def);
}
.m-search-form .m-search-input::-webkit-search-decoration,
.m-search-form .m-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
.m-search-form .m-search-input::placeholder {
	color: inherit;
	opacity: .6;
}
/* raallaskor / gepeleskor a keret a szoveg szinet veszi fel */
.m-search-form:hover .m-search-input,
.m-search-form .m-search-input:focus {
	border-color: currentColor;
}
.m-search-form .m-search-btn {
	position: absolute;
	top: 0;
	left: 0;
	width: 38px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 18px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	transition: color var(--trans-def);
}
.m-search-form .m-search-btn i {
	pointer-events: none;
}
/* mint a fejlec nagyito gombja: raallaskor / fokuszban kiemelo szin */
.m-search-form .m-search-btn:hover,
.m-search-form .m-search-btn:focus,
.m-search-form:focus-within .m-search-btn,
.m-search-form:hover .m-search-btn {
	color: var(--color1);
}
@media screen and (min-width: 1024px) {
	/* desktopon a menu mezoje a kereses -> a fejlec kulon nagyito gombja rejtve, az ikonsav 3 ikonnyi (a menu helye no) */
	.header-outer.has-menu-search .action-btn.search-btn { display: none; }
	.header-outer.has-menu-search .main-menu { --actions-width: 140px; }
	/* a menu a logo es az ikonok KOZOTT van kozepre zarva (nem az oldal kozepere) – a szeles farmer logora
	   maskepp racsuszna a menu eleje, ha a menu szelesebb, mint a logo melletti/ikonok melletti hely */
	.header-outer.menu-inline .main-menu {
		justify-self: center;
		margin-left: calc(var(--logo-width) + 24px);
		margin-right: calc(var(--actions-width) + 24px);
	}
}
@media screen and (min-width: 1440px) and (max-width: 1599px) {
	.header-outer.has-menu-search .main-menu { --m-item-gap: 24px; }
	.m-search-form { width: 180px; }
}
@media screen and (min-width: 1366px) and (max-width: 1439px) {
	.header-outer.has-menu-search .main-menu { --m-item-gap: 24px; }
	.m-search-form { width: 160px; }
}
@media screen and (min-width: 1280px) and (max-width: 1365px) {
	/* 1280-1365: kisebb betu / terkoz (mint 1280 alatt az sk-responsive-ban), hogy a mezovel egyutt is egy sorban maradjon */
	.header-outer.has-menu-search .main-menu {
		--m-item-gap: 20px;
		font-size: 15px;
		letter-spacing: 0.02em;
	}
	.m-search-form { width: 120px; }
	.m-search-form .m-search-input { padding-left: 34px; font-size: 13px; }
	.m-search-form .m-search-btn { width: 34px; }
}
@media screen and (min-width: 1024px) and (max-width: 1279px) {
	.header-outer.has-menu-search .main-menu { --m-item-gap: 20px; }
	.m-search-form { width: 120px; }
	.m-search-form .m-search-input { padding-left: 34px; font-size: 13px; }
	.m-search-form .m-search-btn { width: 34px; }
}
@media screen and (max-width: 1023px) {
	.main-menu > .m-item.m-search { display: none; }
}
/* ===== MENU-KERESO VEGE ===== */
