﻿/*-----------------------------------------------------------------------------
	SEARCH FILTERS   updated-2024
------------------------------------------------------------------------------*/


/*------------------------------------------
			Search Container
-------------------------------------------*/	
.mobile-openMenu, .mobile-closeMenu {
	display: none;
}

.search-container {
	position: sticky;
	display: block;
	top: 0;
	width: 100%;
	height: 100px;
	padding-top: 30px;
	box-sizing: border-box;
	background-color: var(--body_color);
	overflow: hidden;
	z-index: 100;	
}

.search-input-container {	
	display: flex;
	justify-content: center;
	align-content: center;	
	width: 40%;
	height: 40px;
	margin: 0 auto;
	border-radius: 50px;
	background-color: var(--div_color);
}

.search-container button {
	border: none;
	outline: none;
	background: none;
	cursor: pointer;
}


/*-- Input & icons Styling --*/
.search-container input {
	background-color: transparent;
	border: none;
	outline: 0;
	width: 98%;
	padding: 10px;
	margin-left: 2%;
	font-size: 16px;
	box-sizing: border-box;
}

.icon-search {
	align-content: center;
	padding-left: 20px;
	color: var(--div_color_dark);
}

.icon-close {
	padding: 0;
	margin: 5px;
	color: var(--div_color);
	background-color: var(--div_color_dark);
	border-radius: 50%;
	transition: all 0.3s ease-in-out;
	cursor: pointer;
}

.icon-close:hover {
  background-color: var(--primary_textcolor);
}



/*------------------------------------------
		 Menu Container (Left Side)
-------------------------------------------*/	

.sticky-MenuContainer {
	float:left;
	width:20%;
	
}

.filter-MenuContainer {  
	position: sticky;
	top:90px;
	width:80%;
	margin: 0 auto;	
}

.filter-MenuContainer button {
	border: none;
	outline: none;
	font-weight:bold;
	background:none;
	cursor: pointer;
}

.filter-MenuContainer ul li {
	list-style: none;	
}

.filter-MenuRegular {
	width: 100%;
	padding:16px 0;
	text-align: left;
	border: none;	
	outline: none;
	font-size: 16px;
	letter-spacing: 0.02em;
	font-family:'Roboto','Noto Sans TC', sans-serif;
	color: var(--primary_textcolor);
	overflow:hidden; 
	box-sizing: border-box;
	cursor: pointer;
}


/*--------- Collapsible Menu ---------*/

.filter-MenuCollapsible {
	width: 100%;
	padding: 16px 0;
	text-align: left;
	border: none;	
	outline: none;
	font-size: 16px;
	letter-spacing: 0.02em;
	font-family:'Roboto','Noto Sans TC', sans-serif;
	color: var(--primary_textcolor);
	overflow: hidden; 
	box-sizing: border-box;
	cursor: pointer;
	
}
  
/* PLUS/MINUS SIGN */
.filter-MenuCollapsible:after {
	content: '\002B';
	margin-right: 15px;
	float: right;
	font-size: 20px;
	font-weight: 100;
	color: var(--primary_textcolor);	
}

.active:after {
	content: "\2212";
	font-size: 22px;
	font-weight: 100;
}
 
/* Content Div(when the plus sign expands)*/
.filter-MenuContent {
	padding: 0;
	max-height: 0;
	border-bottom: 1px solid var(--div_color_dark);  
	color: var(--primary_textcolor); 
	overflow: hidden;
	transition: max-height 0.2s ease-out;
}
  
.filter-MenuContent ul {
	padding: 0;
}

.filter-MenuContent ul li {
	text-align: left;
	padding: 5px 15px;
	cursor: pointer;	
}

.filter-MenuContent ul li:hover {
	background-color: var(--div_color);
	border-radius: 50px;
}




/*-----------------------------------------
			Product Display Container
-------------------------------------------*/	

.filter-ProductContainer {
	display: block;
	float:right;
	width: 70%;
	height: fit-content;
	margin-right:5%;
	margin-bottom:5%;
	overflow: hidden;
	box-sizing: border-box;	
}

.filter-ProductContainer-display {
	display: flex;
	flex-flow: row wrap;
}

.filterProduct {
	display: none;		
	width: 33%;
	margin: 0 0 5% 0;
	text-align: center;
	color: var(--primary_textcolor);	
}

.filterProduct h4 {
	text-align: center;
	font-size: 90%;
	color: var(--primary_textcolor);
	font-weight: bold;
}

.filterProduct p {
	text-align: center;
	font-size: 80%;
	color: var(--primary_textcolor);
}

.filterProduct img {
	width:95%;
	background-color: var(--div_color);
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;	
}

.filterProduct img:hover {
	background-color: var(--div_color_dark);
}


.showProduct {
	display:block;
}




/*************************
		iPad-Pro
**************************/	
@media screen and (max-width: 1024px) {

	.filterProduct img {
		width:90%;
			
	}

	.sticky-MenuContainer {
		float:left;
		width:25%;
	
	
	}

	.filter-ProductContainer {
		width: 65%;
		margin-right:6%;
		margin-bottom:5%;
		overflow: hidden;	

	}

} 


/*************************
		iPad Mini / Air
**************************/	

@media screen and (max-width:820px) {
	
	.filterProduct img {
		width:90%;			
	}

	.sticky-MenuContainer {
		float:left;
		width:30%;	
	}

	.filter-ProductContainer {
		width: 60%;
		margin-right:5%;
		margin-bottom:5%;	
	}

	.search-input-container {	
		width: 57%;
		height: 40px;
		border-radius: 0;
		margin-left: 36%;	
		background-color: transparent;
		border-bottom: 1px solid var(--div_color_dark);
	}
	
	.icon-search {
		color: var(--primary_textcolor);
	}
	.icon-close {
		padding: 0;
		margin: 5px;
		color: var(--primary_textcolor);
		background-color: transparent;
		border-radius:0;
	}

	.icon-close:hover, :active {
		background-color: transparent;
	}

}




/*************************
		iPad Mini
**************************/	
@media screen and (max-width:768px) { 

	.search-input-container {	
		width: 57%;
		height: 40px;
		border-radius: 0;
		background-color: transparent;
		border-bottom: 1px solid var(--div_color_dark);
	}
	
	

}



/*************************
		iPhone
**************************/	
@media screen and (max-width:470px) { 


	.search-container {
		position: fixed;
		top: 75px;
		width: 100%;
		height: 120px;
		padding-top: 20px;
		margin:0;
		z-index: 1000;
	}

	.search-input-container {	
		display: flex;
		justify-content: center;
		align-content: center;	
		width: 80%;
		height: 40px;
		margin: 0 auto;
		border-radius: 0;
		background-color: transparent;
		border-bottom: 1px solid var(--div_color_dark);
	}



/*--------------------------
		 Menu Container 
----------------------------*/	

	.filter-MenuContainer {
		display: block;
		position: fixed;
		width: 100%;
		height:100%;
		left: 0;
		top:-100%;
		padding: 40px 30px 0 30px;
		border-top: 1px solid var(--div_color);
		box-sizing: border-box;
		background-color: var(--body_color);
		transition: all 0.3s ease-in-out;
		overflow-y: auto;
		z-index: 1100;	
	}

    .mobile-closeMenu {
		display: block;
	}

	.icon-closeMenu {
		position: absolute;
		top: 30px;
		right: 38px;
		padding:2px;
		color: var(--div_color);
		background-color: var(--primary_textcolor);
		border-radius: 50%;
		cursor: pointer;
	}

	.mobile-openMenu {
		display: block;
		align-content: center;
		margin-top: 10px;
		
	}

	.mobile-openMenu button{
		display: flex;
		justify-content: center;
		align-items: center;
		width: 30%;
		float: right;
		margin-right:13%;
		border: 1px solid var(--div_color_dark);		
		border-radius: 50px;
		font-size: 14px;
		font-weight: 400;
		color: var(--primary_textcolor)
	}

	.icon-openMenu {
		color: var(--primary_textcolor);
		cursor: pointer;
	}


	.filter-ProductContainer {
		display: block;
		position: absolute;
		float:none;
		top:200px;
		width: 100%;
		margin:0 auto;
		box-sizing: border-box;
	}


	.filter-ProductContainer-display {
		width: 90%;
		margin:0 auto 40% auto;
		padding-bottom: 10%;
		box-sizing: border-box;	
	}


	.filterProduct h4 {
		font-size: 80%;
	}
	
	.filterProduct p {
		font-size: 70%;
	}

}
