.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 250px;
    gap: 15px;
    padding: 15px;
    border-radius: 6px;
    background-color: white;
    transition: box-shadow 0.3s ease-in-out;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    zoom: 1.05;
    border: 1px solid #ced4da;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    justify-items: center;
}

.product-name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.product-name-link:hover {
    color: #007bff;
}

.product-category-link{
    text-decoration: underline;
    color: inherit;
    transition: color 0.2s;
}

.product-category-link:hover {
    color: #007bff;
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    font-size: 20px;
    margin-top: 12px;
    margin-bottom: 10px;
    font-weight: 600;
}

.view-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 16px;
}

.view-button:hover {
    background-color: #0069d9;
}

.rating {
    margin-top: 8px;
    font-size: 16px;
}

.add-product-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.add-product-link:hover {
    background-color: #1e7e34;
}

.product-name-link .product-name {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
}



.product-category-link .product-category {
    margin: 0;
    font-weight: 500;
    font-size: 15px;
}

.product-rating .star-icon:hover{
    color: #f0ad4e;
}