:root {
  --green-500: hsl(158, 36%, 37%);
  --green-700: hsl(158, 42%, 18%);
  --black: hsl(212, 21%, 14%);
  --grey: hsl(228, 12%, 48%);
  --cream: hsl(30, 38%, 92%);
  --white: hsl(0, 0%, 100%);
  
  /* Typography variables */
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Fraunces", serif;
  --font-weight-regular: 500;
  --font-weight-bold: 700;
}

.montserrat {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
}
.montserrat-bold {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
}

.fraunces {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-regular);
}

.fraunces-bold {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-bold);
}

/* Global styles */

* {
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-size: 1rem;
  background-color: var(--cream);
  color: var(--black);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
}

img {
  max-inline-size: 100%;
  block-size: auto;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: 0.625rem;
}

.product-card__image {
  border-radius: 0.625rem 0.625rem 0 0;
  min-width: 300px;
}

.product-card__image img {
  border-radius: 0.625rem 0.625rem 0 0;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0.625rem;
  padding: 1.5rem;
  gap:1rem;
  
}

h1 {
  font-size: 0.825rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  text-transform: capitalize;
  color: var(--black);
}

p {
  font-size: 0.9rem;
  color: var(--grey);
}

.product-card__price {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.3rem;
  font-size: 1.2rem;
}

.product-card__price--discounted {
  color: var(--green-500);
}

.product-card__price--original {
  font-size: 0.7rem;
  text-decoration: line-through;
  color: var(--grey);
}

.product-card__button img {
  margin-right: 0.5vw;
}

.product-card__button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--green-500);
  color: var(--white);
  font-size: 1.1rem; 
  border-radius: 0.625vw;
  border: none;
  cursor: pointer;
}