@keyframes tilt {
  0% { transform: rotate(0deg); }
  4% { transform: rotate(2deg); }
  8% { transform: rotate(0eg); }
  12% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

.tilt {
  animation: tilt 0.8s infinite alternate;
}

/* Configurações do header que contém o menu e o logotipo */
header {
  background: #0C0000;
  position: fixed;
  top: -1px;
  left: 0px;
  right: 0px;
  text-align: center;
  box-shadow: 0px 2px 10px #0C000050;
  z-index: 100;
}

/* Limita o conteúdo do menu dentro do header */
.menu_content {
  max-width: 2001px;
  margin: auto;
}

/* Limita o conteúdo do menu dentro do header */
.menu_content > div {
  display: flex;
  justify-content: center;
  margin-bottom: -34px;
}

/* Logotipo */
.logo {
  margin-top: 18px;
}

/* Logotipo */
.logo > img {
  height: 100px;
  filter: drop-shadow(0 1px 4px #0C000050);
}


/* Configuração do conteúdo da página */
#main {
  width: 100%;
  max-width: 2001px;
  padding-top: 80px;
  margin: 0 auto;
}

/* Configuração da imagem da capa do site */
.cover_image {
  margin-top: 86px;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Texto da capa do site */
.text_cover.home {
  max-height: 500px;
  transform: translateX(-20%);
  height: 35vw;
}

.main_content {
  max-width: 2001px;
  margin: auto;
  padding-top: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main_content.contact {
  padding-top: 0;
  background-color: #fffbf3;
  position: relative;
  display: block;
}

.main_content.contact #background {
  position: absolute;
  right: 0;
  z-index: 0;
  bottom: -500px;
  max-width: 40%;
}

.main_content.footer {
  max-width: 2001px;
  margin: auto;
  padding-top: 0;
}

.main_content.footer > .main_content.footer {
  background: #a65900;
  z-index: 1;
}

.position {
  margin-bottom: 20px;
  color: #888;
  font-weight: 300;
}

.position a {
  color: #888;
}

.position a:hover {
  text-decoration: none;
  color: #c47100;
}

.subitem {
  font-family: "Open Sans", sans-serif;
  font-size: 1.2rem;
  line-height: 1.3rem;
  margin: 50px 0 30px 0;
  width: 100%;
  border-bottom: 1px solid;
  text-align: center;
  padding-bottom: 10px;
}

.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.box_product {
  width: 20%;
  font-family: "Open Sans", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #000;
  margin: 15px;
  padding: 10px 10px 20px 10px;
  transition: all 0.2s ease;
  outline: 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px #00000015;
  -moz-box-shadow: 0 0 10px #00000015;
  -webkit-box-shadow: 0 0 10px #00000015;
}

.box_product.buy {
  cursor: default;
  min-width: 200px;
}

.box_product:hover {
  box-shadow: 0 0 15px #00000030;
  -moz-box-shadow: 0 0 15px #00000030;
  -webkit-box-shadow: 0 0 15px #00000030;
}

.box_product img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.box_product .product_image {
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box_product .product_content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1;
}

.box_product h4 {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.3rem;
}

.box_product .bt_buy {
  text-decoration: none;
  padding: 5% 10% 4.5% 10%;
  border: 0;
  border-radius: 4px;
  font-size: 1.1rem;
  outline: 0;
  cursor: pointer;
  color: #fffbf3;
  background: #da8700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Catamaran", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility !important;
  font-weight: 600;
  transition: all 100ms ease-in-out;
}

.bt_buy img {
  width: auto;
  border-radius: 0;
  height: 16px;
  margin: -3px 0px 0px 9px;
}

.box_product .bt_buy:hover {
  background: #c47100;
  padding: 5% 12% 4.5% 12%;
}

.product_price {
  width: 90%;
  font-family: "Open Sans", sans-serif;
  text-align: left;
  margin: 14px 0 10px 0;
  display: flex;
  align-items: flex-start;
  color: #c47100;
}

.product_price small {
  font-weight: 600;
  font-size: 1.2rem;
}

.product_price p {
  font-weight: 700;
  line-height: 1.4rem;
  font-size: 2rem;
}

.product_price span {
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
  margin-left: 10px;
}

.product_price_unit {
  font-family: "Open Sans", sans-serif;
  color: #c47100;
  width: 90%;
  text-align: left;
  margin: -5px 0 5px 0px;
  font-size: 0.8rem;
  font-weight: 700;
}

.product_details {
  width: 90%;
  text-align: left;
  margin: 5px 0 13px 0;
  font-size: 0.7rem;
  line-height: 0.8rem;
}

.product_details p {
  margin: 5px 0;
}

.product_main {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.limited_content {
  width: 70%;
  margin: auto;
  transition: all 0.2s ease-in-out;
}

.separator {
  display: flex;
  width: 100%;
  padding-top: 50px;
}

.separator img {
  width: 100%;
  z-index: 1;
}

.separator.footer img {
  margin-bottom: -1px;
}

.separator.contact {
  padding-top: 0;
  margin-top: 50px;
  padding-bottom: 80px;
}

.form_contact {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
}

.input_form {
  background: #fffbf3;
  font-family: "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility !important;
  font-weight: 400;
  padding: 8px;
  margin-top: 20px;
  font-size: 18px;
  border: 0;
  outline: 0;
  border-bottom: 1px solid #00000080;
  transition: all 400ms ease-in-out;
}

.input_form:hover,
.input_form:focus {
  border-bottom: 1px solid #000;
}

.input_form:-webkit-autofill,
.input_form:-webkit-autofill:hover,
.input_form:-webkit-autofill:focus {
  color: #000;
  -webkit-text-fill-color: #000;
  background: #fffbf3;
  font-family: "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility !important;
  font-weight: 400;
  transition: all 400ms ease-in-out;
}

.input_form::placeholder,
.input_form::-webkit-input-placeholder,
.input_form:-moz-placeholder,
.input_form::-moz-placeholder {
  color: #000;
  background: #fffbf3;
  font-family: "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility !important;
  font-weight: 400;
  opacity: 0.5;
  transition: all 400ms ease-in-out;
}

.input_form:hover::placeholder,
.input_form:hover::-webkit-input-placeholder,
.input_form:hover:-moz-placeholder,
.input_form:hover::-moz-placeholder {
  color: #000;
  background: #fffbf3;
  font-family: "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility !important;
  font-weight: 400;
  opacity: 0.8;
  transition: all 400ms ease-in-out;
}

.button_form {
  scale: 1;
  transform: scale(1);
  padding: 15px 10px;
  margin-top: 30px;
  border: 0;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  outline: 0;
  color: #fffbf3;
  background: #da8700;
  font-family: "Catamaran", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility !important;
  font-weight: 600;
  transition: all 100ms ease-in-out;
}

.button_form:hover {
  scale: 1.02;
  transform: scale(1.02);
  background: #c47100;
  color: #fffbf3;
}

textarea {
  resize: none;
}

.required_nome {
  display: none;
  color: #f0000f;
  font-size: 0.8rem;
  margin-top: 5px;
}

.required_email {
  display: none;
  color: #f0000f;
  font-size: 0.8rem;
  margin-top: 5px;
}

.illustration {
  width: 100%;
  display: flex;
  justify-content: center;
}

.illustration img {
  width: 60%;
}

.request_small {
  max-width: 60%;
  scale: 1;
  transform: scale(1);
  padding: 8px 30px;
  margin: 100px 0 50px 0;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  outline: 0;
  color: #fffbf3;
  background: #da8700;
  font-family: "Catamaran", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility !important;
  font-weight: 600;
  transition: all 100ms ease-in-out;
}

.request_small a {
  cursor: pointer;
  outline: 0;
  color: #fffbf3;
  font-family: "Catamaran", sans-serif;
  text-decoration: none;
  text-align: center;
}

.request_small:hover {
  scale: 1.05;
  transform: scale(1.05);
  background: #c47100;
  color: #fffbf3;
}

@media (max-width: 438px) {
  .limited_content.products {
    width: 90%;
  }

  .text_cover.home {
    height: 32vw;
  }

  .box_product {
    width: 40%;
    margin: 12px 8px;
    padding: 6px;
    box-shadow: 0 0 10px #00000015;
    -moz-box-shadow: 0 0 10px #00000015;
    -webkit-box-shadow: 0 0 10px #00000015;
  }

  .box_product.buy {
    width: 60%;
    padding: 10px;
  }
}

/* Imagem da capa do site responsiva */
@media (max-width: 2000px) {
  .text_cover.home {
    margin-top: 50%;
  }

  .cover_image {
    height: 0;
    padding-bottom: 59%; /* roundDown((height / width) * 100) */
    background-size: 100%;
  }
}

/* Imagem da capa do site tamanho normal */
@media (min-width: 2001px) {
  .cover_image {
    height: 1167px;
    background-size: 2001px;
  }

  .cover_image.home {
    background-image: url("https://personalizados.agenciacaramel.com.br/img/cover_home_2001.jpg");
  }

}
/* Imagem da capa do site tamanho menor */
@media (max-width: 2001px) {
  .cover_image.home {
    background-image: url("https://personalizados.agenciacaramel.com.br/img/cover_home_2001.jpg");
  }

}
@media (max-width: 1502px) {
  .main_content.contact #background {
    bottom: -150px;
  }

  .cover_image.home {
    background-image: url("https://personalizados.agenciacaramel.com.br/img/cover_home_1502.jpg");
  }

}
@media (max-width: 1002px) {
  .cover_image.home {
    background-image: url("https://personalizados.agenciacaramel.com.br/img/cover_home_1002.jpg");
  }
  
  .box_product .bt_buy {
    padding: 8% 0 7.5% 0;
    font-size: 1.3rem;
    width: 100%;
  }

  .box_product .bt_buy:hover {
    padding: 8% 0 7.5% 0;
  }

  .box_product h4 {
    font-size: 1rem;
    line-height: 1.2rem;
  }

  .box_product img {
    border-radius: 2px;
  }

  .bt_buy img {
    border-radius: 0;
  }
  
  .box_product {
    border-radius: 5px;
  }
}

@media (max-width: 437px) {
  .cover_image {
    padding-bottom: 69%; /* roundDown((height / width) * 100) */
  }

  .cover_image.home {
    background-image: url("https://personalizados.agenciacaramel.com.br/img/cover_home_437.jpg");
  }

  .text_cover.home {
    margin-top: 65%;
    transform: translateX(-20%);
  }
}

@media (max-width: 600px) {
  .main_content {
    padding-top: 140px;
  }

  .contact h2 {
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .form_contact {
    margin-top: 0;
  }

  .button_form:hover {
    scale: 1;
    transform: scale(1);
  }

  .illustration img {
    width: 100%;
  }
}

@media (max-width: 1235px) {
  .limited_content {
    width: 80%;
  }

  .main_content.contact #background {
    display: none;
  }
}

@media (max-width: 380px) {
  .limited_content {
    width: 90%;
  }
}
