/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/* Keep both desktop menu groups equally visible. */
.mfn-header-template .mfn-header-menu > li.mfn-menu-li > a.mfn-menu-link {
	color: #fff !important;
	opacity: 1 !important;
}

.mfn-header-template .mfn-header-menu > li.mfn-menu-li > a.mfn-menu-link:hover,
.mfn-header-template .mfn-header-menu > li.current-menu-item > a.mfn-menu-link,
.mfn-header-template .mfn-header-menu > li.current-product_cat-ancestor > a.mfn-menu-link {
	color: #f3cfdf !important;
}

.mfn-header-template .mfn-header-menu .mfn-submenu {
	min-width: 250px;
}

.mfn-header-template .mfn-header-menu .mfn-submenu a {
	line-height: 1.35;
}

/* Product archive introduction and crawlable category cards. */
.fhs-archive-intro {
	width: 100%;
	margin: 0 0 36px;
}

.fhs-archive-intro h1 {
	margin: 0 0 12px;
	color: #5d1f44;
	font-size: clamp(30px, 3vw, 46px);
	line-height: 1.15;
}

.fhs-archive-description {
	max-width: 900px;
	margin-bottom: 24px;
	color: #5c5360;
	font-size: 16px;
	line-height: 1.7;
}

.fhs-archive-description p:last-child {
	margin-bottom: 0;
}

.fhs-category-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.fhs-category-card {
	display: block;
	overflow: hidden;
	border: 1px solid #eadde5;
	border-radius: 10px;
	background: #fff;
	color: #5d1f44;
	text-align: center;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.fhs-category-card:hover {
	transform: translateY(-2px);
	border-color: #c990ad;
	box-shadow: 0 10px 24px rgba(93, 31, 68, .12);
	color: #5d1f44;
}

.fhs-category-card-image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f7f1f5;
}

.fhs-category-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fhs-category-card-title {
	display: flex;
	min-height: 58px;
	align-items: center;
	justify-content: center;
	padding: 10px 8px;
	font-weight: 600;
	line-height: 1.25;
}

/* Future-proof Shop filter sidebar. */
.sidebar-lingerieshopsidebar .widget,
.widget-area .widget {
	margin-bottom: 22px;
	padding-bottom: 22px;
	border-bottom: 1px solid #eadde5;
}

.sidebar-lingerieshopsidebar .widget-title,
.sidebar-lingerieshopsidebar h2,
.sidebar-lingerieshopsidebar h3,
.sidebar-lingerieshopsidebar h4,
.sidebar-lingerieshopsidebar h5 {
	margin-bottom: 14px;
	color: #5d1f44;
	font-size: 17px;
	font-weight: 600;
}

.sidebar-lingerieshopsidebar ul,
.sidebar-lingerieshopsidebar .wc-block-product-categories-list {
	margin-left: 0;
	list-style: none;
}

.sidebar-lingerieshopsidebar .wc-block-product-categories-list-item {
	margin: 7px 0;
}

.sidebar-lingerieshopsidebar .wc-block-product-categories-list--depth-1 {
	margin: 6px 0 10px 14px;
	padding-left: 12px;
	border-left: 1px solid #e5d2dd;
}

.sidebar-lingerieshopsidebar .wc-block-product-categories-list-item-count {
	color: #9a7c8e;
	font-size: 12px;
}

.fhs-sidebar-categories ul {
	margin: 0;
	list-style: none;
}

.fhs-sidebar-categories li {
	margin: 0;
}

.fhs-sidebar-categories a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 0;
	color: #4b3d46;
	line-height: 1.35;
}

.fhs-sidebar-categories a:hover,
.fhs-sidebar-categories .is-current > a,
.fhs-sidebar-categories .is-current-branch > a {
	color: #5d1f44;
	font-weight: 600;
}

.fhs-sidebar-categories small {
	color: #9a7c8e;
	font-size: 11px;
	font-weight: 400;
}

.fhs-sidebar-categories .fhs-category-level-0 > ul {
	margin: 2px 0 10px 9px;
	padding-left: 12px;
	border-left: 1px solid #e5d2dd;
}

.fhs-sidebar-categories .fhs-category-level-0 > ul a {
	padding: 5px 0;
	font-size: 13px;
}

.sidebar-lingerieshopsidebar input[type="checkbox"] {
	accent-color: #5d1f44;
}

.fhs-mobile-filter-toggle {
	display: none;
}

@media (max-width: 959px) {
	.fhs-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fhs-mobile-filter-toggle {
		display: flex;
		width: calc(100% - 30px);
		margin: 0 15px 18px;
		padding: 13px 18px;
		align-items: center;
		justify-content: center;
		border: 1px solid #5d1f44;
		border-radius: 6px;
		background: #5d1f44;
		color: #fff;
		font-weight: 600;
		cursor: pointer;
	}

	.fhs-mobile-filter-panel {
		display: none;
	}

	.fhs-mobile-filter-panel.is-open {
		display: block;
	}
}

@media (max-width: 600px) {
	.fhs-archive-intro {
		margin-bottom: 26px;
	}

	.fhs-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.fhs-category-card-title {
		min-height: 52px;
		font-size: 14px;
	}
}
