<template>
  <div class="product">
    <div class="product-discount">
      <div class="product-discount-text"></div>
    </div>
    <div class="product-image"></div>
    <div class="product-name large"></div>
    <div class="product-name"></div>
    <div class="product-old-price"></div>
    <div class="product-price"></div>
    <div class="product-button">
      <div class="product-button-text"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Product',
};
</script>

<style scoped>
.product {
  width: 100%;
  padding: 8px;
  position: relative;
  cursor: pointer;
  border: 2px solid var(--product-border-color);
  background-color: var(--product-background-color);
}
.product-discount {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 4px 8px;
  background-color: var(--product-discount-color);
}
.product-discount-text {
  width: 20px;
  height: 2px;
  background-color: var(--product-discount-text-color);
}
.product-image {
  width: 100%;
  padding-bottom: 80%;
  margin-bottom: 16px;
  background-color: #ccc;
}
.product-name {
  width: 50%;
  height: 12px;
  background-color: var(--product-name-color);
  margin-bottom: 4px;
}
.product:hover .product-name {
  background-color: var(--product-name-hover-color);
}
.product-name.large {
  width: 100%;
}
.product-old-price {
  width: 45%;
  height: 12px;
  margin-top: 16px;
  background-color: var(--product-old-price-color);
}
.product-price {
  width: 40%;
  height: 12px;
  margin-top: 4px;
  background-color: var(--product-price-color);
}
.product-button {
  width: 100%;
  padding: 8px 32px;
  margin-top: 16px;
  background-color: var(--button-primary-color);
}
.product-button-text {
  width: 100%;
  height: 8px;
  background-color: var(--button-primary-color-text);

}
</style>
