/**
 * Homepage of najlepsiemobily.sk (site layer: front-page.php, inc/home.php, inc/home-mine.php),
 * on top of the shared hlavna-stranka.css (campaign carousel, "Hit týždňa", shop reviews).
 *
 * .nmh > .nmh-band(--campaign|hero|top|hit|deals|mine|reviews) > .wa-container > block
 * Blocks: .nmh-hero__title/__lede + .nmh-brands + .nmh-pills, .nmh-rank, .nmh-hit,
 * .nmh-deals (.nmh-chip filter, .nmh-tile grid), .nmh-mine (.nmh-pick items, .nmh-sum), .nmh-modal.
 * Blues come from the skin primitives (assets/css/skins/najlepsiemobily.css, --primary-*).
 */

/* ---------------------------------------------------------------- Base */
.nmh {
	--nd-c-brand: var(--primary);
	--nd-c-brand-tint: var(--primary-ultra-light);

	padding: 0 0 96px;
	font-family: var(--nd-font);
	color: var(--nd-c-ink);
}

.nmh a {
	color: inherit;
	text-decoration: none;
}

/* layout.css turns every "section > div" into a flex column; the homepage blocks lay out in rows. */
.nmh section > div {
	flex-direction: row;
	align-items: stretch;
}

.nmh [hidden] {
	display: none !important;
}

.nmh h2 b {
	font-weight: var(--nd-fw-bold);
}

/* Section heading: title left, link right. */
.nmh-head {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.nmh-head h2 {
	margin: 0;
	font-size: var(--nd-fs-sec-h);
	font-weight: var(--nd-fw-regular);
	line-height: var(--nd-lh-head);
	color: var(--nd-c-head);
}

.nmh-more {
	font-size: var(--nd-fs-14);
	color: var(--nd-c-brand) !important;
	white-space: nowrap;
}

.nmh-more:hover {
	text-decoration: underline !important;
}

.nmh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--nd-radius-btn, var(--nd-radius));
	background: var(--nd-c-cta);
	color: var(--nd-c-on-cta) !important;
	font: inherit;
	font-size: var(--nd-fs-15);
	font-weight: var(--nd-fw-semibold);
	cursor: pointer;
	white-space: nowrap;
}

.nmh-btn:hover {
	background: var(--nd-c-cta-hover);
}

/* Shop reviews (wooptima-reviews) keep layout.css's column, not the row above. */
.nmh .nmh-reviews section > div {
	flex-direction: column;
	align-items: initial;
}

/* "Hit týždňa" and reviews bring their own .wa-container; the band's one already pads. */
.nmh-hit .wa-container,
.nmh-reviews .wa-container {
	padding: 0;
}

@media (max-width: 600px) {
	.nmh-head h2 { font-size: var(--nd-fs-sec-h-sm); }
}

.nmh-band {
	position: relative;
	padding: 40px 0;
}
.nmh-band > .wa-container {
	display: block;
}
/* ---------------------------------------------------------------- Bands */

/* Hero: dark blue gradient. */
.nmh-band--hero {
	padding: 48px 0 44px;
	color: #fff;
	background:
		radial-gradient(1100px 420px at 85% -10%, rgba(103, 191, 228, .45), transparent 60%),
		radial-gradient(700px 360px at 5% 110%, rgba(38, 163, 217, .35), transparent 60%),
		linear-gradient(135deg, var(--primary-ultra-dark) 0%, var(--primary-dark) 38%, var(--primary-semi-dark) 72%, var(--primary) 100%);
	overflow: hidden;
}
/* "Hit týždňa": mid blue gradient. */
.nmh-band--hit {
	margin-top: 32px;
	background:
		radial-gradient(600px 300px at 90% 50%, rgba(255, 255, 255, .18), transparent 70%),
		linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-medium) 100%);
}
.nmh-band--hit .nmh-hit {
	margin: 0;
}
/* No running deal (empty [data-wdeal-home]): no band; weekly-deal.js may fill it later. */
.nmh-band--hit:not(:has(.wdeal-home__box)) {
	display: none;
}
.nmh-band--hit .wdeal-home {
	padding: 0;
}
.nmh-band--hit .wdeal-home__box {
	box-shadow: 0 16px 40px rgba(8, 33, 43, .35);
}
/* "Aký telefón máte?": light gradient. */
.nmh-band--mine {
	margin-top: 32px;
	background: linear-gradient(160deg, var(--primary-ultra-light) 0%, var(--primary-light) 100%);
}
/* Shop reviews: tint fading to white above the footer. */
.nmh-band--reviews {
	margin-top: 40px;
	background: linear-gradient(180deg, var(--primary-ultra-light) 0%, #fff 100%);
}
.nmh-band--reviews .nmh-reviews {
	margin: 0;
}
.nmh-band--reviews .shop-reviews {
	background: transparent;
}
/* Links and heading accents in blue. */
.nmh .nmh-head h2 b,
.nmh .nmh-more {
	color: var(--primary-semi-dark);
}
@media (max-width: 720px) {
	.nmh-band { padding: 28px 0; }
	.nmh-band--hero { padding: 28px 0; }
}
/* ---------------------------------------------------------------- Hero title, savings filter */
.nmh-hero__title {
	margin: 0 0 8px;
	color: #fff;
	font-size: 40px;
	font-weight: var(--nd-fw-regular);
	line-height: var(--nd-lh-head);
}
.nmh-hero__title b {
	color: var(--primary-light);
}
.nmh-hero__lede {
	margin: 0;
	color: rgba(255, 255, 255, .8);
	font-size: var(--nd-fs-16);
}
.nmh-deals__filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.nmh-chip {
	padding: 7px 14px;
	border: 1px solid var(--nd-c-line);
	border-radius: var(--nd-radius-pill);
	background: #fff;
	color: var(--nd-c-ink);
	font: inherit;
	font-size: var(--nd-fs-14);
	font-weight: var(--nd-fw-medium);
	cursor: pointer;
}
.nmh-chip small {
	margin-left: 4px;
	color: var(--nd-c-muted);
}
.nmh-chip:hover {
	border-color: var(--primary);
}
.nmh-chip.is-on {
	border-color: transparent;
	background: linear-gradient(135deg, var(--primary-dark), var(--primary));
	color: #fff;
}
.nmh-chip.is-on small {
	color: rgba(255, 255, 255, .75);
}
.nmh-deals__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nmh-deals__more {
	display: block;
	margin: 20px auto 0;
	padding: 10px 28px;
	border: 2px solid var(--primary);
	border-radius: var(--nd-radius-pill);
	background: #fff;
	color: var(--primary-semi-dark);
	font: inherit;
	font-weight: var(--nd-fw-semibold);
	cursor: pointer;
}
.nmh-deals__more:hover {
	background: var(--primary-ultra-light);
}
.nmh-deals__more[hidden],
.nmh-deals__grid > li[hidden] {
	display: none;
}
/* ---------------------------------------------------------------- Aký telefón máte? */
/* layout.css turns every "section > div" into flex: the picker and the offer are blocks. */
.nmh .nmh-mine {
	background: transparent;
}
.nmh .nmh-mine > .nmh-mine__picker,
.nmh .nmh-mine > .nmh-mine__out {
	display: block;
}
.nmh .nmh-deals > .nmh-deals__filter {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
.nmh-mine__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}
.nmh-mine__head h2 {
	margin: 0;
	font-size: var(--nd-fs-h1);
	font-weight: var(--nd-fw-regular);
}
.nmh-mine__head p {
	margin: 4px 0 0;
	color: var(--nd-c-muted);
}
.nmh-mine__step {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary-dark), var(--primary));
	color: #fff;
	font-weight: var(--nd-fw-bold);
}
.nmh-mine__picker {
	padding: 16px;
	border-radius: calc(var(--nd-radius) * 1.6);
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 65, 87, .08);
}
.nmh-mine__brands {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--nd-c-line);
}
.nmh-mine__brand {
	padding: 8px 18px;
	border: 0;
	border-radius: var(--nd-radius-pill);
	background: transparent;
	color: var(--nd-c-muted);
	font: inherit;
	font-weight: var(--nd-fw-semibold);
	cursor: pointer;
}
.nmh-mine__brand.is-on {
	background: var(--primary-ultra-light);
	color: var(--primary-semi-dark);
}
.nmh-mine__models {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 12px;
}
.nmh-mine__model {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 14px 4px 4px;
	border: 1px solid var(--nd-c-line);
	border-radius: var(--nd-radius-pill);
	background: #fff;
	color: var(--nd-c-ink);
	font: inherit;
	font-size: var(--nd-fs-14);
	cursor: pointer;
}
.nmh-mine__model img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--primary-ultra-light);
	object-fit: contain;
}
.nmh-mine__model:hover {
	border-color: var(--primary);
}
.nmh-mine__model.is-on {
	border-color: var(--primary);
	box-shadow: inset 0 0 0 1px var(--primary);
	color: var(--primary-semi-dark);
	font-weight: var(--nd-fw-semibold);
}
.nmh-mine__phone {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 24px 0 16px;
}
.nmh-mine__phone img {
	width: 88px;
	height: 88px;
	object-fit: contain;
	filter: drop-shadow(0 8px 12px rgba(15, 65, 87, .2));
}
.nmh-mine__phone > div {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 12px;
	align-items: center;
}
.nmh-mine__phone b {
	font-size: var(--nd-fs-20);
}
.nmh-mine__phone small {
	grid-column: 2;
	color: var(--nd-c-muted);
}
.nmh-mine__phone small a {
	color: var(--primary-semi-dark);
}
.nmh-mine__kinds {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}
.nmh-mine__kind h3 {
	margin: 0 0 8px;
	font-size: var(--nd-fs-15);
	font-weight: var(--nd-fw-semibold);
}
/* All compatible items of a kind in one horizontally scrolling row. */
.nmh .nmh-mine__items {
	display: grid;
	grid-auto-columns: 168px;
	grid-auto-flow: column;
	gap: 0;
	margin-bottom: -10px;
	padding: 0 0 10px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-color: var(--primary-semi-light) transparent;
	scrollbar-width: thin;
}
.nmh-mine__items > .nmh-pick {
	scroll-snap-align: start;
}
/* Grid look: no gaps or radii, shared lines; a picked item has a blue inner frame. */
.nmh .nmh-mine__items {
	border-left: 1px solid var(--nd-c-line);
}
.nmh .nmh-mine__items > .nmh-pick {
	border: 0;
	border-radius: 0;
	box-shadow: inset -1px 0 0 var(--nd-c-line), inset 0 1px 0 var(--nd-c-line), inset 0 -1px 0 var(--nd-c-line);
}
.nmh .nmh-mine__items > .nmh-pick:hover {
	box-shadow: inset -1px 0 0 var(--nd-c-line), inset 0 1px 0 var(--nd-c-line), inset 0 -1px 0 var(--nd-c-line), inset 0 0 0 1px var(--primary-semi-light);
}
/* Picked item: frame inside on the right/top/bottom, outside over the neighbour's line on the left, so two picked neighbours share one line. */
.nmh .nmh-mine__items > .nmh-pick.is-on {
	z-index: 1;
	box-shadow: inset -2px 0 0 var(--primary), inset 0 2px 0 var(--primary), inset 0 -2px 0 var(--primary), -2px 0 0 0 var(--primary);
}
.nmh .nmh-mine__items > .nmh-pick.is-on:first-child {
	box-shadow: inset 0 0 0 2px var(--primary);
}
.nmh-mine__kind h3 small {
	margin-left: 4px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #fff;
	color: var(--primary-semi-dark);
	font-size: 12px;
	font-weight: 700;
}
.nmh-pick {
	position: relative;
	display: grid;
	gap: 4px;
	align-content: start;
	padding: 10px 8px;
	border: 1px solid var(--nd-c-line);
	border-radius: var(--nd-radius);
	background: #fff;
	color: var(--nd-c-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.nmh-pick:hover {
	border-color: var(--primary-semi-light);
}
.nmh-pick.is-on {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px var(--primary);
}
.nmh-pick__check {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 20px;
	height: 20px;
	border: 2px solid var(--nd-c-line);
	border-radius: 50%;
	background: #fff;
}
.nmh-pick.is-on .nmh-pick__check {
	border-color: var(--primary);
	background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.nmh-pick__img {
	display: grid;
	place-items: center;
	height: 88px;
}
.nmh-pick__img img {
	max-height: 88px;
	max-width: 100%;
	object-fit: contain;
}
.nmh-pick__name {
	display: -webkit-box;
	overflow: hidden;
	font-size: var(--nd-fs-12);
	line-height: 1.3;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.nmh-pick__price {
	font-size: var(--nd-fs-14);
}
.nmh-pick {
	cursor: pointer;
}
.nmh .nmh-pick__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}
.nmh .nmh-pick__detail {
	padding: 4px 10px;
	border: 1px solid var(--primary-light);
	border-radius: 999px;
	background: #fff;
	color: var(--primary-semi-dark);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.nmh .nmh-pick__detail:hover,
.nmh .nmh-pick__detail:focus-visible {
	border-color: var(--primary);
	background: var(--primary);
	color: #fff;
}
/* Model search. */
.nmh .nmh-mine__search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 0 14px;
	border: 2px solid var(--primary-light);
	border-radius: 12px;
	background: #fff;
	color: var(--primary-semi-dark);
}
.nmh .nmh-mine__search:focus-within {
	border-color: var(--primary);
}
.nmh .nmh-mine__search input {
	flex: 1;
	min-width: 0;
	height: 48px;
	border: 0;
	background: transparent;
	color: var(--nd-c-ink);
	font: inherit;
	font-size: 16px;
	outline: 0;
}
.nmh .nmh-mine__sugg {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	z-index: 20;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--primary-light);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(15, 65, 87, .18);
	list-style: none;
}
.nmh .nmh-mine__sugg[hidden] {
	display: none;
}
.nmh .nmh-mine__sugg li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--nd-c-ink);
	cursor: pointer;
}
.nmh .nmh-mine__sugg li:hover,
.nmh .nmh-mine__sugg li.is-active {
	background: var(--primary-ultra-light);
}
.nmh .nmh-mine__sugg small {
	color: var(--nd-c-muted, #6b7280);
}
.nmh .nmh-mine__sugg .is-empty {
	color: var(--nd-c-muted, #6b7280);
	cursor: default;
}
.nmh-mine__note {
	padding: 24px 0;
	color: var(--nd-c-muted, #6b7280);
}
/* ---------------------------------------------------------------- Product preview popup */
.nmh-modal-open {
	overflow: hidden;
}
.nmh-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(8, 33, 43, .55);
	font-family: var(--nd-font);
}
.nmh-modal__box {
	position: relative;
	width: min(920px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(8, 33, 43, .35);
}
.nmh-modal__x {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--primary-ultra-light);
	color: var(--primary-dark);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.nmh-modal__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 28px;
	padding: 28px;
}
.nmh-modal__load {
	grid-column: 1 / -1;
	margin: 40px 0;
	text-align: center;
	color: #6b7280;
}
.nmh-modal__main img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}
.nmh-modal__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.nmh-modal__thumbs button {
	padding: 2px;
	border: 2px solid transparent;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}
.nmh-modal__thumbs button.is-on {
	border-color: var(--primary);
}
.nmh-modal__thumbs img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
}
.nmh-modal__info h3 {
	margin: 0 40px 10px 0;
	font-size: 22px;
	line-height: 1.25;
}
.nmh-modal__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 14px;
}
.nmh-modal__price b {
	font-size: 26px;
}
.nmh-modal__price s {
	color: #6b7280;
}
.nmh-modal__stock {
	color: #11743a;
	font-weight: 700;
}
.nmh-modal__text {
	color: #374151;
	font-size: 15px;
	line-height: 1.55;
}
.nmh-modal__text p {
	margin: 0 0 10px;
}
.nmh-modal__attrs {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	margin: 14px 0;
	font-size: 14px;
}
.nmh-modal__attrs dt {
	color: #6b7280;
}
.nmh-modal__attrs dd {
	margin: 0;
	font-weight: 600;
}
.nmh-modal__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 18px;
}
.nmh-modal__add {
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 7px;
	background: var(--nd-c-cta);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.nmh-modal__add:hover {
	background: var(--nd-c-cta-hover);
}
.nmh-modal__add.is-on {
	background: #fff;
	box-shadow: inset 0 0 0 2px var(--primary);
	color: var(--primary-semi-dark);
}
.nmh-modal__more {
	color: var(--primary-semi-dark);
	font-weight: 600;
}
@media (max-width: 720px) {
	.nmh-modal { place-items: end center; padding: 0; }
	.nmh-modal__box { max-height: 92vh; border-radius: 18px 18px 0 0; }
	.nmh-modal__body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 16px; }
	.nmh-modal__main img { max-height: 260px; }
	.nmh-modal__add { flex: 1; }
}
.nmh-sum {
	position: sticky;
	bottom: 12px;
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: calc(var(--nd-radius) * 1.6);
	background: linear-gradient(120deg, var(--primary-ultra-dark) 0%, var(--primary-dark) 50%, var(--primary-semi-dark) 100%);
	color: #fff;
	box-shadow: 0 14px 32px rgba(8, 33, 43, .3);
	z-index: 2;
}
.nmh-sum__thumbs {
	display: flex;
	align-items: center;
}
.nmh-sum__thumbs img {
	width: 44px;
	height: 44px;
	margin-right: -10px;
	border: 2px solid var(--primary-dark);
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
}
.nmh-sum__count {
	margin-left: 18px;
	font-weight: var(--nd-fw-semibold);
}
.nmh-sum__calc {
	display: grid;
	flex: 1;
	gap: 2px;
}
.nmh-sum__calc b {
	font-size: var(--nd-fs-22);
}
.nmh-sum__calc s {
	color: rgba(255, 255, 255, .6);
}
.nmh-sum__disc {
	color: var(--nd-c-cta);
	font-weight: var(--nd-fw-semibold);
}
.nmh-sum__calc small {
	color: rgba(255, 255, 255, .75);
}
/* Items the cart refused (sold out meanwhile). */
.nmh-sum__calc .nmh-sum__err {
	color: #ffd0d0;
	font-weight: var(--nd-fw-semibold);
}
.nmh-sum__go[disabled] {
	opacity: .5;
	cursor: default;
}
.nmh .nmh-sum__go.is-done {
	text-decoration: none;
}
@media (max-width: 1000px) {
	.nmh-deals__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.nmh-hero__title { font-size: var(--nd-fs-24); }
	.nmh-deals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.nmh-mine__brands,
	.nmh-mine__models { flex-wrap: nowrap; overflow-x: auto; }
	.nmh-mine__brand,
	.nmh-mine__model { flex: none; }
	.nmh-mine__brand { padding: 8px 14px; }
	.nmh-sum { flex-wrap: wrap; gap: 10px; }
	.nmh-sum__go { width: 100%; text-align: center; }
}
/* ---------------------------------------------------------------- Campaign carousel right under the menu, full width */
.nmh-band--campaign {
	padding: 0;
	background: #fff;
}
.nmh {
	padding-top: 0;
}
/* ---------------------------------------------------------------- Hero: brands as white panels */
.nmh .nmh-brands {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 22px;
}
.nmh .nmh-brands__panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	min-height: 250px;
	padding: 22px 0 22px 24px;
	overflow: hidden;
	border-radius: var(--nd-r-lg, 16px);
	background: #fff;
}
.nmh .nmh-brands__panel > div {
	display: block;
}
.nmh .nmh-brands__title {
	color: var(--nd-c-head);
	font-size: 28px;
	font-weight: var(--nd-fw-bold, 700);
	text-decoration: none;
}
.nmh .nmh-brands__title span {
	color: var(--primary);
}
.nmh-brands__text small {
	display: block;
	margin: 2px 0 14px;
	color: var(--nd-c-muted);
}
.nmh .nmh-brands__models {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nmh .nmh-brands__models a {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 12px;
	border-radius: 8px;
	color: var(--nd-c-ink);
	text-decoration: none;
	transition: background .15s;
}
.nmh .nmh-brands__models a:hover {
	background: var(--primary-ultra-light);
}
.nmh-brands__models b {
	flex: none;
	color: var(--primary);
	font-weight: var(--nd-fw-semibold, 600);
}
.nmh .nmh-brands__fan {
	position: relative;
	display: block;
	height: 220px;
}
.nmh-brands__ph {
	position: absolute;
	bottom: 0;
	width: 85%;
	height: 100%;
	box-sizing: border-box;
	padding: 3px;
	border-radius: 4px;
	background: #fff;
	object-fit: contain;
	object-position: 50% 100%;
	left: 50%;
	transform: translateX(-50%);
	transition: transform .25s;
}
.nmh-brands__panel:hover .nmh-brands__ph { transform: translate(-50%, -6px); }
/* Other brands as pills. */
.nmh .nmh-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}
.nmh-pills__label {
	margin-right: 4px;
	color: rgba(255, 255, 255, .7);
	font-size: var(--nd-fs-14);
}
.nmh .nmh-pill {
	padding: 7px 16px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: var(--nd-fs-14);
	font-weight: var(--nd-fw-semibold, 600);
	text-decoration: none;
	transition: background .15s, color .15s;
}
.nmh .nmh-pill:hover {
	background: #fff;
	color: var(--primary-dark);
}
.nmh .nmh-pill--alt {
	border-color: transparent;
	background: var(--primary-light);
	color: var(--primary-dark);
}
/* ---------------------------------------------------------------- Top 10: equal cards */
.nmh-band--top {
	padding: 36px 0 12px;
	background: #fff;
}
.nmh .nmh-rank__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--primary-light);
	border-left: 1px solid var(--primary-light);
	margin: 0;
	padding: 0;
	list-style: none;
}
.nmh .nmh-rank__list a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	height: 100%;
	padding: 14px 12px 12px;
	box-shadow: inset -1px -1px 0 var(--primary-light);
	color: var(--nd-c-text, #1c1c1c);
	text-align: center;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.nmh .nmh-rank__list a:hover {
	position: relative;
	z-index: 1;
	background: #fff;
	box-shadow: inset -1px -1px 0 var(--primary-light), 0 8px 24px rgba(15, 65, 87, .14);
}
.nmh-rank__n {
	position: absolute;
	top: 10px;
	left: 10px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--primary-ultra-light);
	color: var(--primary-semi-dark);
	font-size: 14px;
	font-weight: 800;
}
.nmh-rank__list li:nth-child(-n+3) .nmh-rank__n {
	background: var(--primary);
	color: #fff;
}
.nmh-rank__list img {
	width: 100%;
	height: 120px;
	margin-bottom: 6px;
	object-fit: contain;
}
.nmh-rank__name {
	font-weight: var(--nd-fw-semibold, 600);
	line-height: 1.25;
}
.nmh-rank__price {
	color: var(--nd-c-muted, #6b7280);
	font-size: 13px;
}
.nmh-rank__price b {
	color: var(--primary-semi-dark);
	font-size: 15px;
}
/* ---------------------------------------------------------------- Biggest savings across the window */
.nmh-band--deals {
	padding-right: clamp(16px, 2.5vw, 40px);
	padding-left: clamp(16px, 2.5vw, 40px);
}
/* At most 6 columns (a column is never narrower than 1/6 of the row) and the section stops growing
   at 6 tiles of 280px, so wide windows keep the 6 × 2 matrix (nm-home.js shows two full rows). */
.nmh-band--deals .nmh-deals {
	max-width: 1680px;
	margin-right: auto;
	margin-left: auto;
}
.nmh-band--deals .nmh-deals__grid {
	grid-template-columns: repeat(auto-fill, minmax(max(250px, 100% / 6), 1fr));
}
/* Grid lines: each tile draws its right and bottom line, the grid its top and left edge, so an incomplete row leaves no holes. */
.nmh-band--deals .nmh-deals__grid {
	gap: 0;
	border-top: 1px solid var(--primary-light);
	border-left: 1px solid var(--primary-light);
}
.nmh-band--deals .nmh-deals__grid > li {
	box-shadow: inset -1px -1px 0 var(--primary-light);
}
.nmh-band--deals .nmh-tile {
	background: transparent;
}
.nmh-deals__grid > li {
	min-width: 0;
}
@media (max-width: 1000px) {
	.nmh .nmh-brands { grid-template-columns: minmax(0, 1fr); }
	.nmh .nmh-rank__list { grid-template-columns: repeat(10, 160px); overflow-x: auto; padding-bottom: 6px; }
}
@media (max-width: 640px) {
	.nmh .nmh-brands__panel { grid-template-columns: minmax(0, 1fr) 120px; min-height: 0; padding: 16px 0 16px 16px; }
	.nmh .nmh-brands__fan { height: 150px; }
	.nmh-brands__ph { width: 90%; }
	.nmh .nmh-brands__title { font-size: 22px; }
	.nmh .nmh-brands__models a { padding: 6px 8px; font-size: var(--nd-fs-14); }
	.nmh .nmh-pills { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-bottom: 4px; }
	.nmh .nmh-pill { flex: none; }
	.nmh-pills__label { display: none; }
	.nmh .nmh-rank__list { grid-template-columns: repeat(10, 140px); }
	.nmh-band--deals .nmh-deals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
	.nmh-band--deals { padding-right: 0; padding-left: 0; }
	.nmh-band--deals .nmh-deals__grid { border-left: 0; }
	.nmh-band--deals .nmh-deals > .nmh-head, .nmh-band--deals .nmh-deals__filter { padding: 0 16px; }
}
/* ---------------------------------------------------------------- Pills: all buttons and inputs fully rounded (popup thumbnails keep 8px) */
.nmh button,
.nmh .button,
.nmh .nmh-btn,
.nmh input,
.nmh select,
.nmh .nmh-mine__search,
.nmh .nmh-chip,
.nmh .nmh-deals__more,
.nmh .nmh-mine__brand,
.nmh .nmh-mine__model,
.nmh .nmh-tile__cart,
.nmh .nmh-sum__go,
.nmh-modal__add {
	border-radius: 999px;
}
/* Accessory items are <div role="checkbox"> but stay square (grid look). */
.nmh .nmh-pick {
	border-radius: 0;
}
