/**
 * Mobile listing cards — premium surface, verified row, paired with listing-card-mobile.php.
 * Loads after listing-mobile.css: compact overrides for catalog + home grids (BD-style dense cards).
 *
 * @package NewTechPrice
 */

/* Grids: do not stretch all cards to the tallest row (was causing “empty” vertical gap). */
.ntp-mobile-listing__grid--products[data-ntp-listing-grid],
.ntp-latest-mobiles-grid[data-ntp-listing-grid],
.ntp-mobile-listing__grid[data-ntp-trending-mini-grid] {
	align-items: start;
}

.ntp-mobile-listing__grid .ntp-mobile-card,
.ntp-latest-mobiles-grid .ntp-mobile-card {
	height: auto;
}

.ntp-listing-card-premium__thumb-link {
	padding: 1.5rem 0.65rem 0.3rem;
}

.ntp-listing-card-premium__thumb-frame {
	min-height: 132px;
}

@media (min-width: 640px) {
	.ntp-listing-card-premium__thumb-frame {
		min-height: 144px;
	}
}

@media (min-width: 768px) {
	.ntp-listing-card-premium__thumb-frame {
		min-height: 152px;
	}
}

.ntp-listing-card-premium__cover-img {
	max-height: min(13rem, 50vw);
}

.ntp-listing-card-premium__body {
	padding: 0.45rem 0.65rem 0.65rem;
}

/* Drop forced min-height / fill-height from listing-mobile.css; card height follows content. */
.ntp-listing-card-premium {
	min-height: 0;
	height: auto;
	border-radius: 1rem;
	box-shadow:
		0 1px 2px rgb(10 25 49 / 0.04),
		0 8px 24px rgb(10 25 49 / 0.06);
	border-color: rgb(223 228 234 / 0.95) !important;
}

.ntp-listing-card-premium:hover {
	box-shadow:
		0 2px 4px rgb(10 25 49 / 0.05),
		0 14px 40px rgb(10 25 49 / 0.09);
}

[data-theme='dark'] .ntp-listing-card-premium {
	box-shadow:
		0 1px 2px rgb(0 0 0 / 0.25),
		0 10px 28px rgb(0 0 0 / 0.35);
	border-color: rgb(51 65 85 / 0.9) !important;
}

[data-theme='dark'] .ntp-listing-card-premium:hover {
	box-shadow:
		0 2px 6px rgb(0 0 0 / 0.35),
		0 16px 44px rgb(0 0 0 / 0.45);
}

.ntp-listing-card__verified svg {
	opacity: 0.45;
	color: var(--ntp-primary-color, #0a1931);
}

[data-theme='dark'] .ntp-listing-card__verified svg {
	opacity: 0.5;
	color: var(--ntp-accent-color, #38bdf8);
}

.ntp-price-electric {
	color: var(--ntp-accent-color, #00a8ff);
}
