@font-face {
  font-family: "font-extrabold";
  src: url("../../fonts/OpenSans-Bold.ttf") format("opentype");
}

@font-face {
  font-family: "font-light";
  src: url("../../fonts/OpenSans-Light.ttf") format("opentype");
}

@font-face {
  font-family: "font-regular";
  src: url("../../fonts/OpenSans-Regular.ttf") format("opentype");
}

@font-face {
  font-family: "font-big";
  src: url("../../fonts/OpenSans-ExtraBold.ttf") format("opentype");
}

html {
  background: #fff;
}

body {
  --color-text: #000;
  --color-bg: #fff;
  --color-link: #d35066;
  --color-link-hover: #000;
  --color-info: #333;
  --color-menu: #031de6;
  --color-menu-hover: #000;
  --grid-columns: 2;
  --details-bg-up: #fff;
  --details-bg-down: #f5f0ef;
  --color-product-title: #000;
  --color-product-subtitle: #a09897;
  --color-details-title: #000;
  --color-details-subtitle: #000;
  --color-descr: #000;
  --color-price: var(--color-link);
  --color-bg-addtocart: #000;
  --color-addtocart: #fff;
  --color-close: #000;
  --color-bg-magnifier: #000;
  --color-magnifier: #fff;
  --color-btn-hover: #c1b3b1;
  font-family: font-regular;
  min-height: 100vh;
  color: #57585c;
  color: var(--color-text);
  background-color: #fff;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: #0058a0;
  outline: none;
}

a:hover,
a:focus {
  color: #FFDC1C;
  -webkit-transition: 0.455s;
  transition: 0.455s;
  outline: none;
}

button:focus {
  outline: none;
}

.hidden {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Icons */
.icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
  margin: 0 auto;
  fill: currentColor;
}

main {
  position: relative;
  width: 100%;
}

.content {
  position: relative;
  display: block;
}

/* Header */
.codrops-header {
  padding: 2em;
  position: relative;
  z-index: 100;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.codrops-header__title {
  font-size: 2em;
  font-weight: bold;
  margin: 0;
  padding: 0.75em 0;
}

.codrops-links {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.codrops-icon {
  display: inline-block;
  padding: 0.25em;
}

.info {
  color: var(--color-info);
  text-align: center;
}

.github {
  display: block;
}

.grid {
  margin: 5em auto 7em;
  position: relative;
  padding: 0 1em;
  width: 100%;
  max-width: 1400px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[var];
      grid-template-columns: repeat(var(--grid-columns), 1fr);
}

.grid__item {
  padding: 0 4vw;
  margin: 0 0 12vh;
}

.category__text {
  grid-column: 1 / -1;
  padding: 0 4vw;
  /* margin: 0 0 10vh; */
  font-size: 2.3em;
  font-family: font-extrabold;
}

/* .grid__item:nth-child(odd) .product {
	margin-top: -8em;
} */
.product {
  height: 100%;
  /* padding-top: 10em; */
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.product__bg {
  /* height: 20em; */
  background: var(--details-bg-down);
  position: relative;
}

.product__img {
  border-radius: 10px;
  width: 100%;
  margin: 0 auto;
  display: block;
  /* position: absolute;
	top: 0;
	left: 50%; */
  pointer-events: none;
  /* transform: translate3d(-50%,0,0); */
}

.product__title {
  position: relative;
  margin: 0.5em 0 0;
  font-size: 1.75em;
  color: #232323;
  font-family: font-extrabold;
}

.product__subtitle {
  position: relative;
  margin: 0;
  text-transform: uppercase;
  color: #0058a0;
  font-size: 0.85em;
  letter-spacing: 0.115em;
}

.product:hover .product__subtitle {
  color: #FFDC1C;
  -webkit-transition: 0.45s ease-in-out;
  transition: 0.45s ease-in-out;
}

.product__description,
.product__price {
  opacity: 0;
  position: absolute;
}

.details {
  position: fixed;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  padding: 40vh 0 10vh 10vw;
  z-index: 1000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  pointer-events: none;
}

.details--open {
  pointer-events: auto;
}

.details > * {
  position: relative;
  opacity: 0;
}

.details__bg {
  width: 100%;
  position: fixed;
  left: 0;
}

.details__bg--up {
  top: 0;
  height: 100vh;
  background: var(--details-bg-up);
}

.details__bg--down {
  top: 40vh;
  height: 60vh;
  background: var(--details-bg-down);
}

.details__img {
  position: absolute;
  bottom: 20vh;
  right: .5vw;
  aspect-ratio: auto;
  width: auto;
  height: 70%;
}

.details__bg,
.details__img {
  -webkit-transform-origin: 0 0;
          transform-origin: 0 0;
}

.details__title {
  margin: -1.5em 0 0.1em;
  font-size: 4.5em;
  color: var(--color-details-title);
  font-weight: 700;
}

.details__subtitle {
  text-transform: uppercase;
  margin: 0.75em 0 1em 0;
  letter-spacing: 0.115em;
  font-size: 1.75em;
  color: var(--color-details-subtitle);
}

.details__description {
  line-height: 1.5;
  font-weight: bold;
  max-width: 30%;
  color: var(--color-details-desc);
}

.details__price {
  font-size: 3em;
  font-weight: bold;
  color: #FFDC1C;
}

.product__price__details {
  font-size: .4em;
  color: #232323;
}

.details__addtocart {
  border: 0;
  margin: auto 0 0 0;
  background: var(--color-bg-addtocart);
  color: var(--color-addtocart);
  padding: 0.75em 2em;
  font-weight: bold;
}

.details__addtocart:hover {
  background: #FFDC1C;
  -webkit-transition: .65s ease-in-out;
  transition: .65s ease-in-out;
}

.details__close {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  background: none;
  margin: 2em;
  cursor: pointer;
  font-size: 0.85em;
  color: var(--color-close);
}

.dummy-menu {
  border: 0;
  background: none;
  padding: 0;
  margin: 2.75em 2.5em 0 0;
  position: fixed;
  top: 0;
  right: 0;
  font-size: 0.85em;
  color: var(--color-close);
  cursor: pointer;
  z-index: 1000;
}

.details__magnifier {
  border: 0;
  background: none;
  background: var(--color-bg-magnifier);
  color: var(--color-magnifier);
  padding: 1em;
  border-radius: 50%;
  position: absolute;
  z-index: 1000;
  right: calc(21.5vh + 10vw);
  top: 75vh;
  cursor: pointer;
}

.details__magnifier:hover {
  background: var(--color-btn-hover);
  -webkit-filter: contrast(200%);
          filter: contrast(200%);
}

.details__deco {
  width: 7em;
  height: 15px;
  background-position: 0%;
  background-size: 15000%;
  -webkit-filter: contrast(175%) brightness(3%);
          filter: contrast(175%) brightness(3%);
}

/* Related demos */
.content--related {
  padding: 8em 5vw;
  font-weight: bold;
  text-align: center;
  background: #000;
  color: #f0f0f0;
}

.content--related a:hover {
  color: #fff;
}

.content--related h2 {
  font-size: 1.25em;
}

.content--related .demos {
  padding-bottom: 3em;
}

.media-item {
  display: inline-block;
  padding: 1em;
  vertical-align: top;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}

.media-item__img {
  max-width: 100%;
  opacity: 0.8;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.media-item:hover .media-item__img,
.media-item:focus .media-item__img {
  opacity: 1;
}

.media-item__title {
  font-size: 1em;
  margin: 0;
  padding: 0.5em;
}

@media screen and (max-width: 768px) {
  .grid {
    padding: 0 1vw;
    -ms-grid-columns: (1fr)[1];
        grid-template-columns: repeat(1, 1fr);
  }
  .grid__item {
    padding: 0 2vw;
  }
  .product__bg {
    height: 0em;
  }
  .product__img {
    max-height: 19em;
  }
  .product__title {
    font-size: 1.25em;
  }
  .product__subtitle {
    font-size: 0.75em;
  }
  .details {
    padding: 20vh 0 5vh 10vw;
  }
  .details__bg--down {
    top: 20vh;
    height: 70vh;
  }
  .details__title {
    font-size: calc(2em  + 1.5vw);
  }
  .details__subtitle {
    font-size: calc(1em + 1vw);
  }
  .details__price {
    font-size: calc(1.5em + 1vw);
  }
  .product__price__details {
    font-size: calc(.4em + 1vw);
  }
  .details__description {
    max-width: 100%;
    font-size: calc( 0.65em + 1vw);
  }
  .details__deco {
    height: 7px;
    width: 4em;
  }
  .details__img {
    right: 0;
    height: 33vh;
    aspect-ratio: 4 / 3;
    bottom: 15vh;
  }
  .details__magnifier {
    right: 7vh;
  }
  .codrops-header {
    padding: 1em 4em;
  }
  .codrops-header__title {
    font-weight: bold;
    padding-bottom: 0.25em;
    text-align: center;
    font-size: 1.25em;
  }
  .dummy-menu {
    margin: 1.75em 1.5em 0 0;
  }
}

.button {
  background-color: #FFDC1C;
  color: #0058a0;
  padding: .45rem 1.1rem;
  border-radius: 3rem;
  font-family: font-big;
  font-size: 14px;
  -webkit-transition: .3s;
  transition: .3s;
}

.button:hover {
  color: #0058a0;
}

.product .button {
  margin-top: 1vh;
}

.details__addtocart {
  font-size: 18px;
  padding: .5rem 1.5rem;
}

@media screen and (min-width: 800px) and (max-width: 915px) and (min-height: 1100px) and (max-height: 1400px) {
  .details__img {
    height: 30%;
  }
}

@media screen and (width: 1024px) and (height: 600px) {
  .details__img {
    bottom: .5vw;
    height: 60%;
  }
  .details__title {
    font-size: 3em;
  }
}

@media screen and (max-width: 321px) {
  .details__title {
    font-size: 1.4em;
  }
  .details__subtitle {
    margin: 0;
  }
  .details__subtitle {
    font-size: 1.1em;
  }
  .details__price {
    font-size: 1.2em;
  }
  .product__price__details {
    font-size: .8em;
  }
}
/*# sourceMappingURL=productgrid.css.map */