.main {
    margin-top: 60px;
}

.pcpartsgrid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}

@media (max-width: 2000px) {
  .pcpartsgrid {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 1600px) {
  .pcpartsgrid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1300px) {
  .pcpartsgrid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1000px) {
  .pcpartsgrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .pcpartsgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .pcpartsgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 450px) {
  .pcpartsgrid {
    grid-template-columns: 1fr;
  }
}

.productimage {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.pcpartscontainer {
    padding: 55px 20px 20px 20px;
    border-right: 1px solid rgb(231, 231, 231);
    border-bottom: 1px solid rgb(231, 231, 231);
    display: flex;
    flex-direction: column;
}

.pcpartsname {
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    /* 2. consistent height so cards align */
    height: 3rem; 
  }


.pcpartsimage{
    display: flex;
    justify-content: center;
    align-items: center;
}

.color {
  font-size: 14px;
  text-decoration: none;
}

.productrating {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.rating{
    width: 100px;
    margin-right: 3px;
}

.productcount {
    color: rgb(1, 124, 182);
    cursor: pointer;
    font-size: 15px;
}

.pcpartsprice {
    font-size: 17px;
    font-weight: 600;
    margin-top: 7px;
    margin-bottom: 7px;
}

.pcpartsquantity {
    margin-bottom: 17px;
}

.pcpartsspace {
    flex: 1;
}

.added-to-cart {
    color: rgb(6, 125, 98);
    font-size: 16px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;

    /* At first, the "Added to cart" message will
        be invisible. Use JavaScript to change the
        opacity and make it visible. */
    opacity: 0;
    transition: opacity 0.5s;
}

.added-to-cart.show {
    opacity: 1;  
}

.added-to-cart img {
  height: 20px;
  margin-right: 5px;
}

.add-to-cart-button, .button-primary {
  width: 100%;
  padding: 8px;
  border-radius: 50px;
  border: none;
  background-color:  rgb(254, 189, 105);
  cursor: pointer;
  transition: opacity 0.3s;
}

.add-to-cart-button:hover, .button-primary:hover {
    background-color: rgb(253, 170, 51);
    opacity: 0.7;
}

.pcpartsquantity select {
    width: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.pcpartsquantity select:focus {
    outline: none;
}

.pcpartsquantity select:hover {
    border-color: #888;
}



