.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Adjust the gap to make it smaller */
    justify-content: center;
}
.card {
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    width: 200px; /* Adjust the width to make the card smaller */
    padding: 10px;
    transition: box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.card img {
    width: 100%;
    height: 80px; /* Adjust the height to make the image smaller */
    object-fit: cover;
}
.card-title {
    font-size: 0.9rem; /* Adjust the font size to make it smaller */
    font-weight: bold;
    margin-top: 5px;
}
.card-text {
    font-size: 0.8rem; /* Adjust the font size to make it smaller */
    margin-top: 5px;
}
.price {
    font-size: 0.9rem;
    color: #ff9900;
}
.original-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}
.discount {
    font-size: 0.8rem;
    color: #ff0000;
    margin-left: 5px;
}
.btn-primary {
    background-color: #ff9900;
    border-color: #ff9900;
    color: white;
    width: 100%;
    margin-top: auto;
}
.btn-primary:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}
.quantity-input {
    width: 100%;
    margin-top: 5px;
}
.btn-primary:disabled {
    background-color: #cccccc;
    border-color: #cccccc;
}
.vendor-dropdown {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.vendor-info {
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem; /* Adjust the font size to make it smaller */
    background-color: #f0f0f0; /* Background color for vendor info */
    padding: 5px;
    border-radius: 3px;
}
.vendor-name {
    font-size: 0.8rem; /* Adjust the font size to make it smaller */
    margin-right: 5px;
}
.btn-secondary {
    font-size: 0.8rem; /* Adjust the font size to make it smaller */
    background-color:rgb(109, 4, 4); /* Background color for location icon */
    padding: 2px 5px;
    border-radius: 3px;
}

/* Media query for mobile view */
@media (max-width: 768px) {
    .card {
        width: calc(50% - 10px); /* Two cards per row */
    }
}
