/**
 * Layouts of the najlepsiemobily homepage for the personalization place "home" (inc/home-variants.php), on top of nm-home.css:
 * the wrapper while a layout loads (skeleton), the "find" search block, the product rows and the proof tiles.
 * Blues come from the skin primitives (--primary-*), like the rest of the homepage.
 */

/* ---------------------------------------------------------------- Wrapper and skeleton */
/* While the plugin fetches another layout the blocks stay in place (no layout shift) but give way to a shimmer;
   the part above the wrapper (campaign, hero, benefits, banner) is never touched. */
.nmh-var.is-pers-wait {
	position: relative;
	overflow: hidden;
	background: linear-gradient(100deg, var(--primary-ultra-light) 30%, #fff 50%, var(--primary-ultra-light) 70%) 0 0 / 200% 100%;
	animation: nmv-shimmer 1.2s linear infinite;
}
.nmh-var.is-pers-wait > * {
	visibility: hidden;
}
@keyframes nmv-shimmer {
	to { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.nmh-var.is-pers-wait { animation: none; }
}

/* ---------------------------------------------------------------- Find: search + the top searches */
.nmh-band--find,
.nmh-band--new,
.nmh-band--acc {
	padding: 36px 0 12px;
	background: #fff;
}
.nmv-find h2 {
	margin: 0 0 12px;
	font-size: var(--nd-fs-sec-h);
	font-weight: var(--nd-fw-regular);
	line-height: var(--nd-lh-head);
	color: var(--nd-c-head);
}
.nmv-find h2 b {
	font-weight: var(--nd-fw-bold);
	color: var(--primary-semi-dark);
}
.nmv-find__form {
	display: flex;
	gap: 8px;
	max-width: 720px;
}
.nmv-find__form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid var(--primary-light);
	background: #fff;
	font: inherit;
	font-size: var(--nd-fs-16);
	color: var(--nd-c-ink);
}
.nmv-find__form input[type="search"]:focus {
	border-color: var(--primary);
	outline: 0;
	box-shadow: 0 0 0 3px var(--primary-ultra-light);
}
.nmv-find__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: var(--nd-fs-14);
	color: var(--nd-c-muted);
}
.nmh .nmv-find__chips .nmh-chip {
	text-decoration: none;
}

/* ---------------------------------------------------------------- Product rows (look of the top 10, without the rank) */
.nmh-rank--row .nmh-rank__list {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}
.nmh-rank--row .nmh-rank__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------------------------------------------------------------- Proof of trust (B) */
.nmh-band--proof {
	margin-top: 32px;
	background: linear-gradient(160deg, var(--primary-ultra-light) 0%, var(--primary-light) 100%);
}
.nmv-proof__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}
.nmv-proof__tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border-radius: calc(var(--nd-radius) * 1.6);
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 65, 87, .08);
}
.nmv-proof__tile b {
	font-size: var(--nd-fs-h1);
	font-weight: var(--nd-fw-bold);
	color: var(--primary-semi-dark);
}
.nmv-proof__tile small {
	color: var(--nd-c-muted);
	font-size: var(--nd-fs-14);
}
.nmv-proof__pay {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.nmv-proof__pay li {
	padding: 6px 14px;
	border-radius: var(--nd-radius-pill);
	background: #fff;
	color: var(--primary-semi-dark);
	font-size: var(--nd-fs-14);
	font-weight: var(--nd-fw-semibold);
}

@media (max-width: 1000px) {
	.nmh-rank--row .nmh-rank__list { grid-template-columns: repeat(5, 160px); overflow-x: auto; padding-bottom: 6px; }
}
@media (max-width: 640px) {
	.nmh-rank--row .nmh-rank__list { grid-template-columns: repeat(5, 140px); }
	.nmv-find__form { flex-direction: column; }
}
