@import "../../style/mixin";

.article-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, .5fr));
  grid-gap: 20px;
  gap: 20px;
  padding: 40px 0;
  z-index: 1;
}

.article-tile {
  padding: 10px;
  border: 1px solid #DCE4EA;

  .image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 150px;

    .co-image {
      height: 100%;
      width: fit-content;
    }

    .no-image-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      opacity: 0.2;
      width: 150px;
      height: 150px;

      .no-image {
        height: 50%;
        width: 50%;

        span {
          font-size: 14px;
        }
      }
    }
  }

  .brand,
  .description,
  .tile-item {
    margin-bottom: 10px;
  }

  .product,
  .price {
    margin-bottom: 10px;
    font-weight: bold;
  }

  .one-liner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

    &:last-of-type {
      margin: 0;
    }
  }

  .product-num {
    display: flex;
    align-items: center;

    co-icon {
      width: 10px;
      height: 10px;
      margin-right: 5px;
    }
  }

  .details {
    font-weight: bold;
    color: #1A73E8;
    cursor: pointer;

    &:hover {
      text-decoration: underline;
    }
  }
}