/* Desktop Layout */
body {
	font-family: Playfair Display;
	font-size: 20px;
	line-height: 1.3;
	background-color: #f4f4f4;
	color: black;
}

header {
	background-color: black;
	border-top: solid 5px #feea34;
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header h1 {
	width: 75px;
}

a {
	text-decoration: none;
}

.container {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.hero {
	background-image: url("hero.jpg");
	padding-top: 110px;
	padding-bottom: 120px;
	background-size: cover;
	background-position: right center;
}

.hero h2 {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 20px;
}

.hero p {
	font-size: 24px;
}

.intro {
	max-width: 440px;
}

.hero {
	margin-bottom: 30px;
}

.filters {
	margin-bottom: 20px;
}

.filters li {
	display: inline;
}

.show-filters {
	display: none;
}

.filters a {
	color: black;
	font-size: 16px;
	margin-right: 15px;
}

.filters .selected {
	font-weight: 800;
	border-bottom: solid 3px #feea34;
	padding-bottom: 1px;
}

.products .container {
	display: flex;
	flex-wrap: wrap;
}

.product {
	width: 33.333%;
	position: relative;
}

.products {
	margin-bottom: 60px;
}

.overlay {
	opacity: 0;
	position: absolute;
	background-color: rgba(254, 234, 51, 0.7);
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	padding: 15px;
	transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product:hover .overlay {
	opacity: 1;
}

.product h4,
.product p {
	font-weight: 800;
}

.product p {
	font-size: 36px;
	position: absolute;
	bottom: 15px;
	left: 15px;
}

.product h4 {
	font-size: 18px;
}

.filters .show-filters {
	color: #bfbfb7;
}


/* Tablet Layout */
@media (max-width: 860px){
	.hero {
		padding-top: 55px;
		padding-bottom: 60px;
	}

	.product {
		width: 50%;
	}

	.container {
		padding-left: 40px;
		padding-right: 40px;
	}
}


/* Mobile Layout */
@media (max-width: 770px){
	.hero {
		background-image: none;
		background-color: #bfbfb7;
		padding-top: 30px;
		padding-bottom: 30px;
	}

	.intro {
		max-width: none;
	}
}


/* Mobile Layout */
@media (max-width: 540px){
	.intro h2 {
		font-size: 18px;
		margin-bottom: 10px;
	}

	.intro p {
		font-size: 16px;
	}

	.container {
		padding-left: 20px;
		padding-right: 20px;
	}
}


@media (max-width: 480px){
	body {
		font-size: 16px;
	}

	.product{
		width: 100%;
		margin-bottom: 20px;
	}

	.filters li,
	.show-filters {
		display: block;
	}

	.filters li {
		margin-bottom: 3px;
	}

	.show-filters {
		margin-bottom: 5px;
	}

	.filters-list {
		display: none;
	}

}


@media (min-width: 480px){
	.filters-list {
		/* using the important rule makes sure a style gets applied
		regardless of how specific it is */
		display: block !important;
	}
}