/* color-variables */
:root {
	--color-primary: #B7616E;
	--text-font: "Martel Sans", sans-serif;
	--title-font: "Cormorant Garamond", serif;
}

/* Base */
body {
	/* Display & Box Model */ 
	margin: 0;
}

a {
	/* Other */
	color: #000;
	text-decoration: none;
}

ul, nav {
	/* Positioning */
	margin: 0;
    padding: 0;
	
	/* Flex */
	flex-direction: column;
	justify-content: center;

	/* Display & Box Model */
	list-style: none;
	font-family: var(--text-font);
	row-gap: 1rem;
}

.site-nav.nav-visible {
	/* Positioning */
	position: absolute;
	right: 0;
	z-index: 1;

	/* Display & Box Model */
	display: block; 
	margin-left: 2rem;
	padding: 2rem;
	width: 100%;
	
	/* Other */
	background-color: white;

	li, input {
		/* Display & Box Model */
		margin-left: 4rem;
	}
}

/* Modal */

.modal {
	display: none;
}

.modal-container {
	/* Flex */
	display: flex;
	justify-content: center;
	
}

.modal.modal-visible { 
	/* Positioning */
	position: absolute;
	z-index: 2;

	/* Flex */
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;

	/* Display & Box Model */
	margin-top: 3rem;
	padding: 2rem;
	/* Other */
	background-color: white;
}

.modal-overlay.modal-overlay-visible{
  	/* Positioning */
  	position: fixed;
  	top: 0;
  	bottom: 0;
  	left: 0;
 	right: 0;
 	z-index: 1;

  	/* Display & Box Model */
  	width: 100%;
  	height: 100%;

	/* Other */
  	background: rgba(0, 0, 0, 0.5);
}

.modal-title {
	/* Other */
	font-family: var(--title-font);
	text-align: center;
}

.modal-price, 
.modal-description {
	/* Other */
	text-align: center;
	font-family: var(--text-font);
}

.modal-price {
	/* Other */
	font-weight: 700;
}

/* Divider */
.divider {
	/* Flex*/
  	display: flex;
  	align-items: center;
}

.divider::before, .divider::after {
	flex: 1;
	content: '';
	padding: 0.5px;
	margin: 5px;
	background-color: #E5E5E5;
}

/* Layout */

.l-header {
	box-shadow: 0px 9px 31px rgb(0 0 0 / 14%);
}

.l-constrained {

	h2 {
		/* Display & Box Model */
		margin-left: 1rem;
        margin-right: 1rem;

		/* Other */
		font-family: var(--title-font);
		text-align: center;
	}
}

/* Modules */
.header-logo {
	/* Flex */
	display: flex;
	justify-content: center;

	margin: 2rem 0 1rem 0;
}

.hamburger-icon {
	width: 1.5rem;
}

.header-content {
	/* Flex */
	display: flex;
	justify-content: space-between;

	margin: 0 1rem 0 1rem;
}

.header-search {
	/* Flex */
	display: flex;
	align-items: center;
}

.search-icon {
	width: 0.8rem;
}

.site-nav {
	display: none;
}


/* Products */
.product-gallery {
	/* Grid */
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	place-items: center
}

.product-item {
	/* Flex */
	display: flex;
	flex-direction: column;
	align-items: center;

	/* Display & Box Model */
	margin: 1rem 0 1rem 0;

	/* Other */
	text-align: center;
}

.product-item__price {
	/* Other */
	font-family: var(--text-font);
	font-weight: 700;
}

.product-item__buttons {
	/* Flex */
	display: flex;
	justify-content: center;
	column-gap: 1rem;
	/* Display & Box Model */
	margin-top: 0.5rem;
}

.product-item__description {
	/* Display & Box Model */
	margin-bottom: 0.5rem;
	/* Other */
	font-family: var(--text-font);
	color: #676767;
}

/* Buttons */
.btn {
	/* Display & Box Model */
	border: 1px solid #C0C0C0;
	padding: 0.3rem 1.5rem 0.1rem 1.5rem;

	/* Other */
	font-family: var(--text-font);
	color: #C0C0C0;
}

.btn--primary {
	/* Display & Box Model */
	border: 1px solid #B7616E;
	/*Other*/
	font-family: var(--text-font);
	color: #B7616E;
}

#menu-btn {
	/* Display & Box Model */
	border: none;
	/* Other */
	background-color: transparent;
}

.close-btn {
	/* Positioning */
	position: absolute;
	top: 1;
	right: 1;
	/* Flex */
	display: flex;
	flex-direction: column;
	align-items: center;
	/* Display & Box Model */
	border: none;
	/* Other */
	background-color: transparent;

	img {
		width: 1.2rem;
	}

}

.modal-btn {
	/* Display & Box Model */
	border: 1px solid #B7616E;
	padding: 0.3rem 1.5rem 0.1rem 1.5rem;
	width: 10rem;

	/* Other */
	font-family: var(--text-font);
	color: #B7616E;
	background-color: transparent;
}

/* States */
.js-search-input {
	/* Display & Box Model */
	border: none;
	width: 4rem;

	/* Other */
	color: #C0C0C0;
	font-family: var(--text-font);
}

/* Startpage */
.startpage-hero {
	/* Flex */
	display: flex;
	flex-direction: row;
	justify-content: center;
	/* Display & Box Model */
	width: 100%;
	margin-top: 1rem;

	img {
		display: none;
	}
}

.text-dot {
	/* Positioning */
	display: inline-block;
	/* Display & Box Model */
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 3rem;
	margin: 0 0.5rem 0.2rem 0.5rem;
	/* Other */
	background-color: #B7616E;
}

.hero-text {
	/* Flex */
	display: flex;
	flex-direction: column;
	justify-content: center;
    align-items: center;
	row-gap: 1.5rem;

	h2 {
		/* Display & Box Model */
		margin: 0;
		/* Other */
		font-family: var(--title-font);
		text-align: center;
		font-size: 2rem;
		font-weight: 700;
	}

	p {
		/* Display & Box Model */
		margin: 0;
		/* Other */
		font-family: var(--text-font);
		text-align: center;
		font-size: 0.9rem;
		color: #323232;
	}

	a {
		/* Display & Box Model */
		border: solid 1px #B7616E;
		padding: 0.5rem 2rem 0.5rem 2rem;
		margin-bottom: 1rem;
		/* Other */
		color: #B7616E;
		text-align: center;
		font-size: small;
		font-family: var(--text-font);
	}

	
}

.startpage-banner {
	/* Display & Box Model */
	width: 100%; 
	padding: 1rem 0 1rem 0;
	/* Other */
	background-image: url(../images/glitter-banner.png);
	background-size: cover;
	background-position: center; 
	background-repeat: no-repeat;

	h1 {
		/* Display & Box Model */
		margin: 0 1rem 0 1rem;
		/* Other */
		font-family: var(--title-font);
		color: white;
		text-align: center;
		font-size: 1.5rem;
	}

	p {
		/* Dispaly & Box Model */
		margin-bottom: 0;
		/* Other */
		font-family: var(--text-font);
		color: #C0C0C0;
		text-align: center;
		font-size: 0.9rem;
	}
	
}

/* Helpers */
.is-hidden {
	display: none;
}
.is-visible {
	display: block;
}

/* Media queries */

/* Tablets */
@media all and (min-width: 426px) and (max-width: 960px) {
	.product-gallery {
		/* Grid */
		grid-template-columns: repeat(2, 1fr);
	}

	.startpage-hero {
		/* Flex */
		justify-content: space-between;
		/* Display & Box Model */
		margin-top: 0;

		img {
			/* Display & Box Model */
			display: block;
			width: 25%;
		}
	}
}

/* Desktop */
@media all and (min-width: 961px) {

	/* Layout */
	.l-constrained {
		/* Display & Box Model */
		max-width: 1150px;
		margin: 0 auto;
	}

	#menu-btn {
		/* Display & Box Model */
		display: none;
	}

	.site-nav {
		/* Flex */
		display: flex;
		flex-direction: row;
		column-gap: 2rem;
		justify-content: center;
		flex-wrap: wrap;
	}

	.header-content {
		/* Flex */
		display: flex;
		justify-content: center;
	}

	.l-header {
		/* Display & Box Model */
		padding-bottom: 1rem;
		/* Other */
		background-color: white;
	}

	.header-logo {
		/* Display & Box Model */
		margin: 1rem 0 1rem 0;
	}

	.header-search {
		/* Flex */
		column-gap: 1rem;
	}

	.hero-text {
		h2 {
			/* Other */
			font-size: 4rem;
		}

		p {
			/* Other */
			font-size: 1.4rem;
		}

		a {
			/*Display & Box Model*/
			padding: 0.5rem 4rem 0.5rem 4rem;
			/* Other*/
			font-weight: 700;
		}

	}

	.header-wrapper {
		/* Flex */
		display: flex;
		flex-direction: row;
	}

	/* Products */
	.product-gallery {
		/* Grid */
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		place-items: center;
		/* DIsplay & Box Model */
		margin-bottom: 2rem;
	}


	.startpage-banner {
		/* Display & Box Model */
		padding: 1.5rem 0 1.5rem 0;

		h1 {
			/* Display & Box Model */
			margin: 0;
			/* Other */
			font-size: 2.3rem;
		}

		p {
			/* Display & Box Model */
			margin: 0;
			/* Other */
			font-size: medium;
		}
	}

	.startpage-hero {
		/* Flex */
		justify-content: space-between;
		/* Display & Box Model */
		margin-top: 0;
		img {
			display: block;
			/* Display & Box Model */
			width: 25%;
		}
	}

	.site-nav.nav-visible {
		/* Flex */
		display: flex;
	}

	.product-title {
		/* Other */
		font-size: 2rem;
	}
	
}