/* =========================================================
   eh-produk-pilihan.css  —  Produk Pilihan untuk Proyek Anda
   BEM: .eh-produk-pilihan / .eh-pp__*
   ========================================================= */

/* ── CSS Variables ────────────────────────────────────── */
.eh-produk-pilihan {
	--pp-teal:       #19babf;
	--pp-teal-dark:  #138f94;
	--pp-text-dark:  #1A2332;
	--pp-text-mid:   #546E7A;
	--pp-text-light: #78909C;
	--pp-bg:         #FFFFFF;
	--pp-card-bg:    #FFFFFF;
	--pp-border:     #E8ECF0;
	--pp-radius:     10px;
	--pp-gap:        14px;
	--pp-card-w:     200px;
}

/* ── Section wrapper ──────────────────────────────────── */
.eh-produk-pilihan {
	display: block;
	width: 100%;
	background: var(--pp-bg);
	padding: 24px 0 28px;
	box-sizing: border-box;
}

/* ── Inner container ──────────────────────────────────── */
.eh-pp__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Header row ───────────────────────────────────────── */
.eh-pp__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 12px;
}

.eh-pp__heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--pp-text-dark);
	margin: 0;
	line-height: 1.2;
}

.eh-pp__view-all {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--pp-teal);
	text-decoration: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	transition: opacity 0.15s;
	flex-shrink: 0;
}

.eh-pp__view-all:hover {
	opacity: 0.72;
	text-decoration: underline;
}

/* ── Carousel wrapper ─────────────────────────────────── */
.eh-pp__carousel-wrap {
	position: relative;
}

/* ── Scrollable track ─────────────────────────────────── */
.eh-pp__track {
	display: flex;
	gap: var(--pp-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.eh-pp__track::-webkit-scrollbar { display: none; }

/* ── Arrow buttons ────────────────────────────────────── */
.eh-pp__arrow {
	display: none;
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	z-index: 10;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid var(--pp-border);
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	transition: box-shadow 0.15s, border-color 0.15s;
}

.eh-pp__arrow:hover {
	border-color: var(--pp-teal);
	box-shadow: 0 4px 12px rgba(25,186,191,0.18);
}

.eh-pp__arrow svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: var(--pp-text-dark);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.eh-pp__arrow--prev { left: -17px; }
.eh-pp__arrow--next { right: -17px; }
.eh-pp__arrow.is-visible { display: flex; }
.eh-pp__arrow.is-hidden  { opacity: 0.3; cursor: default; pointer-events: none; }

/* ── Single card item ─────────────────────────────────── */
.eh-pp__item {
	flex: 0 0 auto;
	width: var(--pp-card-w);
	scroll-snap-align: start;
}

.eh-pp__card {
	display: flex;
	flex-direction: column;
	background: var(--pp-card-bg);
	border: 1px solid var(--pp-border);
	border-radius: var(--pp-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s, transform 0.2s;
	height: 100%;
}

.eh-pp__card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,0.10);
	transform: translateY(-2px);
}

.eh-pp__card:focus-visible {
	outline: 2px solid var(--pp-teal);
	outline-offset: 2px;
}

/* ── Card image ───────────────────────────────────────── */
.eh-pp__img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #FFFFFF;
	border-bottom: 1px solid #F0F4F8;
}

.eh-pp__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 8px;
	box-sizing: border-box;
	transition: transform 0.35s ease;
}

.eh-pp__card:hover .eh-pp__img {
	transform: scale(1.04);
}

.eh-pp__img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #F0F4F8 0%, #E2EAF0 100%);
	color: #B0BEC5;
	font-size: 32px;
}

/* ── Eco-label badge ──────────────────────────────────── */
.eh-pp__badge {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 2px 7px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* ── Card body ────────────────────────────────────────── */
.eh-pp__body {
	padding: 8px 10px 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

/* ── Product name ─────────────────────────────────────── */
.eh-pp__name {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--pp-text-dark);
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

/* ── Price + cart row ─────────────────────────────────── */
.eh-pp__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: 6px;
}

.eh-pp__price {
	font-size: 12px;
	color: var(--pp-teal-dark);
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
	flex: 1;
	min-width: 0;
}

.eh-pp__price-unit {
	font-size: 10.5px;
	color: var(--pp-text-light);
	font-weight: 400;
}

/* ── Teal cart button ─────────────────────────────────── */
.eh-pp__cart-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--pp-teal);
	color: #FFFFFF;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
}

.eh-pp__cart-btn:hover {
	background: var(--pp-teal-dark);
	transform: scale(1.08);
}

.eh-pp__cart-btn svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: #FFFFFF;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Empty state ──────────────────────────────────────── */
.eh-pp__empty {
	color: var(--pp-text-light);
	font-size: 13px;
	margin: 0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
	.eh-produk-pilihan { --pp-card-w: 185px; }
}

@media (max-width: 768px) {
	.eh-produk-pilihan {
		--pp-card-w: 165px;
		--pp-gap: 10px;
	}
	.eh-pp__inner { padding: 0 16px; }
}

@media (max-width: 480px) {
	.eh-produk-pilihan { --pp-card-w: 148px; }
	.eh-pp__heading { font-size: 13.5px; }
}
