.produto-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: var(--light);
  width: 80%;
  border-radius: 0.25rem;
}

.galeria, .produto-options {
  padding: 2rem;
  width: 100%;
}

/* The grid: Four equal columns that floats next to each other */
.column {
  float: left;
  margin: 0.5rem;
  height: 5rem;
  width: 5rem;
  border: 2px solid var(--light-dark);
  box-sizing: content-box;
}

/* Style the images inside the grid */
.column img {
  opacity: 0.8;
  cursor: pointer;
  height: 5rem;
  width: 5rem;
  object-fit: cover;
}

.column img:hover {
  opacity: 1;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* The expanding image container (positioning is needed to position the close button and the text) */
.image-container {
  position: relative;
  width: 100%;
  margin: 0.5rem;

  box-sizing: border-box;
}

.image-container img {
  width: 100%;
  object-fit: cover;
}

/* Expanding image text */
#imgtext {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: var(--light);
  font-size: 20px;
}

.produto-options {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.produto-options > form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.produto-options > form > h1 {
  text-align: center;
}

.produto-options > form > * {
  margin: 1rem;
}

.produto-options > form > .info {
  font-style: italic;
  text-align: center;
}

.produto-options > form > .options {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.options .produtos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 80%;
  flex-wrap: wrap;
}

.options .produtos a {
  position: relative;
  margin: 0.5rem;
  border: 2px solid var(--light-dark);
  width: 5vw;
  height: 5vw;
  padding: 0.5rem;
  box-sizing: content-box;
}

.options .produtos a.selected {
  opacity: 0.6;
}

.options .produtos a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produto-options > form > .options > label {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.produto-options > form > .options > input {
  width: 6rem;
  height: 2rem;
  border: 1px solid var(--light-dark);
  border-radius: 0.2rem;
  color: var(--light-dark);
  padding: 0 0.5rem;
}

.produto-options > form > .options > select {
  width: 15rem;
  height: 2.5rem;
}

.produto-options > form > .buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btn {
  margin: 1rem;
  height: 4rem;
  width: 60%;
  background: var(--light);
  border: 2px solid var(--light-dark);
  border-radius: 0.2rem;
  cursor: pointer;
  color: var(--light-dark);
  transition: all .2s ease;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.btn:not(:disabled):hover {
  background: var(--light-dark);
  color: var(--light);
}

.btn-medidas {
  max-width: 60%;
  padding: 1rem;
  width: initial;
}

.price {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
}

.price > .prev-price {
  font-weight: 400;
  text-decoration: line-through;
  position: absolute;
  margin: -1rem 0 0 11rem;
  color: red;
  font-style: italic;
}

.description {
  text-align: center;
}

.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  padding: 2rem;
  background: var(--light);
  width: 100%;
  text-align: center;
}

.section > p {
  font-size: 1.2rem;
  max-width: 80%;
  text-align: center;
}

.section > .produtos-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.section > .produtos-container > .produto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1rem 2rem;
}

.section > .produtos-container > .produto a {
  text-decoration: none;
  color: var(--dark);
  text-align: center;
}

.section > .produtos-container > .produto > a > img {
  width: 17vw;
  height: 17vw;
  object-fit: cover;
}

.section > .produtos-container > .produto > a > h2 {
  margin: 0.8rem;
}

.section > .produtos-container > .produto a:hover {
  text-decoration: underline;
}

.section > .produtos-container > .produto p.preco {
  font-size: 1.2rem;
}

@media only screen and (max-width: 850px) {
  .produto-container {
    flex-direction: column;
    width: 100%;
  }

  .row {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
  }

  .btn-medidas {
    width: 100%;
    padding: initial;
    max-width: initial;
  }

  .section > .produtos-container {
    flex-direction: column;
  }

  .section > .produtos-container > .produto > a > img {
    width: 60vw;
    height: 60vw;
    object-fit: cover;
  }

  .options .produtos a {
    position: relative;
    margin: 0.5rem;
    border: 2px solid var(--light-dark);
    width: 13vw;
    height: 13vw;
    padding: 0.5rem;
    box-sizing: content-box;
  }
}