.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    padding: 20px;
  }

  .card {
    overflow: hidden;
    font-size: 12px;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    max-width: 120px;
  }

  .card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
.card .ref {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0 0.2rem;
    background-color: #113970;
    color: white;
}
  .card .product-num {
    font-weight: bold;
  }

  .card .card-title {
    width: 100%;
  }

  .card .product-fr {
    font-size: 10px;
    font-style: italic;
  }

  .chosen-product {
    font-weight: bold;
  }
  .card-badge {
    box-sizing: border-box;
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 3rem;
    text-align: center;
    font-size: 0.5rem;
    padding: 0.1rem 0.2rem 0.2rem;
    font-weight: 400;
    line-height: inherit;
    position: absolute;
    top: 0;
    left: 0;
  }
  .wallboard-search {
    width: calc(100% - 40px);
    margin: 20px 20px 0 20px;
  }

  .elibrary-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
  }


  .elibrary-img>img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    min-width: 100%;
    min-height: 100%;
    background-color: white;
  }



input.wallboard-search {
    border: 2px #11397080 solid;
    width: 300px;
    max-width: 100%; 
    margin: 0;
}

.header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.header img {
    height: 120px;
}

.header .title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem;
    text-align: center;
}

@media (max-width: 600px) {
    .header {
        justify-content: center;
    }

    .header img {
        height: 60px;
    }  
    
    .header .title {
        align-items: center;
    }
}
