/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: hsl(30, 38%, 92%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 10px;
}

.product-image {
  height: 500px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image-mobile {
  display: none;
  /* width: 100%;
  height: 100%;
  border-radius: 10px 10px 0 0; */
}

/* .product-image {
  width: fit-content;
  border-radius: 10px 10px 0 0;
} */

.product-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.7rem;
  background-color: #fff;
  height: 100%;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.perf {
  /* font-family: Montserrat; */
  color: hsl(228, 12%, 48%);
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  margin: 0;
  padding: 0;
}

.product-name {
  font-family: Fraunces, serif;
  font-size: 2.5rem;
  line-height: 1;
  /* font-weight: 700; */
  padding: 0;
  margin: 0;
}

.description {
  color: hsl(228, 12%, 48%);
  font-size: 1.25rem;
  margin: 0;
  padding: 0;
}

.price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.new-price {
  font-size: 2.28em;
  font-family: "Fraunces", serif;
  color: hsl(158, 36%, 37%);
  margin: 0;
  padding: 0;
}

button {
  background-color: hsl(158, 36%, 37%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  /* font-weight: 700; */
  /* font-size: 0.9rem; */
  cursor: pointer;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
  margin: 0;
}

button:hover {
  background-color: #1f5d3a;
}

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 800px) {
  .container {
    display: grid;
    height: 100%;
    border-radius: 10px;
    margin: 1rem 0.75rem;
  }
  .product-info {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  .product-image {
    display: none;
  }
  .product-image-mobile {
    display: flex;
    width: 700px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
  }
}
