/*
 * Penyesuaian visual khusus BelahanHati.com.
 * Muat file ini setelah style.css agar perubahan tidak merusak file vendor/template.
 */

:root {
	--bh-primary: #d63384;
	--bh-primary-dark: #a61e61;
	--bh-accent: #ffb3c7;
	--bh-text: #2d2330;
	--bh-surface: #fff8fb;
}

html {
	scroll-behavior: smooth;
}

body {
	color: #000;
	font-family: "Josefin Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
select,
textarea,
label {
	font-family: "Josefin Sans", sans-serif !important;
}

.bh-auth-actions {
	align-items: center;
	gap: 10px;
	padding-left: 24px;
}

.bh-auth-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 94px;
	height: 46px;
	padding: 0 20px;
	border: 1px solid var(--bh-primary);
	border-radius: 999px;
	font-weight: 600;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.bh-menu-icon {
	margin-right: 7px;
	color: var(--bh-primary);
	font-size: 0.9em;
}

.bh-login-btn {
	background: transparent;
	color: #000;
}

.bh-login-btn:hover {
	background: var(--bh-surface);
	color: #000;
	border-color: var(--bh-primary-dark);
}

.bh-register-btn {
	background: var(--bh-primary);
	color: #000;
}

.bh-register-btn:hover {
	background: var(--bh-primary-dark);
	border-color: var(--bh-primary-dark);
	color: #000;
}

header .main-header .main-menu > ul > li > a,
.mydropdown .maindropdown li a {
	color: #000;
}

body.dark {
	color: #f7f3f5;
}

body.dark header .main-header .main-menu > ul > li > a,
body.dark .mydropdown .maindropdown li a,
body.dark .bh-login-btn,
body.dark .bh-register-btn {
	color: #f7f3f5;
}

body.dark .bh-login-btn:hover,
body.dark .bh-register-btn:hover {
	color: #fff;
}

/* Dropdown yang lebih lebar dan tetap dapat digunakan untuk kategori Shop. */
.mydropdown .maindropdown {
	width: 260px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	animation: none;
	transform: none;
	transition: opacity 160ms ease, visibility 160ms ease;
}

.mydropdown:hover .maindropdown {
	animation: none;
	transform: none;
}

img {
	max-width: 100%;
}

.main-btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--bh-accent);
	outline-offset: 3px;
}

@media (max-width: 991px) {
	header .main-header .main-menu > ul {
		width: min(86vw, 320px);
		left: min(-86vw, -320px);
		background: #fff;
		border-radius: 0 22px 22px 0;
		box-shadow: 18px 0 50px rgba(61, 20, 42, 0.18);
	}

	header .main-header .main-menu > ul.close {
		left: 0;
	}

	header .main-header .main-menu > ul > li > a {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 10px;
		min-height: 58px;
		padding: 16px 20px;
		border-bottom: 1px solid #f1e8ed;
		background: #fff;
		color: #000;
		font-weight: 600;
	}

	header .main-header .main-menu > ul > li > a .bh-menu-icon {
		flex: 0 0 20px;
		margin-right: 0;
		text-align: center;
	}

	header .main-header .main-menu > ul > li > a .fa-angle-down {
		margin-left: auto;
	}

	header .main-header .main-menu > ul > li > a:hover,
	header .main-header .main-menu > ul > li.active > a {
		background: var(--bh-surface);
		color: #000;
	}

	header .main-header .main-menu > ul > li:first-child > a.b-none,
	header .main-header .main-menu > ul > li:first-child > a.b-none:hover {
		min-height: 84px;
		justify-content: center;
		background: linear-gradient(135deg, #fff5f8, #ffe1e9);
		border-bottom: 1px solid #f6d5df;
	}

	header .main-header .main-menu > ul > li:first-child img {
		max-height: 52px;
		width: auto;
	}

	header .main-header .main-menu ul li a i.fa {
		color: var(--bh-primary);
	}

	.mydropdown .maindropdown {
		width: 100%;
		max-height: none;
		overflow-y: visible;
		background: #fff8fb;
		box-shadow: inset 0 -1px 0 #f1e8ed;
	}

	header .main-header .main-menu .maindropdown li a {
		padding: 13px 20px 13px 48px;
		border-bottom: 1px solid #f4e7ed;
		background: #fff8fb;
		color: #000;
		font-size: 14px;
	}

	header .main-header .main-menu .maindropdown li a:hover {
		background: #ffeef4;
		color: #000;
		transform: none;
	}

	header .main-header .main-menu .maindropdown li a::before {
		display: none;
	}

	header .main-header .main-menu .bh-mobile-login,
	header .main-header .main-menu .bh-mobile-register {
		padding: 8px 16px;
		background: #fff;
	}

	header .main-header .main-menu .bh-mobile-login > a,
	header .main-header .main-menu .bh-mobile-register > a {
		min-height: 48px;
		justify-content: center;
		border: 1px solid var(--bh-primary);
		border-radius: 999px;
	}

	header .main-header .main-menu .bh-mobile-login > a {
		color: #000;
	}

	header .main-header .main-menu .bh-mobile-register > a {
		background: var(--bh-primary);
		color: #000;
	}

	header .main-header .main-menu .bh-mobile-register > a .bh-menu-icon {
		color: #fff;
	}

	body.dark header .main-header .main-menu > ul {
		background: #171217;
		box-shadow: 18px 0 50px rgba(0, 0, 0, 0.38);
	}

	body.dark header .main-header .main-menu > ul > li > a {
		background: #171217;
		border-bottom-color: #382833;
		color: #f7f3f5;
	}

	body.dark header .main-header .main-menu > ul > li > a:hover,
	body.dark header .main-header .main-menu > ul > li.active > a {
		background: #2b1e27;
		color: #fff;
	}

	body.dark header .main-header .main-menu > ul > li:first-child > a.b-none,
	body.dark header .main-header .main-menu > ul > li:first-child > a.b-none:hover {
		background: linear-gradient(135deg, #24171f, #321b27);
		border-bottom-color: #472b3a;
	}

	body.dark .mydropdown .maindropdown,
	body.dark header .main-header .main-menu .maindropdown li a {
		background: #211820;
		border-bottom-color: #382833;
		color: #ddd4d9;
	}

	body.dark header .main-header .main-menu .maindropdown li a:hover {
		background: #34232e;
		color: #fff;
	}

	body.dark header .main-header .main-menu .bh-mobile-login,
	body.dark header .main-header .main-menu .bh-mobile-register {
		background: #171217;
	}

	body.dark header .main-header .main-menu .bh-mobile-login > a,
	body.dark header .main-header .main-menu .bh-mobile-register > a {
		color: #f7f3f5;
	}
}
