* {
  padding: 0;
  margin: 0;
  position: relative;
  box-sizing: border-box;
  transition: all 200ms ease;
  /* font-family: 'Itim', cursive; */
  /* font-family: 'Sriracha', cursive; */
  /* font-family: 'Gabarito', sans-serif; */
  font-family: 'Muli', sans-serif;
}

/* --- LAYOUT ---- */
body {
  height: 100vh;
  width: 100%;
  overflow-y: hidden;
  color: #575757;
  background: rgb(255,255,255);
  /* background: radial-gradient(circle, rgba(255,255,255,1) 38%, rgba(225,220,197,1) 100%); */
}

body::before {
  content: ' ';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image: url('../img/bg3.jpg'); */
  background-size: 15%;
  opacity: 0.6;
}

#r2u-viewer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -580px;
  right: 0;
}

#logo {
  position: absolute;
  left: 0;
  top: 0;
  margin: 30px;
  width: 150px;
}

#r2u-logo {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 30px;
}

#r2u-logo img {
  width: 50px;
  filter: grayscale(0.8);
  opacity: 0.4;
}

#r2u-logo img:hover {
  filter: grayscale(0);
  opacity: 1;
}

#sidebar {
  position: absolute;
  /* border: 1px solid #c0c0c0; */
  right: 0;
  top: 0;
  bottom: 0;
  /* margin: 20px; */
  /* background: rgba(255, 255, 255, 0.7); */
  /* border-radius: 20px; */
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3vh;

  box-shadow: 0px 0px 21px -7px #00000017;
  backdrop-filter: blur(18px);

  overflow-y: auto;
  /* max-height: calc(100vh - 40px); */
  max-width: 500px;
}

a.add-to-cart {
  position: relative;
  cursor: pointer;
  color: #fff;
  background: #239de4;
  display: inline-flex;
  align-items: center;
  padding: 0 25px;
  height: 45px;
  letter-spacing: 1.2px;
  font-size: 12px;
  line-height: inherit;
  font-weight: 400;
  text-align: center;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  text-transform: uppercase;
  border: 0;
  outline: 0;
  font-family: Muli,sans-serif;
  font-weight: 900;
  border-radius: 3px;
  transition: all .3s ease;
  justify-content: center;
  /* max-width: 275px; */
  width: 100%;
  font-size: 14px;
  letter-spacing: 1.4px;
  background-color: #19b5f1;
  box-shadow: 0 10px 20px rgba(0,0,0,.3);
  text-decoration: none;
}

/* --- LOADING ---*/
img.img-loading {
  width: 100px;
  top: calc(50vh - 50px);
  left: calc(50vw - 300px);
  position: absolute;
  opacity: 0.5;
}

body .img-loading {
  display: none;
}

body.loading .img-loading {
  display: block;
}

/* -- MENU ---*/
.menu {
  margin: 5px 0;
}

#sidebar h2 {
  color: #000000;
  font-weight: 900;
}

#sidebar h3 {
  color: #444444;
  font-weight: 600;
}


.options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 5px;
  padding: 15px 0;
}

.option {
  width: 30px;
  height: 30px;
  border: 1px solid #c0c0c0;
  color: transparent;
  border-radius: 100%;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
}

/* .menu.model .option {
  color: #666;
  width: calc(50% - 10px);
  height: auto;
  border-radius: 3px;
  padding: 0 2px;
  font-size: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  line-height: normal;
  clear: both;
  flex-wrap: nowrap;
} */

.menu.model .option,
.menu.linhas .option {
  color: #666;
  width: calc(26% - 10px);
  height: auto;
  border-radius: 3px;
  padding: 4px 2px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  line-height: normal;
  clear: both;
}

.menu.model .option p {
  /* width: -webkit-fill-available; */
}

/* .menu.model .option img {
  width: 50%;
  height: 80px;
  object-fit: cover;
  object-position: 100%;
  border-right: 1px solid #CFC8C1;
} */

.menu.model .option img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  object-position: 100%;
  /* border-right: 1px solid #CFC8C1; */
}

.menu.model .option.selected,
.menu.linhas .option.selected {
  color: #00A9E0;
  font-weight: bold;
  border: 2px solid #00A9E0;
}

.option.selected {
  border: 3px solid #00A9E0;
  line-height: 21px;
}

.menu .caption {
  margin: -5px 0 20px;
  font-size: 14px;
  color: #a2b4be;
  text-align: center;
}

/*--- AR ---*/


#ar-container {
  position: absolute;
  left: calc(50% - 400px);
  bottom: 20px;
  /* width: 60px; */
  /* max-width: 273.5px; */
  margin: 15px;
  border: 1px solid #E3E3E3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 24px;
  text-align: center;
  background: rgba(249, 253, 255, 0.5);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  overflow: hidden;
  transition: all 400ms ease;
  box-shadow: 0px 1px 8px -3px rgb(0 0 0 / 10%);
}

#ar-container #ar-button {
  font-size: 13px;
  font-weight: 700;
  color: #19B5F1;
  line-height: 40px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-transform: uppercase;
}

/* #ar-container #ar-button span {
  width: 0;
  overflow: hidden;
  display: block;
} */

#ar-container:hover {
  /* width: 273.5px; */
  box-shadow: 0px 1px 8px -1px rgba(40, 158, 255, 0.2);
}

/* #ar-container:hover #ar-button span {
  width: auto;
} */

#ar-container #ar-button img {
  width: 40px;
  height: 40px;
  float: left;
  margin-right: 10px;
}

#ar-container #comment-ar {
  font-size: 12px;
  color: #666;
  max-width: 200px;
  white-space: normal;
}

#ar-container #comment-ar.error {
  font-weight: bold;
  color: rgb(141, 0, 0);
}

#ar-container #QR {
  height: 150px;
  width: 150px;
  text-align: center;
  margin-bottom: 10px;
}

#ar-container #loading-ar {
  /* display: none; */
  height: 80px;
  width: 50px;
  object-fit: contain;
  object-position: center;
  opacity: 0.5;
}


/* --- TRANSFORMERS ----*/
.hide {
  transition: opacity 200ms, display 200ms;
  display: none;
  opacity: 0;
}

.option.disabled {
  display: none;
  opacity: 0.1;
  pointer-events: none;
  cursor: not-allowed;
}

/* -- COLORS --*/

.option[data-option*="BRANCO"] {
  background: #E5E5E5;
}

.option[data-option*="PRETO"] {
  background: #303030;
}

.option[data-option*="AREIA"] {
  background: #CFC8C1;
}

.option[data-option*="VERMELHO"] {
  background: #EE5746;
}

.option[data-option*="CORTEN"] {
  background: #8D5749;
}

.option[data-option*="VERDE"] {
  background: #8ECFB6;
}

.option[data-option*="LARANJA"] {
  background: #FDA052;
}

.option[data-option*="CINZA"] {
  background: #6C6C6C;
}

.option[data-option*="AZUL"] {
  background: #444DE9;
}

.option[data-option*="AMARELO"] {
  background: #ECCD5B;
}

.option[data-option*="INOXCROMADO"] {
  background: url('../img/cromado.png');
}

.option[data-option*="INOXESCOVADO"] {
  background: url('../img/escovado.png');
}

.option[data-option*="COBREESCOVADO"] {
  background: url('../img/cobre.png');
}

.option[data-option*="GRAFITEESCOVADO"] {
  background: url('../img/grafite.png');
}


/*--- MOBILE ---*/

@media (orientation: portrait) {
  #r2u-viewer {
    left: 0;
    bottom: 40vh;
  }

  #sidebar {
    top: 63vh;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: normal;
    max-height: fit-content;
    overflow-y: scroll;
    padding: 20px 20px;
    gap: 5px;
    max-height: 37vh;
  }

  .menu.model .option, .menu.linhas .option {
    width: 48%;
    padding: 15px 5px;
  }

  .menu.model .option img {
    display: none;
  } 

  #ar-container {
    bottom: 37vh;
    max-width: none;
    left: 0;
    right: 0;
    margin: 10px 21px;
    padding: 0;
  }

  img#logo {
    width: 100%;
    height: 30px;
    margin: 15px auto;
    object-fit: contain;
  }

  #r2u-logo {
    position: relative;
    margin: 30px auto 20px;
  }
}