/* Search Modal Styles */
.search-modal-overlay {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 99999;
}

.search-modal-overlay.active {
	display: flex;
}

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

/* Sidebar Styles */
.search-modal-sidebar {
	display: flex;
	flex-direction: column;
	width: 300px;
	padding: 30px;
	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-direction: column;
	flex: 1;
	padding: 30px;
	overflow-y: auto;
}

.search-box-wrapper {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

#search-modal .search-modal-close {
	background-color: transparent;
	color: #000;
}

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

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

#search-modal .dgwt-wcas-search-input {
	border-radius: 0;
}

.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;
}


/* Categories Grid */
.search-modal-categories-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
}

.search-modal-category-link {
	display: block;
	position: relative;
}

.search-modal-category-image {
	width: 100%;
	height: 100%;
}

.search-modal-category-image img {
	width: 100%;
	object-fit: contain;
}

.search-modal-category-text {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 5px;
	color: black;
/* 	text-shadow: 0px 0px 2px black; */
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	text-decoration: underline;

}

/* 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: 20px;
	}

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

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

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

	.search-modal-category {
		flex: 0 0 85%;
	}
}