/* Shop Page Section */

.shop-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-evenly;
}

#shop-search {
  padding: 10px;
  width: 100%;
  max-width: 400px;
  margin: 10px 0 20px;
  border: var(--bordercolour) solid 1px;
  font-size: 1.6rem;
  font-family: "Lato", sans-serif;
}

.shop-item {
  width: 400px;
  height: 150px;
  border: var(--bordercolour) solid 1px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  background-color: var(--backgroundcolour);
}

.shop-item:hover {
  transform: scale(1.1);
}

.shop-item-image-wrapper {
  height: 100%;       /* or any fixed height you want */
  width: 40%;         /* or a fixed width if you prefer */
  overflow: hidden;
  flex-shrink: 0;      /* so it doesn’t shrink when flexing */
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item-image {
  height: 100%;        /* fill the wrapper height */
  width: auto;         /* keep aspect ratio */
  object-fit: cover;   /* crop overflow nicely */
  display: block;
}

.shop-info {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 5px;
}

.shop-name {
  color: var(--hovercolour);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-species {
  font-size: 1.4rem;
  color: var(--textcolour);
}

.shop-price {
  font-weight: bold;
  color: var(--strongcolour);
  font-size: 1.4rem;
}

@media only screen and (max-width: 601px) {

  .shop-item {
    width: 100%;
    height: 150px;
    border: var(--bordercolour) solid 1px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
  }

}