/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");




.donation-container{
    width: 900px;
    margin: auto;
    max-width: 90vw;
    text-align: center;
    padding-top: 10px;
    transition: transform .5s;
}

svg {
    width: 30px;
}

header {
    position: relative;
  }
  
  .icon-cart {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

.icon-cart span {
    position: absolute;
    background-color: red;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #fff;
    top: 50%;
    right: -20px;
}

.title {
    font-size: xx-large;
    color: #fff;

}

.listDonation .item img {
    width: 90%;
 }

.listDonation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.listDonation .item {
    background-color: #0650aa;
    padding: 20px;
    border-radius: 20px;
    font-family: Montserrat;
    color: #fff; /* Change the font color to white */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    opacity: 0; /* initial opacity: 0 */
    transform: translateY(20px); /* initial translate: 20px down */
    animation: fadeIn 1s forwards; /* add animation */
    animation-delay: calc(0.5s + (0.2s * var(--index))); /* staggered delay */
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0); /* final translate: 0 */
    }
}

.listDonation .item:nth-child(1) {
    --index: 0;
}

.listDonation .item:nth-child(2) {
    --index: 1;
}

.listDonation .item:nth-child(3) {
    --index: 2;
}

/* and so on... */
.listDonation .item h2 {
    font-weight: 500;
    font-size: large;
    font-family: Montserrat;
    color: #fff; 
}

.listDonation .item .price {
    letter-spacing: 7px;
    font-size: small;
    font-family: Montserrat;
}

.listDonation .item button {
    background-color: #353432;
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 20px;
    font-family: Montserrat;
}

/* cart */
.cartTab {
    width: 400px;
    background-color: #353432;
    color: #eee;
    position: fixed;
    top: 0;
    right: -400px;
    bottom: 0;
    display: grid;
    grid-template-rows: 70px 1fr 70px;
    transition: .5s;
}

body.showCart .cartTab {
    right: 0;
}

body.showCart .container {
    transform: translateX(-250px);
}

.cartTab h1 {
    padding: 20px;
    margin: 0;
    font-weight: 300;
}

.cartTab .btn {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.cartTab button {
    background-color: #0e3de8;
    border: none;
    font-family: Poppins;
    font-weight: 500;
    cursor: pointer;
}

.cartTab .close {
    background-color: #eee;
}

.listDonation .item img, .listCart .item img {
    width: 100%;
    height: auto;
    max-width: 507px;
    max-height: 492px;
}

.listCart .item img {
    width: 100%;
}

.listCart .item {
    display: grid;
    grid-template-columns: 70px 150px 50px 1fr;
    gap: 10px;
    text-align: center;
    align-items: center;
}

.listCart .quantity span {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #eee;
    border-radius: 50%;
    color: #555;
    cursor: pointer;
}

.listCart .quantity span:nth-child(2) {
    background-color: transparent;
    color: #eee;
    cursor: auto;
}

.listCart .item:nth-child(even) {
    background-color: #eee1;
}

.listCart {
    overflow: auto;
}

.listCart::-webkit-scrollbar {
    width: 0;
}

@media only screen and (max-width: 992px) {
    .listDonation {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* mobile */
@media only screen and (max-width: 768px) {
    .listDonation {
        grid-template-columns: repeat(2, 1fr);
    }
}