.product-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.product-price {
    font-weight: bold;
    color: #e74c3c;
    margin: 5px 0;
}

.product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.add-to-cart-btn, .quantity-control {
    align-self: flex-start;
}

.add-to-cart-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #2980b9;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity {
    padding: 0 10px;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
    }
    
    .product-image {
        width: 100%;
        height: 180px;
    }
}

/* Styling similar to kudo.ly */
.product-card {
    border-radius: 12px;
    border: 1px solid #eaeaea;
}

.product-info {
    position: relative;
}

.product-price {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #f8f8f8;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.add-to-cart-btn {
    background-color: #ff6b6b;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #ff5252;
    transform: scale(1.05);
}
