:root {
	--white: #fff;
	--lt-gray: #f8f8f8;
	--gray: #eaeaea;
	--black: #222;
	--purple: #6a1685;
	--green: #3e7f6d;
	--pink: #bb4275;
	--mint: #7cc7b0;
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	padding: 0;
	margin: 0 0 2.5rem;
	font-family: "Outfit", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 100%;
	line-height: 1.65;
	color: var(--black);
	background-color: var(--lt-gray);
}

figure {
	margin: 0;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3 {
	margin: 0;
}

p {
	margin: 0 0 1rem;
	font-size: clamp(1rem, 2vw, 1.25rem);
}

p:last-of-type {
	margin: 0;
}

button {
	margin: 1rem 0;
}

/* Header */
.header {
	position: sticky;
	top: 0;
	padding: 0.5rem;
	background-color: var(--white);
	box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 10%);
}

/* <nav> */
.navigation {
	max-width: 75rem;
	margin: 0 auto;
}

/* <ul> */
.main_menu {
	padding: 0;
	margin: 0;
	list-style-type: none;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-evenly;
	align-items: center;
}

/* <li> <a href> */
.nav_item a {
	display: block;
	padding: 0.75rem;
	font-size: 1.25rem;
	text-decoration-color: transparent;
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--black);
	transition: all 300ms ease-in-out;
}

/* focus, hover, active pseudo-classes */
.nav_item a:focus,
.nav_item a:hover,
.nav_item a:active {
	color: var(--pink);
	text-decoration-color: var(--pink);
}

/* <button> */
.menu_button {
	display: none;
	padding: 0;
	background-color: transparent;
	border: none;
	cursor: pointer;
}

/* <svg> */
svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
	stroke: var(--black);
	transition: stroke 300ms ease-in-out;
}

/* Responsive Nav */
@media (max-width: 768px) {
	.menu_button {
		display: block;
		border-radius: 5px;
		transition: background-color 300ms ease-in-out;
	}

	.menu_button:focus,
	.menu_button:hover,
	.menu_button:active {
		background-color: var(--pink);
	}

	.menu_button:focus svg,
	.menu_button:hover svg,
	.menu_button:active svg {
		stroke: var(--white);
	}

	.open_button {
		margin-left: auto;
	}

	.close_button {
		margin: 0.5rem auto 0.5rem 0.5rem;
	}

	.menu_active .open_button {
		visibility: hidden;
	}

	.navigation {
		visibility: hidden;
		opacity: 0;
		position: fixed;
		top: 0;
		right: -300px;
		width: 300px;
		max-width: 100%;
		height: 100vh;
		background-color: var(--white);
		box-shadow: 0 0 0 0;
		pointer-events: none;
		transform: translateX(0);
		transition: transform 300ms ease-in-out, visibility 300ms ease-in-out;
	}

	.navigation.active {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		box-shadow: -1px 0 1px 1px rgba(0, 0, 0, 10%);
		transform: translateX(-100%);
	}

	.main_menu {
		flex-direction: column;
		border-top: 3px dotted var(--gray);
	}

	.nav_item {
		width: 100%;
		text-align: center;
		border-bottom: 3px dotted var(--gray);
	}
}

/* Main Container */
.main {
	max-width: 75rem;
	padding: clamp(1rem, 3vw, 2.5rem);
	margin: clamp(1rem, 4vw, 5rem) auto 2.5rem;
	background-color: var(--white);
	border-top: 5px solid var(--mint);
	border-bottom: 5px solid var(--gray);
}

.background-image {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	background-image: url(../images/geometric.png);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
	aspect-ratio: 3 / 1;
	z-index: -1;
}

.primary-heading {
	margin: 1vw 0 clamp(1rem, 3vw, 3rem);
	font-size: clamp(2.5rem, 6vw, 4rem);
	line-height: 1.25;
	color: var(--pink);
}

.secondary-heading {
	margin: 1.5rem 0;
	font-size: 2rem;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--purple);
}

.tertiary-heading {
	margin: 1.5rem 0;
	font-size: 1.5rem;
	line-height: 1.25;
	color: var(--green);
}

/* Section Grid */
.section-grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 2rem;
}

/* Product Grid */
.product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.product .figure {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
}

.figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.footer {
	text-align: center;
}

@media (max-width: 75rem) {
	.main {
		max-width: calc(100% - 2rem);
	}
}

@media (max-width: 960px) {
	.background-image {
		aspect-ratio: 1 / 1;
	}
}

/* Product Meta */
.product_meta,
.product_meta-wrap {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.product_meta {
	margin: 1rem 0;
}

/* Product Buttons */
.load_more-button {
	display: none;
	width: 200px;
	max-width: 100%;
	margin: 0 auto;
	grid-column: span 3;
}

.load_more-button.more_active {
	display: block;
}

/* Category Filter */
form ul {
	padding: 0;
	margin: 0;
	list-style-type: none;
}

form input[type="checkbox"] {
	margin-right: 10px;
}

form input[type="search"] {
	width: 100%;
}

/* Products */
.product .sale,
.product .regular {
	display: inline-block;
}

.product .sale {
	margin-right: 10px;
}

.product .sale + .regular {
	text-decoration: line-through;
}
