:root {
	--clr-primary-400: hsl(179, 33%, 51%);
	--clr-primary-500: hsl(179, 33%, 21%);
	--clr-secondary-200: hsl(136, 8%, 73%);

	--clr-neutral-900: hsl(212, 23%, 14%);
	--clr-neutral-400: hsl(228, 12%, 48%);
	--clr-neutral-100: hsl(0, 0%, 100%);

	--ff-accent: "Righteous", cursive;
	--ff-base: "Rubik", sans-serif;

	--fw-regular: 500;
	--fw-bold: 700;
}

/* Use a more-intuitive box-sizing model. */
*,
*::before,
*::after {
	box-sizing: border-box;
	/* border: 3px solid red; */
}
/* Remove default margin*/
* {
	margin: 0;
}
/* Allow percentage-based heights in the application*/
html,
body {
	height: 100%;
}
/* Add accessible line-height & Improve text rendering
*/
body {
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}
/* Remove built-in form typography styles */
input,
button,
textarea,
select {
	font: inherit;
}
/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

h1,
h2,
h3 {
	line-height: 1;
}

/* HERE STARTS MY Style */

body {
	font-family: var(--ff-base);
	font-weight: var(--fw-regular);
	font-size: 0.875rem;
	color: var(--clr-neutral-400);
	background-color: var(--clr-secondary-200);

	/* This ensures the website shows the content where intended, depending on the screen*/
	display: grid;
	place-content: center;
	margin: 1rem;
}

/* Utilities*/
.flex-group {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	align-items: center;
}

.visually-hidden:not(:focus):not(:active) {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
}

/* button */
.button {
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	gap: 0.75rem;
	justify-content: center;
	align-items: center;

	border: 0;
	border-radius: 0.5rem;
	padding: 0.75em 1.5em;
	background-color: var(--clr-primary-400);
	color: var(--clr-neutral-100);
	font-weight: var(--fw-bold);
	font-size: 0.925rem;
}

.button:is(:hover, :focus) {
	background-color: var(--clr-primary-500);
}

.button[data-icon="shopping-cart"]::before {
	content: "";
	background-image: url("./assets/shopping-cart.svg");
	width: 15px;
	height: 15px;
	color: white;
}

/* product styles */
.product {
	/* this is a variable available for all the children of the article with class product */
	--content-padding: 1.5rem;
	--content-spacing: 1rem;

	display: grid;
	background-color: var(--clr-neutral-100);
	border-radius: 0.5rem;
	overflow: hidden;
    max-width: 1000px;
}

@media (min-width: 1000px) {
	.product {
		grid-template-columns: 1fr 1fr;
	}
}
.product__content {
	display: grid;
	gap: var(--content-spacing);
	padding: var(--content-padding);
}

.product__category {
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 5px;
}

.product__title {
	font-size: 2rem;
	font-family: var(--ff-accent);
	color: var(--clr-neutral-900);
}

.product__price {
	font-size: 2rem;
	font-family: var(--ff-accent);
	color: var(--clr-primary-400);
}
