/**
 * Carousel produk "kartu gradasi" — semua gaya berawalan .ihv agar tidak bentrok
 * dengan tema lain, Elementor, atau ElementsKit. Warna utama bisa diubah di bawah.
 */
.ihv {
	--c-deep: #0f3326;
	--c-pine: #1d5c43;
	--c-resin: #e0a030;
	--c-mist: #eaf1ec;
	--c-ink: #0d211a;
	--c-soft: #46584f;
	--ihv-card-c1: #1d5c43;
	--ihv-card-c2: #3f8a5f;
	--ihv-card-w: 84vw;
	--ihv-gap: 22px;
	--ihv-ease: cubic-bezier(.22, 1, .36, 1);
	color: var(--c-ink);
	line-height: 1.6;
	overflow-x: clip;
}
.ihv, .ihv *, .ihv *::before, .ihv *::after { box-sizing: border-box; }
.ihv.ihv-fonts { font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; }
.ihv h2, .ihv p { margin: 0; }
.ihv.ihv-fonts h2, .ihv.ihv-fonts .ihv-card-title { font-family: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif; }
.ihv h2, .ihv .ihv-card-title { letter-spacing: -.02em; line-height: 1.12; }
.ihv a { text-decoration: none; color: inherit; }
.ihv a.ihv-card, .ihv a.ihv-card:hover, .ihv a.ihv-card:focus { color: #fff; text-decoration: none; }
.ihv a:focus-visible, .ihv button:focus-visible { outline: 3px solid var(--c-resin); outline-offset: 4px; border-radius: 12px; }
.ihv-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Tombol */
.ihv-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ihv-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px 999px 999px 14px; font-weight: 600; background: var(--c-resin); color: #2a1a00; transition: transform .35s var(--ihv-ease), box-shadow .35s; }
.ihv-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 24px -14px #000; }
.ihv-btn svg { width: 18px; height: 18px; }

/* Produk & carousel */
.ihv-products { padding: 64px 0 40px; position: relative; }
.ihv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.ihv-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 700; color: var(--c-ink); }
.ihv-head p { color: var(--c-soft); margin-top: 8px; }
.ihv-link { font-weight: 600; color: var(--c-pine); border-bottom: 2px solid var(--c-resin); padding-bottom: 2px; }

.ihv-track {
	display: flex;
	gap: var(--ihv-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 44px max(20px, calc((100% - 1180px) / 2)) 60px;
	scroll-padding-inline: max(20px, calc((100% - 1180px) / 2));
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x pan-y;
}
.ihv-track::-webkit-scrollbar { display: none; }
.ihv-track.is-drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }

/* Kartu (diperbaiki: gaya dasar berlaku selalu, bukan hanya saat digeser) */
.ihv-card {
	--c1: var(--ihv-card-c1);
	--c2: var(--ihv-card-c2);
	--mx: 50%;
	--my: 40%;
	--tint: var(--c-mist);
	position: relative;
	flex: 0 0 var(--ihv-card-w);
	max-width: 380px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	border-radius: 38px 38px 38px 92px;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(165deg, var(--c1) 0%, var(--c2) 100%);
	box-shadow: 0 18px 34px -24px var(--c1);
	transition: transform .55s var(--ihv-ease), box-shadow .55s var(--ihv-ease);
}
@supports (color: color-mix(in srgb, red, blue)) { .ihv-card { --tint: color-mix(in srgb, var(--c1) 10%, #fff); } }
.ihv-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity .4s;
	background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 255, 255, .2), transparent 70%);
}
.ihv-card:nth-child(even) { margin-top: 22px; }
.ihv-card:hover, .ihv-card:focus-visible { transform: translateY(-14px); box-shadow: 0 34px 46px -24px var(--c1); }
.ihv-card:hover::after { opacity: 1; }

/*
 * Foto di atas, keterangan di bawah; perbatasan memudar transparan ke warna kartu.
 * .is-cover = foto biasa memenuhi bagian atas kartu (tidak terpisah / melayang).
 * .is-float = produk PNG transparan yang melayang di atas bentuk blob.
 */
.ihv-media { position: relative; height: 240px; display: grid; place-items: center; background: linear-gradient(to bottom, var(--tint) 0%, var(--tint) 38%, transparent 100%); }
.ihv-blob { position: absolute; width: 70%; aspect-ratio: 1; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: .2; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; transition: border-radius 1.1s var(--ihv-ease), transform 1.1s var(--ihv-ease); }
.ihv-card:hover .ihv-blob { border-radius: 44% 56% 42% 58% / 58% 44% 56% 42%; transform: rotate(25deg) scale(1.12); }
.ihv-media img { position: relative; z-index: 3; max-width: 70%; max-height: 86%; width: auto; height: auto; object-fit: contain; transform: translateY(12px); filter: drop-shadow(0 18px 14px rgba(13, 33, 26, .3)); transition: transform .7s var(--ihv-ease); pointer-events: none; -webkit-user-drag: none; }
.ihv-card:hover .ihv-media img { transform: translateY(2px) rotate(-4deg) scale(1.07); }
/* Foto penuh: foto tetap di dalam bagian atas kartu, tanpa bingkai, tanpa miring;
   bagian bawah foto memudar transparan sehingga larut ke warna gradasi kartu. */
.ihv-card.is-cover .ihv-media { overflow: hidden; height: 260px; background: transparent; }
.ihv-card.is-cover .ihv-blob { display: none; }
.ihv-card.is-cover .ihv-media img {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	transform: none;
	filter: none;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgb(0 0 0 / .55) 72%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgb(0 0 0 / .55) 72%, transparent 100%);
	transition: transform .9s var(--ihv-ease);
}
.ihv-card.is-cover:hover .ihv-media img { transform: scale(1.06); }
.ihv-card.is-cover .ihv-body { margin-top: -46px; padding-top: 4px; }

.ihv-placeholder { position: relative; z-index: 3; font-size: 4rem; color: var(--c1); opacity: .5; }

.ihv-body { position: relative; z-index: 4; flex: 1; padding: 30px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.ihv-body > * { text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.ihv-chip { align-self: flex-start; font-size: .78rem; font-weight: 600; padding: 3px 12px; border-radius: 999px 999px 999px 6px; background: rgba(255, 255, 255, .2); }
.ihv-card-title { font-size: 1.3rem; font-weight: 700; }
.ihv-card-desc { font-size: .9rem; opacity: .92; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ihv-more { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.ihv-more i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); transition: background .35s, color .35s; }
.ihv-more svg { width: 16px; height: 16px; transition: transform .45s var(--ihv-ease); }
.ihv-card:hover .ihv-more i { background: #fff; color: var(--c1); text-shadow: none; }
.ihv-card:hover .ihv-more svg { transform: translateX(3px); }

.ihv-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: -6px; }
.ihv-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #c3d4c9; background: transparent; color: var(--c-pine); cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ihv-ease); }
.ihv-arrow:hover { background: var(--c-pine); color: #fff; transform: scale(1.08); }
.ihv-arrow svg { width: 18px; height: 18px; }
.ihv-dots { display: flex; gap: 8px; }
.ihv-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: #b9cbc0; cursor: pointer; transition: width .4s var(--ihv-ease), background .3s; }
.ihv-dots button[aria-current="true"] { width: 30px; background: var(--c-resin); }

/* Panel informasi produk */
.ihv-contact { padding: 10px 0 80px; }
.ihv-panel { background: linear-gradient(150deg, var(--c-deep), var(--c-pine)); color: #fff; border-radius: 40px 40px 40px 110px; padding: 44px 32px 44px 36px; display: grid; gap: 22px; }
.ihv-panel h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; color: #fff; }
.ihv-panel p { color: #cfe2d7; max-width: 34em; margin-top: 8px; }
.ihv-panel address { font-style: normal; color: #e6f1ea; }

/* Responsif */
@media (min-width: 640px) { .ihv { --ihv-card-w: 335px; } }
@media (min-width: 900px) {
	.ihv { --ihv-card-w: 360px; }
	.ihv-panel { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 56px 64px 56px 60px; }
}
@media (max-width: 639px) { .ihv-arrow { display: none; } .ihv-media { height: 220px; } }

/* Gerak dikurangi */
@media (prefers-reduced-motion: reduce) {
	.ihv *, .ihv *::before, .ihv *::after { animation: none !important; transition-duration: .01ms !important; }
}
