<template>
  <div class="product-box">
    <div class="product-box-image">
      <img :src="$helper.getImage(product.image)" alt="">
    </div>
    <div class="product-box-bottom">
      <h1>{{ $t(product.name) }}</h1>
      <div class="separator"></div>
      <p class="farm">{{ $t(product.farm) }}</p>
      <p class="strain">{{ $t(product.strain) }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    product: Object,
  }
}
</script>

<style lang="scss" scoped>
  .product-box{
    display: inline-block;
    width: 560px;
    height: 573px;
    background-image: url('@images/bg_1.png');
    background-position: top left;
    padding: 24px;
    color: #603809;
    
    h1 {
      font-weight: 400;
      font-size: 44px;
      text-align: left;;
    }

    &-image {
      height: 320px;
    }

    &-bottom {
      margin-top: 24px;
      padding: 20px;
      background-color: #fff;
      height: 181px;

      p {
        font-weight: 400;
        line-height: 22px;
        margin: 8px 0;
      }

      .separator {
        border-bottom: 2px solid #603809;
        margin-right: 20%;
        margin-bottom: 24px;
      }
    }
  }

</style>