/* Search Modal Styles */
.search-modal-overlay {
	display: none;
	/* visibility: hidden; */
	align-items: center;
	justify-content: center;
	position: fixed;
	top: calc(100px + var(--wp-admin--admin-bar--height, 0px));
	left: 0;
	width: 100vw;
	height: 75vh;
	/* max-height: 90vw; */
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 99999;
}

.search-modal-overlay.active {
	display: flex;
	/* visibility: visible; */
}

.search-modal-container {
	display: flex;
	flex-direction: column;
	background: #fff;
	width: 100%;
	height: 100%;
}

/* Sidebar Styles */
.search-modal-sidebar {
	display: flex;
	flex-direction: column;
	width: 300px;
	padding: 0;
	overflow-y: auto;
}

.search-modal-logo {
	margin-bottom: 40px;
	text-align: right;
}

.search-modal-logo img {
	max-width: 100%;
	height: auto;
}

.search-modal-sidebar-text {
	margin-bottom: 30px;
	text-align: right;
	color: #6c757d;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 10px;
}

.search-modal-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.search-modal-menu-list li {
	margin-bottom: 10px;
}

.search-modal-menu-list a {
	display: inline-block;
	position: relative;
	color: #495057;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.5s ease;
}

.search-modal-menu a:hover {
	transition: color 0.9s ease;
}

.search-modal-menu a::after {
	content: '';
	position: absolute;
	bottom: 4px;
	right: 0;
	width: 0;
	height: 1px;
	background-color: #000;
	transition: width 0.3s ease;
}

.search-modal-menu a:hover::after {
	width: 100%;
}

/* Content Area Styles */
.search-modal-content {
	display: flex;
	flex: 1;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	overflow-y: auto;
}

.search-modal-content-products {
	padding: 0 20px;
}

.search-box-wrapper {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

#search-modal .search-modal-close-wrap {
	display: flex;
	justify-content: center;
	position: sticky;
	bottom: 0;
	width: 100%;
}

#search-modal .search-modal-close {
	padding: 5px 10px;
	background: #fff;
	border: 1px solid #aaaeb2;
	color: #aaaeb2;
}

#search-modal .dgwt-wcas-search-wrapp {
	max-width: initial;
}

#search-modal .dgwt-wcas-sf-wrapp {
	padding-right: 0;
}

#search-modal .dgwt-wcas-search-input {
	background: transparent;
	border: none;
	border-bottom: 1px solid #ccc;
	border-radius: 0;
	font-family: 'heebo';

}

#search-modal .dgwt-wcas-suggestions-wrapp {
	display: none !important;
}

#search-modal .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
	left: 29px;
	right: initial;
}

#search-modal .dgwt-wcas-preloader.dgwt-wcas-close {
	display: none;
}


/* Products Grid */
.search-modal-products {
	margin-bottom: 40px;
}

.search-modal-products-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 5px;
}

.search-modal-product {
	text-align: right;
}

.search-modal-product-image {
	margin-bottom: 10px;
}

.search-modal-product-image img {
	width: 100%;
	height: auto;
}

.search-modal-product-title {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 5px;
	color: #333;
}

.search-modal-product-price {
	font-size: 16px;
	color: #333;
	margin-bottom: 10px;
}

/* Accessibility */
.search-modal-overlay .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Responsive Styles */
/* @media (max-width: 767px) {
#search-modal {
overflow-y: auto;
align-items: flex-start;
}

.search-modal-container {
flex-direction: column-reverse;
height: auto;
overflow-y: auto !important;
}

.search-modal-content {
overflow: hidden;
padding: 0;
}

.search-modal-products-grid {
display: flex;
overflow-x: auto;
}

.search-modal-product {
flex: 0 0 45%;
}
} */

@media (max-width: 767px) {
	/* #search-modal {
	top: calc(75px + var(--wp-admin--admin-bar--height, 0px));
} */

	.search-modal-container {
		overflow-y: auto;
	}

	.search-modal-content {
		overflow-y: auto;
		flex-direction: column;
		justify-content: start;
		gap: 30px;
		/*       flex-wrap: wrap; */
		width: 100%;
		flex: 0 0 auto;
	}

	.search-modal-sidebar{
		position: relative;
		width: 100%;
		padding-right: 20px;
	}

	.search-modal-content-products{
		width: 100%;
		padding: 0;
	}

	.search-modal-products-grid {
		grid-template-columns: repeat(2, 1fr);

	}

	/*   #search-modal .search-modal-close-wrap{
	display: flex;
	justify-content: center;
	position: sticky;
	bottom: 0;
	width: 100%;
}
	#search-modal .search-modal-close{
	padding: 5px 10px;
	background: #fff;
	border: 1px solid #aaaeb2;
	color: #aaaeb2;

} */
}

#searchform-dropdown {
	display: none;
}

.dgwt-wcas-suggestions-wrapp {
	display: none !important;
}