/* # Front-end Style Guide

## Layout

The designs were created to the following widths:

- Mobile: 375px
- Desktop: 1440px

## Colors

### Primary

- Dark cyan: hsl(158, 36%, 37%)
- Cream: hsl(30, 38%, 92%)

### Neutral

- Very dark blue: hsl(212, 21%, 14%)
- Dark grayish blue: hsl(228, 12%, 48%)
- White: hsl(0, 0%, 100%)

## Typography

### Body Copy

- Font size (paragraph): 14px

### Font

- Family: [Montserrat](https://fonts.google.com/specimen/Montserrat)
- Weights: 500, 700

- Family: [Fraunces](https://fonts.google.com/specimen/Fraunces)
- Weights: 700 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

h2,
h3 {
  font-family: "Fraunces", serif;
}

p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  color: hsl(228, 12%, 48%);
  margin: 0;
  padding: 0;
}

.main-container {
  background-color: hsl(30, 38%, 92%);
  height: 100vh;
  width: 100vw;
  display: flex;
  align-content: center;
  justify-content: center;
  flex-direction: column;
  overflow: scroll;
}

.product-card {
  width: 50vw;
  border-radius: 0.625rem;
  background-color: #fff;
  display: flex;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.185);
  align-content: center;
  justify-content: center;
  overflow: hidden;
  margin: auto;
}

/* Product Image */
.product-img-container {
  flex: 0 0 50%;
  background-image: url("../images/image-product-desktop.jpg");
  background-size: cover;
  background-position: center;
}

/* Product Info */

.product-info-card {
  flex: 0 0 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  vertical-align: space-between;
  align-items: start;
}

.product-category {
  text-transform: uppercase;
  letter-spacing: 5px;
}
.product-title {
  color: hsl(212, 21%, 14%);
  font-size: 2rem;
}

.product-description {
  line-height: 2;
}

.price-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.price {
  font-size: 2rem;
  color: hsl(158, 36%, 37%);
  margin-right: 2rem;
}

.price-original {
  text-decoration: line-through;
}

.btn {
  width: 100%;
  background-color: hsl(158, 36%, 37%);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  border: none;
  padding: 1rem 0;
  justify-content: center;
  border-radius: 0.625rem;
}

.btn:hover {
  background-color: hsl(158, 36%, 20%);
}

.icon {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.5rem;
}

/* Attribution */
.attribution {
  font-size: 11px;
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 3rem;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

/* Media Queries */

@media (max-width: 1000px) {
  .product-card {
    width: 75vw;
  }
}

@media (max-width: 660px) {
  .main-container {
    justify-content: start;
    height: auto;
  }

  .product-card {
    flex-direction: column;
    width: auto;
    margin: 5% 5% auto;
  }

  .product-img-container {
    height: 40vh;
    background-position-y: -120px;
    flex: auto;
  }

  .product-info-card {
    flex: auto;
  }

  .product-title {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 460px) {
  .product-img-container {
    background-position-y: -80px;
  }
}
