/**
 * Flipkart-style products highlight — medium cards, clear images, not full-bleed.
 */

.nwui-products-highlight {
	--nwui-ph-gap: 10px;
	--nwui-ph-visible: var(--nwui-ph-mobile, 1.55);
	--nwui-ph-img-h: 132px;
	width: 100%;
	max-width: 100%;
	margin: 0 auto 1.1rem;
	padding: 14px 14px 14px;
	border-radius: var(--nwui-ph-radius, 16px);
	background: var(--nwui-ph-bg, linear-gradient(165deg, #6B2FD6 0%, #8B5CF6 55%, #A78BFA 100%));
	box-sizing: border-box;
	overflow: hidden;
}

.nwui-ph-title {
	margin: 0 0 10px;
	padding: 0 2px;
	font-family: var(--nwui-font-heading, 'Poppins', sans-serif);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--nwui-ph-title, #fff);
	letter-spacing: -0.01em;
}

.nwui-ph-viewport {
	overflow: hidden;
	width: 100%;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y pinch-zoom;
	-webkit-overflow-scrolling: touch;
	position: relative;
	z-index: 1;
}

.nwui-ph-viewport.is-dragging {
	cursor: grabbing;
	touch-action: none;
}

.nwui-ph-card {
	-webkit-user-drag: none;
	user-select: none;
	touch-action: pan-y pinch-zoom;
}

.nwui-ph-image-wrap img {
	-webkit-user-drag: none;
	pointer-events: none;
}

.nwui-ph-track {
	display: flex;
	gap: var(--nwui-ph-gap);
	width: max-content;
	min-width: 100%;
	transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.nwui-ph-card {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-decoration: none;
	background: var(--nwui-ph-card, #fff);
	border-radius: calc(var(--nwui-ph-radius, 16px) - 6px);
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	min-width: 0;
}

.nwui-ph-card.is-clone {
	pointer-events: none;
}

.nwui-ph-card:hover,
.nwui-ph-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.nwui-ph-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--nwui-ph-img-h, 132px);
	max-height: var(--nwui-ph-img-h, 132px);
	padding: 8px 8px 4px;
	background: #fff;
	box-sizing: border-box;
}

.nwui-ph-image-wrap img {
	width: auto;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	pointer-events: none;
}

.nwui-ph-label {
	display: block;
	padding: 4px 10px 10px;
	font-family: var(--nwui-font-body, 'Poppins', sans-serif);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--nwui-ph-label, #9CA3AF);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nwui-ph-price {
	display: block;
	padding: 0 10px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #111827;
	line-height: 1.2;
}

.nwui-ph-price del {
	opacity: 0.55;
	font-weight: 500;
	margin-right: 4px;
}

.nwui-products-highlight.is-empty[hidden] {
	display: none !important;
}

.nwui-products-highlight.nwui-ph-fit .nwui-ph-track {
	justify-content: flex-start;
	width: 100%;
}

@media (min-width: 768px) {
	.nwui-products-highlight {
		--nwui-ph-visible: var(--nwui-ph-tablet, 3);
		--nwui-ph-gap: 12px;
		--nwui-ph-img-h: 148px;
		max-width: 100%;
		padding: 16px 18px 16px;
		border-radius: var(--nwui-ph-radius, 18px);
	}

	.nwui-ph-title {
		font-size: 1.1rem;
		margin-bottom: 12px;
	}

	.nwui-ph-label {
		font-size: 0.78rem;
	}
}

@media (min-width: 1024px) {
	.nwui-products-highlight {
		--nwui-ph-visible: var(--nwui-ph-desktop, 4);
		--nwui-ph-gap: 14px;
		--nwui-ph-img-h: 156px;
		max-width: var(--nwui-layout-max, 1760px);
		padding: 18px 20px 18px;
	}

	.nwui-ph-title {
		font-size: 1.2rem;
	}
}
