/* =========================================================
   LIVO HEADER UNIFICATION — 1.3.25

   Šis failas kraunamas po design-maturity.css ir sutvarko vieną
   dalyką: headerio išdėstymas turi būti vienodas visuose puslapiuose.

   Svarbu:
   - čia netvarkomas cart turinys;
   - čia neliečiamos krepšelio lentelės, suvestinės, kupono ar shipping formos;
   - tik headerio grid, FiboSearch plotis, kontaktai ir veiksmai.
   ========================================================= */

@media (min-width: 1024px) {
	/* ---------------------------------------------------------
	   Desktop header turi būti vienodas: home, shop, product, cart,
	   checkout, account ir paprastuose puslapiuose.
	   --------------------------------------------------------- */

	.livo-site-header .livo-header-desktop {
		display: block !important;
	}

	.livo-site-header .livo-header-mobile {
		display: none !important;
	}

	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-container.livo-header-commerce__inner {
		width: min(calc(100% - 40px), var(--livo-container)) !important;
		max-width: var(--livo-container) !important;
		min-height: 68px !important;

		display: grid !important;
		grid-template-columns: minmax(230px, 300px) minmax(420px, 1fr) max-content max-content !important;
		align-items: center !important;
		gap: 24px !important;

		margin-right: auto !important;
		margin-left: auto !important;
	}

	/* Kategorijų mygtukas. */
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-categories {
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		justify-self: stretch !important;
	}

	/* FiboSearch turi užimti visą jam skirtą grid stulpelį. */
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-search {
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		justify-self: stretch !important;
		align-self: center !important;
	}

	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-search form,
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-search .dgwt-wcas-search-form,
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-search .dgwt-wcas-search-wrapp,
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-search .dgwt-wcas-sf-wrapp,
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-search .dgwt-wcas-search-input {
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		box-sizing: border-box !important;
	}

	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-search .dgwt-wcas-search-input {
		height: 48px !important;
		min-height: 48px !important;
		line-height: 48px !important;
	}

	/* Kontaktai ir pirkėjo ikonėlės negali lipti viena ant kitos. */
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-contacts {
		min-width: max-content !important;
		max-width: max-content !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		gap: 20px !important;
		white-space: nowrap !important;
		justify-self: end !important;
	}

	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-contact,
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-contact__content,
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-contact__content strong,
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-contact__content small {
		white-space: nowrap !important;
	}

	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-actions {
		min-width: max-content !important;
		max-width: max-content !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		gap: 8px !important;
		white-space: nowrap !important;
		justify-self: end !important;
	}
}

@media (min-width: 1024px) and (max-width: 1500px) {
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-container.livo-header-commerce__inner {
		grid-template-columns: minmax(220px, 280px) minmax(360px, 1fr) max-content max-content !important;
		gap: 18px !important;
	}

	/* Šiame pločio intervale email slepiamas globaliai, ne tik cart puslapyje. */
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-contact--email {
		display: none !important;
	}
}

@media (min-width: 1024px) and (max-width: 1220px) {
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-container.livo-header-commerce__inner {
		grid-template-columns: minmax(210px, 260px) minmax(300px, 1fr) max-content !important;
		gap: 16px !important;
	}

	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-header-contacts {
		display: none !important;
	}
}

@media (min-width: 1024px) and (max-width: 1080px) {
	.livo-site-header
		.livo-header-desktop
		.livo-header-commerce
		.livo-container.livo-header-commerce__inner {
		grid-template-columns: minmax(190px, 240px) minmax(260px, 1fr) max-content !important;
		gap: 14px !important;
	}
}

/* =========================================================
   Mobile header lieka valdomas header-responsive.css.
   Šis failas mobile struktūros nekeičia.
   ========================================================= */
