:root {
	--primaryColor:  #fd2b11; 
	--secondaryColor:  #0d6afa;
	--whiteColor: #fff;
	--blackColor: #222;
	--softyellowColor:  #fff8bc;
	--solidgreyColor: #CBCBC7;
	--greyColor: #f5f5f5;
	--greenColor: #7CFC00;
	--solidgreenColor: #40E801;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	outline: none;
	font-family: 'DM Sans', sans-serif;
}

body{
	width: 100%;
	height: auto;
	display: flex;
}
.sidebar a {
	cursor: pointer;
	text-decoration: none;
	color: var(--whiteColor);
}

.sidebar {
	height: 100%;
	width: 250px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: fixed;
	overflow-x: hidden;
	top: 0;
	left: 0;
	padding: 0.5%;
	background-color: var(--primaryColor);
	color: var(--whiteColor);
	z-index: 2;
}

.logo {
	display: flex;
	flex-direction: row;
	max-height: 85px;
	max-width: 85px;
	width: 100%;
	height: auto;
	gap: 5px;
	align-items: left;
	margin: 0rem 0;
	padding: 0% 0%;
}

.logo img {
	width: auto;
	height: 100%
}

.sidebar-menus {
	display: flex;
	flex-direction: column;
}

.sidebar-menus a, .sidebar-logout a {
	padding: 5% 18%;
	margin: 0.3rem 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	text-decoration: none;
	color: var(--whiteColor);
}

.sidebar-menus a ion-icon, .sidebar-logout a ion-icon {
	font-size: 40px;
}

.sidebar-menus a:hover , .sidebar-logout a:hover {
	background-color: var(--secondaryColor);
	border-radius: 50px;
	transition: 0.1s ease-in-out;
}

.main {
	width: 100%;
	height: max-content;
	min-height: 100vh;
	padding: 20px 2% 2%;
	background-color: var(--softyellowColor);
	margin-left: 250px;
	gap: 20px;
}

.main-navbar {
	display: flex;
	margin-bottom: 10px;
	justify-content: space-between;
}

.nav {
	display: flex;
}

.menu-toggle {
	display: none;
}

.search {
	width: 40%;
	min-width: 250px;
	height: 40px;
	display: flex;
	justify-content: end;/*space-around;*/
	background-color: var(--whiteColor);
	border-radius: 20px;
	border: 2px solid var(--blackColor);
	padding-right: 0px;
}

.search input {
	width: 80%;
	height: 100%;
	padding-left: 10px;
	border: none;
	border-radius: 20px;
}

.search-btn {
	background-color: var(--secondaryColor);
	color: var(--whiteColor);
	border: none;
	border-radius: 20px;
	width: 120px;
	cursor: pointer;
	font-weight: bold;
	/*margin: 0px 0px 0px 0px;*/
}

.search:hover {
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.search-btn:hover {
	background-color: var(--solidgreyColor);
	transition: 0.1s ease-in-out;
}

.profile {
	display: flex;
	align-items: right;
	align-self: flex-end;
	justify-content: right;
	/*gap: 0.5rem;*/
}

.cart, .user {
	display: flex;
	margin-left: auto;
	justify-content: center;
	align-items: center;
	justify-self: flex-end;
	align-self: right;
	background-color: var(--whiteColor);
	font-size: 20px;
	color: var(--primaryColor);
	text-decoration: none;
	padding: 0 10px;
	height: 50px;
	border-radius: 100%;
	border: 2px solid var(--primaryColor);
}

.navlinks {
	display: flex;
	justify-content: center;
	background-color: var(--whiteColor);
	font-size: 20px;
	color: var(--primaryColor);
	text-decoration: none;
	height: 50px;
	border-radius: 8px;
	margin-right: 10px;
	border: 3px solid var(--primaryColor);
}

.navlinks a {
	text-decoration: none;
}

.navlinks:hover {
	color: var(--whiteColor);
	background-color: var(--secondaryColor);
	border: 3px solid var(--blackColor);
}

.faq {
	text-decoration: none;
	color: var(--primaryColor);
}

.faq:hover {
	color: var(--whiteColor);
}

.cart:hover, .user:hover {
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.main-highlight {
	margin: 15px 0 20px;
	padding: 2%;
	background-color: var(--greyColor);
	border-radius: 8px;
	border: 2px solid var(--blackColor);
}

.main-header {
	display: flex;
	width: 100%;
	justify-content: center; /*space-between;*/
}

.main-title {
	font-size: 20px;
}

.main-title2 {
	font-size: 20px;
	white-space: nowrap;
}

.home-title {
	font-size: 40px;
}

.home-subtitle {
	font-size: 35px;
}

.home-box {
	font-size: 35px;
	justify-content: center;
	align-items: center;
}

.main-arrow {
	font-size: 24px;
}

.back, .next {
	cursor: pointer;
}

.back:hover , .next:hover {
	color: var(--secondaryColor);
}

.highlight-wrapper {
	width: 100%;
	display: flex;
	padding: 1%;
	border-radius: 8px;
	gap: 1.5rem;
	overflow-x: hidden;
}

.highlight-card {
	display: flex;
	flex-direction: row;
	min-width: 200px;
	width: 80%;
	height: 100%;
	gap: 1rem;
	border-radius: 8px;
	padding: 1%;
	background-color: var(--whiteColor);
	border: 2px solid var(--blackColor);
	cursor: pointer;
}
	
.highlight-img {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
	object-position: centers;
}

.highlight-desc h4 {
	color: var(--blackColor);
}

.highlight-desc p {
	color: var(--blackColor);
	font-size: 13px;
}

.highlight-card:hover{
	background-color: var(--secondaryColor);
	box-shadow: rgba(176, 176, 176, 0.2) 0px 2px 8px 0px;
	transition: 0.3s ease-in-out;
}

.main-menus {
	min-height: 100%;
	background-color: var(--greyColor);
	padding: 2% 2% 4%;
	border-radius: 8px;
	border: 2px solid var(--blackColor);
	/*z-index: -1;*/
}

.shop-menus {
	min-height: 100%;
	background-color: var(--greyColor);
	padding: 2% 2% 14%;
	border-radius: 8px;
	border: 2px solid var(--blackColor);
	/*z-index: -1;*/
}

.main-filter {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-top: 0rem;
	gap: 1rem;
}

.farm-filter {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-top: 0rem;
	gap: 1rem;
}

.farmericon {
	width: 60px;
	border-radius: 8px;
}

.home-box {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: left;
	margin-top: 0rem;
	gap: 1rem;
}

.back-menus, .next-menus {
	cursor: pointer;
}

.back-menus:hover , .next-menus:hover {
	color: var(--secondaryColor);
}

/*.highlight-wrapper {
	width: 100%;
	display: flex;
	padding: 1%;
	border-radius: 8px;
	gap: 1.5rem;
	overflow-x: hidden;
}*/

.filter-wrapper {
	display: flex;
	/*justify-content: flex-start;*/
	width: 100%;
	height: 100px;
	gap: 1rem;
	overflow-x: hidden;
}

.farm-filter-wrapper {
	display: flex;
	width: 100%;
	height: 100px;
	gap: 1rem;
	overflow-x: hidden;
}

.filter-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	min-width: 100px;
	/*width: 80%;*/
	height: 100%;
	background-color: var(--whiteColor);
	color: var(--blackColor);
	border-radius: 8px;
	border: 3px solid var(--blackColor);
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	padding-right: 2px;
	padding-left: 2px;
}

.how-wrapper {
	/*justify-content: flex-start;*/
	display: flex;
	flex-direction: column;
	gap: 0px;
	overflow-x: hidden;
	align-items: left;
}

.how-line {
	display: flex;
	flex-direction: row;
	/*display: table; 
	width: 100%;
	border-spacing: 10px;*/
}

.how-underline {

	padding: 0px;
	display: flex;
    align-items: center;
    justify-content: start;
}

.how-card {
	display: flex;
	flex-direction: column;
	/*display: table-cell; 
	vertical-align: middle; */
	align-items: left;
	height: 100%;
	/*width: 500px;*/
	background-color: var(--whiteColor);
	color: var(--blackColor);
	border-radius: 8px;
	border: 3px solid var(--blackColor);
	font-size: 20px;
	font-weight: bold;
	text-align: left;
	padding: 10px;
	margin: 20px;
}

.how-step {
	display: flex;
	justify-content: center;
	/*display: table-cell;*/
	/*vertical-align: middle;*/
	align-items: center;
	min-width: 70px;
	min-height: 70px;
	max-width: 70px;
	max-height: 70px;
	height: 100%;
	margin-top: 25px;
	white-space: nowrap;
	background-color: var(--whiteColor);
	font-size: 40px;
	color: var(--primaryColor);
	text-decoration: none;
	border-radius: 50%;
	border: 3px solid var(--blackColor);
}

.how-title {
	font-size: 28px;
}

.how-subtext {
	font-size: 15px;
}

.how-undertext a {
	color: var(--blackColor);
	text-decoration: none;
	font-size: 24px;
	font-weight: bold;
	display: flex;
	flex-direction: column;
	align-items: left;
	height: 100%;
	/*background-color: var(--whiteColor);*/
	/*border-radius: 8px;*/
	/*border: 3px solid var(--blackColor);*/
	font-weight: bold;
	text-align: bottom;
	vertical-align: bottom;
	padding: 5px;
	margin: 20px;
}

.how-understep {
	display: flex;
	/*display: table-cell;*/
	/*vertical-align: middle;*/
	align-items: center;
	min-width: 70px;
	min-height: 70px;
	max-width: 70px;
	max-height: 70px;
	height: 100%;
	margin-top: 0px;
	margin-right: -40px;
	white-space: nowrap;
	/*background-color: var(--whiteColor);*/
	font-size: 40px;
	color: var(--primaryColor);
	text-decoration: none;
	/*border-radius: 50%;*/
	/*border: 3px solid var(--blackColor);*/
}

.how-icon a {
	text-decoration: none;
	color: var(--primaryColor);
	vertical-align: top;
}

.filter-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 60%;
	font-size: 30px;
	background-color: var(--whiteColor);
	color: var(--primaryColor);
	border-radius: 8px;
	z-index: 0;
	pointer-events: none;
}

.filter-card:hover {
	background-color: var(--secondaryColor);
	color: var(--whiteColor);
	transition: 0.3s ease-in-out;
}

.filter-card:hover .filter-icon {
	background-color: var(--secondaryColor);
	transition: 0.3s ease-in-out;
}

.filter-card {
	list-style-type: none;
	z-index: 1;
}

.active .filter-icon {
	background-color: var(--secondaryColor);
	transition: 0.3s ease-in-out;
}

.active{
	background-color: var(--secondaryColor);
	transition: 0.3s ease-in-out;
	color: var(--whiteColor);
}

.divider {
	margin: 1rem 0;
	height: 4px;
	width: 100%;
	background-color: var(--primaryColor);
	border: none;
	border-radius: 2px;
}

.main-detail {
	margin: 2rem 0 20rem 0;
}

.detail-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	width: 100%;
	margin-top: 1rem;
	gap: 2%;
	border-radius: 8px;
}

.detail-card {
	position: relative;
	min-height: 280px;
	height: 100%;
	max-width: 340px;
	background-color: var(--whiteColor);
	border-radius: 8px;
	margin: 1% 0;
	box-shadow: rgba(176, 176, 176, 0.2) 0px 2px 8px 0px;
	cursor: pointer;
	animation: displayable 0.5s ease-in-out;
}

.detail-img {
	width: 100%;
	height: 180px;
	border-radius: 8px;
	object-fit: cover;
	object-position: center;
	filter: brightness(0.8);
}

.detail-desc {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 3%;
	width: 100%;
}

.detail-desc button {
	float: right;
}

.button-wrapper {
	display: flex;
	justify-content: flex-end;
	/* margin-right: 100px;
	white-space: nowrap; */
}

.detail-sub {
	font-size: 13px;
	color: var(--blackColor);
	letter-spacing: 0.5;
	margin: 1% 0;
}

.price {
	color: var(--primaryColor);
}


.quantity{
	position: absolute;
	right: 10px;
	bottom: 10px;
	color: var(--blackColor);
	font-size: 16px;
	/* font-weight: bold; */
	/* white-space: nowrap; */
	background-color: transparent;
	border: 2px solid var(--blackColor);
	padding: 2px;
	border-radius: 3px;
	cursor: pointer;
}

.detail-favorites{
	font-size: 24px;
	color: var(--solidgreenColor);
}

.detail-favorites-remove{
	font-size: 24px;
	color: var(--primaryColor);
}

.detail-favorites:hover {
	color: var(--blackColor);
}

.detail-favorites-remove:hover {
	color: var(--blackColor);
}

.detail-card:hover {
	box-shadow: rgba(149, 157, 165, 0.6) 0px 8px 24px;
}

.detail-card:hover .detail-img {
	filter: opacity(1);
}

.detail-card:hover .detail-name h4 {
	color: var(--primaryColor);
}

/*For Shopping Cart*/
.cart-count{
	font-size: 13px;
}

.cart-popup {
	display: none;
	position: fixed;
	height: auto;
	max-width: 370px;
	max-height: 300px;
	/* overflow-x: hidden; */
	top: 15%;
	right: 1%;
	background-color: var(--whiteColor);
	font-size: 16px;
	padding: 10px;
	border-radius: 8px;
	z-index: 100;
	box-shadow: rgba(0, 107, 245, 0.38) 0px 20px 50px;
}


.cart-popup.active3 {
	display: block;
}

.cart-table {
	max-width: 350px;
	max-height: 200px;
	overflow-x: hidden;
}

/*Hide item ID*/
.item-code {
	display: none;
}

#cart-header {
	position: sticky;
	top: 0px;
	background-color: var(--whiteColor);
}

#cart-footer {
	position: sticky;
	bottom: 0px;
	background-color: var(--whiteColor);
}

#cart-items {
	margin-top: 10px;
	font-size: 14px;
	border-collapse: collapse;
}

#cart-items th {
	min-width: 50px;
	background-color: var(--primaryColor);
	color: var(--whiteColor);
	padding: 3px;
}
	
#cart-items tr:nth-child(even) {
	background-color: var(--softyellowColor);
}

#cart-items td {
	min-width: 50px;
	padding: 2px;
	text-align: right;
}

/* -- FAQ List --*/

dl.faqlist {
	list-style-type: circle;
}

.faqbox {
	display: block;
	justify-content: center;
	align-items: center;
}

.faqtitle {
	font-size: 35px;
	justify-content: center;
	align-items: center;
}

.faqsubtitle {
	font-size: 30px;
	line-height: 3;
}

.faqanswer {
	font-size: 20px;
	line-height: 1;
}

/* -- Success Display */
.succ-box {
	justify-content: center;
	align-items: center;
	font-size: 30px;
}

.success-items {
	margin-top: 10px;
	font-size: 30px;
	border-collapse: collapse;
	justify-content: center;
	align-items: center;
}

.success-items th {
	min-width: 50px;
	background-color: var(--primaryColor);
	color: var(--whiteColor);
	padding: 5px;
}
.success-items h2 {
	justify-content: right;
	align-items: right;
	font-size: 35px;
}
	
.success-items tr:nth-child(even) {
	background-color: var(--softyellowColor);
}

.success-items td {
	min-width: 50px;
	padding: 20px;
	text-align: left;
	font-size: 24px;
}

.success-items p {
	display: flex;
	justify-content: space-between;
	font-size: 35px;
	padding: 30px;
	font-weight: 600;
}

.order-sum td {
	font-weight: bold;
	font-size: 26px;
}

.map_desc {
	font-size: 20px;
}

.about_desc {
	font-size: 20px;
	margin-bottom: 10px;
}

.about_subtitle {
	font-size: 24px;
	margin-bottom: 30px;
}

.about-box {
	padding: 15px;
}

.about-pic {
	max-width: 80%;
	max-height: 80%;
}

.cont-pic img {
	max-width: 5%;
	max-height: 5%;
	justify-content: right;
}

.order-title a {
	text-decoration: none;
	color: var(--blackColor);
}

.order-title a:hover {
	color: var(--secondaryColor);
}

/* -- END Success Display */


.cart-popup p {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	padding: 5px;
	font-weight: 600;
}

.cart-close {
	position: absolute;
	top: 0px;
	right: 10px;
	cursor: pointer;
	text-decoration: none;
	font-size: 20px;
	color: var(--blackColor);
}

.cart-close:hover {
	color: var(--primaryColor);	
}

.add-to-cart-btn {
	background-color: transparent;
	border: none;
	outline: none;
	cursor: pointer;
}

.add-to-cart-btn.unactive {
	display: none;
}

.remove-item-btn {
	display: none;
}

.remove-item-btn.active4 {
	display: block;
	background-color: transparent;
	border: none;
	outline: none;
	cursor: pointer;
}

/* + - Buttons next to items in cart*/

.add-line-item {
	background-color: transparent;
	border: none;
	outline: none;
	cursor: pointer;	
}

.add-line-item.unactive {
	display: none;
}

.adding-item {
	color: var(--greenColor);
	font-size: 20px;
}

.adding-item:hover {
	color: var(--blackColor);
}

.remove-line-item {
	background-color: transparent;
	border: none;
	outline: none;
	cursor: pointer;
}

.removing-item {
	color: var(--primaryColor);
	font-size: 20px;
}

.removing-item:hover {
	color: var(--blackColor);
}

/* Place order button in cart*/

.btn-buy {
	display: none;
}

.btn-buy.active5{
	display: block;
	background-color: var(--primaryColor);
	color: var(--whiteColor);
	border: 2px solid var(--blackColor);
	font-weight: bold;
	font-size: 16px;
	border-radius: 6px;
	width: 100px;
	height: 30px;
	cursor: pointer;
}

.btn-buy.active5:hover {
	background-color: var(--solidgreyColor);
	transition: 0.1s ease-in-out;
}

/* mobile view */
@media  screen and (max-width:640px) {
	
	.search {
		width: 40%;
		min-width: 150px;
	}
	
	.cart-popup {
		position: fixed;
		height: auto;
		width: auto;
		max-width: 320px;
	}
	
	.sidebar{
		display: none;
	}
	
	.nav {
		display: grid;	
	}
	
	.detail-wrapper {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
		margin-top: 0;
		gap: 15px;
	}
	
	.detail-card {
		margin: 0;
	}
	
	.main {
		margin-left: 0;
		margin-bottom: auto;
	}
	
	.menu-toggle {
		display: block;
		text-decoration: none;
		font-size: 20px;
		background-color: var(--whiteColor);
		color: var(--primaryColor);
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 0 10px;
		height: 40px;
		border-radius: 50%;
		z-index: 3;
		border: 1.5px solid var(--primaryColor);
	}
	
	.sidebar.active2 {
		display: flex;
		z-index: 10;
	}
	
	.map-box {
		width: 320;
		height: 240;
	}
}

/* filter-card fade in and out animation */
@keyframes displayable{
	0%{
		opacity: 0;
	}
	100%{
		opacity: 1;
	}
}