@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,700,0..100,0..1&display=swap');


:root {
  --rem: 14px;
  --max-width: 38em;
  --padding: 1em;
  --margin: 1em;
  /* primary colors */
  --green500: hsl(158, 36%, 37%);
  --green700: hsl(158, 42%, 18%);
  /* neutral colors */
  --black: hsl(212, 21%, 14%);
  --gray: hsl(228, 12%, 48%);
  --cream: hsl(30, 38%, 92%);
  --white: hsl(0, 0%, 100%);
  --blue: hsl(228, 45%, 44%);
}

*, *::after, *::before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.mont700 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-style: normal;
}

.mont500 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-style: normal;
}

.frau700 {
  font-family: 'Fraunces', sans-serif;
  font-weight: 700;
  font-style: normal;
}

.gray {
  color: var(--gray);
}

.black {
  color: var(--black);
}

.green {
  color: var(--green500);
}

body {
  display: flex;
  flex-flow: column;
  min-height: 100vh;
  height: 100%;
  padding: 1rem;
  background-color: var(--cream);
}

.main-wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  background-color: var(--white);
  border-radius: 15px;
  display: flex;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
}

picture {
  display: block;
  width: 50%;
}

@media (max-width: 645px) {
  .main-wrapper {
    flex-direction: column;
  }
  picture { 
    width: 100%;
  }
}

picture img {
  display: block;
  width: 100%;
  height: 100%;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

@media (max-width: 645px) {
  .product-image {
    width: 100%;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 0px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: 2em;
  width: 50%;
}

@media (max-width: 645px) {
  .content-wrapper{
    width: 100%;
  }
}

.product-title {
  text-transform: uppercase;
  letter-spacing: 5px;
}

.price-tag {
  display: flex;
  width: 100%;
  gap: 1em;
  align-items: center;
}

.price-tag > p {
  text-decoration: line-through;
}

button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5em;
  width: 100%;
  background-color: var(--green500);
  font-size: var(--rem);
  padding: 1.2em;
  border: none;
  border-radius: 15px;
  color: var(--white);
}

button > img {
  width: 5%;
}

button:focus, button:hover {
  background-color: var(--green700);
  cursor: pointer;
}

.attribution {
  font-size: 11px; 
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin-top: auto;
  max-width: var(--max-width);
  width: 100%;
  z-index: -1;
  padding: 10px;
}

.attribution a {
  color: var(--blue);
  text-decoration: underline;
}

.attribution a:hover {
  cursor: pointer;
}