/*
	Theme Name:     Mobex Child
	Theme URI:      http://www.enovathemes.com/mobex
	Description:    Mobex - Auto Parts Woocommerce WordPress Theme
	Author:         Enovathemes
	Author URI:     https://enovathemes.com
	Version:        1.0
	Template:       mobex
*/

/* =Theme customization starts here
-------------------------------------------------------------- */

/* Custom Categories Modal - Two Column Layout */
.modal-categories-custom-wrapper {
	background: #fff;
	visibility: visible !important;
	opacity: 1 !important;
	height: 80vh !important;
	overflow: hidden;
	position: fixed !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	z-index: 99999 !important;
	padding: 0;
	display: block !important;
}

.modal-categories-custom-wrapper.active {
	visibility: visible !important;
	opacity: 1 !important;
	transition: opacity 0.2s ease-out;
	z-index: 99999 !important;
	height: 80vh !important;
	padding: 0;
	overflow: hidden;
	display: block !important;
}

.modal-categories-custom-wrapper .inner {
	display: flex;
	height: 100%;
	width: 100%;
}

.modal-categories-custom-wrapper .categories-main {
	width: 35%;
	background: #f5f5f5;
	overflow-y: auto;
	padding: 16px 8px;
}

.modal-categories-custom-wrapper .categories-sub {
	width: 65%;
	background: #fff;
	overflow-y: auto;
	padding: 16px;
}

.modal-categories-custom-wrapper .categories-sub .category-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal-categories-custom-wrapper .categories-sub .category-title .arrow {
	width: 24px;
	height: 24px;
	display: inline-block;
}

.modal-categories-custom-wrapper .categories-sub ul.children {
	list-style: none;
	margin: 0;
	padding: 0;
	height: auto;
}

.modal-categories-custom-wrapper .categories-sub ul.children li.cat-item {
	padding: 0;
	margin: 0;
	border: none;
	list-style: none;
}

.modal-categories-custom-wrapper .categories-sub ul.children li.cat-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #111;
	text-decoration: none;
	font-size: 14px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s;
}

.modal-categories-custom-wrapper .categories-sub ul.children li.cat-item:last-child a {
	border-bottom: none;
}

.modal-categories-custom-wrapper .categories-sub ul.children li.cat-item a:hover {
	background-color: #f9f9f9;
	padding-left: 8px;
	padding-right: 8px;
	margin-left: -8px;
	margin-right: -8px;
	border-radius: 4px;
}

.modal-categories-custom-wrapper .categories-sub ul.children li.cat-item a .category-image {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.modal-categories-custom-wrapper .categories-sub .back {
	display: flex;
	align-items: center;
	margin-bottom: 16px;
	padding: 8px 0;
	color: #111;
	font-weight: 700;
	text-decoration: none;
}

.modal-categories-custom-wrapper .categories-sub .back:before {
	content: "←";
	margin-right: 8px;
	font-size: 16px;
}

.modal-categories-custom-wrapper .categories-main ul {
	grid-row-gap: 8px;
	grid-column-gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.modal-categories-custom-wrapper .categories-main ul li {
	padding: 0;
	margin-bottom: 8px;
}

.modal-categories-custom-wrapper .categories-main ul li a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 12px 8px;
	text-decoration: none;
	color: #111;
	border-radius: 8px;
	transition: background-color 0.2s;
}

.modal-categories-custom-wrapper .categories-main ul li a:hover,
.modal-categories-custom-wrapper .categories-main ul li a.active {
	background-color: #e8e8e8;
}

.modal-categories-custom-wrapper .categories-main ul li .image-container {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 8px;
}

.modal-categories-custom-wrapper .categories-main ul li .image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.modal-categories-custom-wrapper .categories-main ul li h5 {
	font-size: 13px;
	line-height: 17px;
	margin: 0;
	font-weight: 400;
}

.modal-categories-custom-wrapper .categories-mobile-toggle-off {
	position: absolute;
	right: 16px;
	top: 16px;
	z-index: 1000;
}

